Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

Not able to find the servlet

Thread view: 
Garg - 13 Apr 2007 07:27 GMT
Hi All,

I am new to this JSP and servlet so for testing purpose i created one
html page which is calling one servlet. but when i run it is not able
to find the servlet.

I updated web.xml by uncommenting servlet invoke part. folder
structure is correct. I am not able to understand where can the
problem.

Please give me your suggestions.

Thanks,
Tarun Garg
Andrew Thompson - 13 Apr 2007 08:52 GMT
..
>Please give me your suggestions.

Refresh the server (in Tomcat, that would be
achieved by restarting it).

HTH

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Garg - 14 Apr 2007 06:54 GMT
> Refresh the server (in Tomcat, that would be
> achieved by restarting it).

I am done by all this but same probles is there.
Andrew Thompson - 14 Apr 2007 07:19 GMT
>> Refresh the server..
..
>I am done by all this but same probles is there.

OK.  Can you describe the 'folder structure' you
mentioned earlier?

e.g.  if there were a servlet 'com.your.Servlet'
- as a loose class it would generally be located..
WEB-INF/classes/com/your/Servlet.class
- if in a jar archive, it would be something like..
WEB-INF/lib/servlet.jar

And to clarify something you mentioned earlier.
This class is being called into a JSP?  (You
mentioned 'HTML', but I am guessing you
really meant 'JSP'.)

Signature

Andrew Thompson
http://www.athompson.info/andrew/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.