| Author |
JSP TO SERVLET
|
Praful Thakare
Ranch Hand
Joined: Feb 10, 2001
Posts: 613
|
|
Hi All, I have a Test.jsp in ROOT/jsp which looks like below <%=" Hello World" %> After executing this file I got an Test_jsp.class in work folder of tomcat 4.1.18 I copied this file in to Web-Inf/classes folder under ROOT context. and tried to access it as http://localhost:8080/servlet/Test_jsp but i endup with following error java.lang.NoClassDefFoundError: Test_jsp (wrong name: org/apache/jsp/Test_jsp) can any one help me out thanx in adv
|
All desirable things in life are either illegal, banned, expensive or married to someone else !!!
|
 |
Pradeep bhatt
Ranch Hand
Joined: Feb 27, 2002
Posts: 8876
|
|
just try http://localhost:8080/servlet/Test.jsp It should work fine. Please do not post your problem in more than 1 forum. [ July 17, 2003: Message edited by: Pradeep Bhat ]
|
Groovy
|
 |
Praful Thakare
Ranch Hand
Joined: Feb 10, 2001
Posts: 613
|
|
Pradeep , Thanx a bunch 4 ur reply,but it's not working that way... I made it work by creating folders classes/org/apache/jsp and then copied Test_jsp.class there and used follwing url http://localhost:8080/servlet/org.apache.jsp.Test_jsp cheers Praful
|
 |
Pradeep bhatt
Ranch Hand
Joined: Feb 27, 2002
Posts: 8876
|
|
|
which version of Tomcat are you using?
|
 |
 |
|
|
subject: JSP TO SERVLET
|
|
|