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 / First Aid / June 2005

Tip: Looking for answers? Try searching our database.

page not getting submitted to servlet(404 error).

Thread view: 
sarath - 13 Jun 2005 08:56 GMT
hi i am a novice user of jsp and servlet...

i try to submit a jsp to a servlet, using a submit button.. when i
click the submit button, i get an error that,

HTTP Status 404 - /admin-gui/servlet/
type Status report

message /admin-gui/servlet/

description The requested resource (/admin-gui/servlet/) is not
available.

in jsp page, my action and method are,
method="post" action="/admin-gui/servlet/ControlServlet"

how ever, i am able to submit to another jsp file , like,
"/admin-gui/PolicyMenu.jsp" in action
... i am using Apache Tomcat 5.5.9 Server and my servlet is in,

C:\Tomcat 5.5\webapps\admin-gui\WEB-INF\classes
and my jsp files are in,

C:\Tomcat 5.5\webapps\admin-gui

my web.xml contains

 <servlet>
   <servlet-name>ControlServlet</servlet-name>
   <servlet-class>ControlServlet</servlet-class>
 </servlet>

 <servlet-mapping>
   <servlet-name>ControlServlet</servlet-name>
   <url-pattern>/servlet/ControlServlet</url-pattern>
 </servlet-mapping>

if you require any more details, please ask me..

thanks in advance

sarath
sarath - 13 Jun 2005 12:39 GMT
sorry.. i myself got the answer.. i had not given request dispatcher in
the servlet, which caused the error...

regards
sarath


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.