deepak khiyani

Greenhorn
+ Follow
since May 05, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by deepak khiyani

Hi,
i am using
eclipse :3.2
Tomcat 4.1

- i want to plug-in tomcat for eclipse for the debugging purpose.
- i have downloaded tomcatPluginV3.zip and copied into the eclipse/plug-in folder.
- please let me know what to do next.

my requirement is :
i have some external repository folder from where the xml are picked dynamically.how that folder can be included into this eclipse/tomcat.

my application hierarchy is:
gui/tomcat
gui/repository/*.xml



please help Jrachers!
Thanks in advance!!
17 years ago
Thanks Purushothaman !

hey i am very sorry couldnt checked your message earlier!
yes i am talking about the servlet only.
i come to know that we need to define reloadable="true" in some server.xml,
please let me know the hierarchy of this file and also confirm that am i right or not? and if you know some way to do the same then please let me know.....its really very urgent !!

Thanks again!
17 years ago
hi JavaRanchers!

i am stuck with the auto redployment property of the weblogic....
every time when i change in the java code, i have to restart my application again.....i want to overcome from this....
can u guys help me out that where this "reloadable" property needs to be set???

thanks in advance...

Regards,
Deepak Khiyani
17 years ago
hi deepu,
i have modified your code a little bit.....please check this whether it helps.....

class Test
{
public static void main (String[] args)
{
int i = 0, j = 9;
while (i++ <= j--)
{
i++; //i=5, j=4
if (j < 5)
break;
System.out.println(i + "," + j);
}
//System.out.print(i + "," + j);
}
}
Hi All,
i m posting some self explanatory code to resolve String/StringBuffer doubt.
first run the code as it is and then remove the comments and again run the code......many doubts will get automatically cleared.please let me know if i m wrong n also try to correct it.

regards,
deepak


public class Test1 {
public static void main(String arg []){
StringBuffer sb1 = new StringBuffer("xyz");
StringBuffer sb2 = new StringBuffer("xyz");
//sb2=sb1;
if (sb1==sb2)
System.out.println("object is only one and both sb1 n sb2 are refering to that");
else
System.out.println("objects are different with same value");
if (sb1.equals(sb2))
System.out.println("equal");
else
System.out.println("not equal");

String s1 = new String("xyz");
String s2 = new String("xyz");
//s2=s1;
if (s1==s2)
System.out.println("object is only one and both s1 n s2 are refering to that");
else
System.out.println("objects are different with same value");
if (s1.equals(s2))
System.out.println("equal");
else
System.out.println("not equal");

String s11 = "xyz";
String s22 = "xyz";
//s22=s11;
if (s11==s22)
System.out.println("object is only one and both s11 n s22 are refering to that");
else
System.out.println("objects are different with same value");
if (s11.equals(s22))
System.out.println("equal");
else
System.out.println("not equal");

}
}
public class Test1 {
public static void main(String arg []){
StringBuffer sb1 = new StringBuffer("xyz");
StringBuffer sb2 = new StringBuffer("xyz");
// later add here
if (sb1==sb2)
System.out.println("object is only one and both sb1 n sb2 are refering to that");
else
System.out.println("objects are different with same value");
if (sb1.equals(sb2))
System.out.println("equal");
else
System.out.println("not equal");

}
}

Hi Amit,
the above code is self explanatory.....
after running that code please add this line at //later add here
sb2=sb1;
again the answer is self explanatory.......
if any query further please let me know.....
public class StringDemon12
{
public static void main(String args[])
{
String a = "newspaper";//1
System.out.println(a);
a = a.substring(5,7);//2
System.out.println(a);
char b = a.charAt(1);//3
System.out.println(b);
a = a + b;//4
System.out.println(a);
}
}

Hi Friend,
here at line 1 the a is refering "newspaper" but at line 2 the a is refering to "ap" now (because the output is assigned to a). the previous value "newspaper" is still in pool but without any reference.So at line 3 the b will get the value from the current value of a i.e. "ap" thats why its showing "p".
i suppose it will clear the doubt.