File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

call another servlet in a web application

 
Nada Bajnaid
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two servlets in my web application (SQAES) this is the name of my java web app.

1) the main servlet: SQAServlet (in the package SQA.Learning.System)
it has @WebServlet ("/SQASystem")

2) LOServlet (in tha package RelatedLOs)
I did not use @WebServlet in this servlet

The doPost method of the SQAServlet calls the LOServlet.
I tried different ways to handle this but I got the following error

The requested resource not available


these are the ways I tried to call the LOServlets:

any suggestions where I'm wrong?
 
Nada Bajnaid
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I solve it
I add @WebServlet to the LOServlet
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic