• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoke Servlet Without changing web.xml

 
Pankaj Patel
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello 2 All.

I am supposed to change a one jsp with is submitted to one servlet. Now i don't have right to change web.xml and register servlet. They told me to invoke servlet directly.

My Servlet Package : cyberoam.whitepapers.servlets;
And my context : cyberoam
Tomcat : 5.5 installed on 10081 port

so i am able to run my application on local machine using follwing url.

http://cyberoam:10081/jsp/whitepapers/whitepapers.jsp

Problem occur when i submit whitepapers.jsp
The form tag of this jsp is as follows.


Error :
Address bar : http://cyberoam:10081/cyberoam/servlet/cyberoam.whitepapers.servlets.WhitePaperInfoServlet

Error Description:
HTTP Status 404 - /cyberoam/servlet/cyberoam.whitepapers.servlets.WhitePaperInfoServlet

--------------------------------------------------------------------------------

type Status report

message /cyberoam/servlet/cyberoam.whitepapers.servlets.WhitePaperInfoServlet

description The requested resource (/cyberoam/servlet/cyberoam.whitepapers.servlets.WhitePaperInfoServlet) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.7



So could any one please tell me how to resolve this problem?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64832
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use real words when posting to the forums. Using "2" rather than "to" only makes your posts harder to read.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not invoke servlets directly in Tomcat 5x.
Tomcat does have an invoker but it has been disabled for years.
For more information, see:
http://faq.javaranch.com/view?InvokerServlet
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice story the invoker servlet. I'm convinced not to use it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic