This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Invoke Servlet Without changing web.xml  RSS feed

 
Ranch Hand
Posts: 74
  • 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?
 
Sheriff
Posts: 67260
170
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.
 
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
 
Ranch Hand
Posts: 893
Java Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice story the invoker servlet. I'm convinced not to use it.
 
The fastest and most reliable components of any system are those that are not there. Tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!