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

Executing a JSP from aStartup Servlet

 
VIDYAPRAKASH RAMARAJU
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys
I have situation like this. I need to call a JSP not to use forward or sendredirect method, because it is starrtup servet from that i need to execute a JSP file. if any one have any idea about this plz let me know or reply in this forum i would appereciate it.
Thanks
Vidya
 
Carl Trusiak
Sheriff
Posts: 3340
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This belongs in JSP, I'm moving it there!
 
Carl Trusiak
Sheriff
Posts: 3340
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Everying in a JSP gets placed inside a method _jspService(request, response) in your servlet, you can use RequestDispatcher.include(request, response) but, only from methods that have request and response objects. From your post, I assume you want to call this from init(). That, you can not do. Refactor any code in the JSP into a regular Java Object and call it there!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic