User Profile

Collapse

Profile Sidebar

Collapse
dmjpro
dmjpro
Last Activity: Sep 16 '10, 12:13 PM
Joined: Jan 24 '07
Location: India (West-Bengal)
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dmjpro
    replied to File.delete returns false.
    in Java
    Ok. tell me one thing when File.deleted throws Exception and when returns false?
    See more | Go to post

    Leave a comment:


  • dmjpro
    replied to File.delete returns false.
    in Java
    Then i think program would have an security exception or IO exception.Is not it?
    See more | Go to post

    Leave a comment:


  • dmjpro
    started a topic File.delete returns false.
    in Java

    File.delete returns false.

    Code:
    File l_file = new File(path);
    System.out.println(l_file.exists()); //returns true
    System.out.println(l_file.delete()); //returns false
    How does this happen? Could anyone explain?
    See more | Go to post

  • dmjpro
    replied to event handling error
    Ahh! ..so there is no direct way. What you mean by partial??
    See more | Go to post

    Leave a comment:


  • dmjpro
    replied to event handling error
    This link is real GEM. Some absurd/typical things just used to go beyond my brain. Those things, exactly those things...contex t of execution, this in different context and more over apply and call, the clear concept of those hazy things are now clear.

    It would be grateful, if you do little more help...

    Code:
    <input type=button value=' Button ' onclick='e_handler(12,34,"debasis jana")' />
    ...
    See more | Go to post

    Leave a comment:


  • dmjpro
    started a topic event handling error

    event handling error

    my HTML code ...
    Code:
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    	<td id=tabbed_TD>Debasis Jana</td>
    </tr>
    </table>
    and my JS code ..
    Code:
    function TDClass(){
    	this.handle = function(){
    		alert(this);
    	}
    }
    
    function test(){
    	document.getElementById('tabbed_TD').addEventListener('click',new
    ...
    See more | Go to post

  • dmjpro
    replied to java synchronization
    in Java
    that's what i wanted to know ;)
    See more | Go to post

    Leave a comment:


  • dmjpro
    started a topic java synchronization
    in Java

    java synchronization

    Code:
    synchronized void method(){
     this.x = 100;
     this.y = 200;
    }
    the method is synchronized, means only one thread runs the method fully and returns...now my question when a method is synchronized then instance members(data/method) used inside it, are synchronized or not?
    See more | Go to post

  • Is it safe to call a instance method from constructor?

    Is it safe to call a instance method from constructor?
    See more | Go to post

  • dmjpro
    replied to Match a part of String using Reg Exp
    in Java
    What does your code mean to me?
    See more | Go to post

    Leave a comment:


  • dmjpro
    started a topic How to deploy common library in Tomcat
    in Java

    How to deploy common library in Tomcat

    Tomcat has got several applications and several application use shared library, so same library carried across each application. Where should I place the shared library? $CATALINA_HOME/lib ?
    See more | Go to post

  • dmjpro
    started a topic Match a part of String using Reg Exp
    in Java

    Match a part of String using Reg Exp

    Code:
    String input = "Mozila";
    System.out.println(Pattern.matches("^Moz")); //returns false
    System.out.println(Pattern.matches("^Moz.+")); //returns true
    Can't i match part of the string using Reg Exp?
    See more | Go to post

  • dmjpro
    replied to Regularexpression not working.
    in Java
    Yea .. i solved the problem.

    Code:
    while((line = br.readLine()) != null){
                js_text.append(line.trim().replaceAll("//.*", "")); //gets the file text(removed comments //)
            }
    Code:
    int start=0,end=0 ;
            while((start = js_text.indexOf("/*")) != -1){
                end = js_text.indexOf("*/");
                if(end !=
    ...
    See more | Go to post

    Leave a comment:


  • dmjpro
    replied to Regularexpression not working.
    in Java
    Then how should I remove /** */? Actually i m trying to remove the documentation part from my JS file when i expose this on web.
    See more | Go to post

    Leave a comment:


  • dmjpro
    started a topic Regularexpression not working.
    in Java

    Regularexpression not working.

    Code:
    String text = "/** */test/** */test";
    System.out.println(text.replaceAll("/\\*\\*.*\\*/"));
    It prints test instead of testtest. How regular expression is working here?
    See more | Go to post

  • How to enable select multiple file while uploading files.

    Code:
    <input type=file />
    It allows select single file at a time, but is it possible to open file dialog box which allows to select multiple files at a time?
    See more | Go to post

  • dmjpro
    started a topic Writing my own MultipartResolver
    in Java

    Writing my own MultipartResolver

    My code works fine when i am uploading plain text file, because i use InputStreamRead er to read the line without giving much effort ;)
    What i thought that when i store the file content, it will be in String and append the newLine(OS dependant-System.getPrope rty("line.depar ator")) after each line then i convert it into bytes(String.ge tBytes()). And my concept was, if i convert it into bytes then what would be the problem? But in case...
    See more | Go to post

  • dmjpro
    started a topic CMS using java
    in Java

    CMS using java

    Two three days earlier i tested a code, single and double inverted comma represented differently in MS word and Notepad; actually what happened, i was writing something on MS word and finally put it in a TEXTAREA then i trying to save the data into database and so as a result some invalid characters getting saved instead of single and double inverted comma. If i wrte it in TEXTAREA directly then it won't happen. So what i did, take the character...
    See more | Go to post

  • can't i re-utilize the xmlhttprequest object? what's the wrong with that?
    one more thing .... what does it mean ..NS_ERROR_FAIL URE?
    See more | Go to post

    Leave a comment:


  • NS_ERROR_FAILURE with code 0x80004005 when using xmlhttprequest.send

    Code:
    xmlhttprequest request = ....;
    for(var i=0;i<app_size;i++){
     request.open('GET',url[i],false);
     request.send(null);
    }
    Can anyone explain where my code goes wrong ?
    See more | Go to post
No activity results to display
Show More
Working...