vikas sahni

Greenhorn
+ Follow
since Jan 01, 2001
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 vikas sahni

hi,
i have also used jsdk but the path ie required to invoke the servlet is http://localhost:8080/servlet/filename there is no need to write examples in between because servletrunner defaults the directory to examples as u can see when u run servletrunner.
u are not required to keep the html file in the same dir..
u can keep it anywhere and just pass the address of the servlet as above..that dir has somewhat different classloader may that would be creating some problem.
and if u want to place it in myjava dir, then place your servlet in package myjava
and call like this http://localhost:8080?servlet/myjava.s3
vikas
23 years ago
hi,
the reason may be that the bean's class must have been cached,
therefore whatever changes u are making in your bean is not taking effect..u can confirm it by placing the same method in the JSP file(which was there in the earlier bean and now not there),if it would run implies problem is of caching..then change the name of the bean and it would definitely work but remember for first time only.
vikas
23 years ago
hi,
make properties file instead of text file. this is very simple.
and then in your program retreive like this
Properties pr=new Properties();
String fname=new Properties("yourfile.properties");
FileInputStream in=new FileInputStream(fname);
prop.load(in);
String driver=prop.getProperty("this.driverName");
String con=prop.getProperty("this.conString");
and then u can make use of these strings anywhere like
DriverManager.getConnection(con);
hope this would help.
vikas
23 years ago
u can invoke it in two ways. either by calling from the registered name like this http://localhost ort/registeredname
or by giving the file name with complete package http://localhost ort/servlets/completefilename
hope this would help
vikas
23 years ago
your command is ok but you should be sure that your servlet RAF.class is in the servlets dir of your web server
vikas
23 years ago
hi gibson,
u have imported java.sql.* in both the bean class and the
jsp. if u have not done so this may be the problem. it seema that the problem is originating due to bean only.
vikas
23 years ago
JSP
hi aatif,
u acn run *.jsp files by putting them in public_html dir of java web server. u can see the version your web server supports by looking at the servlet.properties file somewhere in properties folder. jws 2.0 supports jsp1.0 only.
the corresponding servlet will be stored in the tmpdir directory of jws
all the best
vikas
23 years ago