File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Executing a JSP from aStartup Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Executing a JSP from aStartup Servlet" Watch "Executing a JSP from aStartup Servlet" New topic
Author

Executing a JSP from aStartup Servlet

VIDYAPRAKASH RAMARAJU
Greenhorn

Joined: Aug 12, 2003
Posts: 1
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

Joined: Jun 13, 2000
Posts: 3340
This belongs in JSP, I'm moving it there!
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
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
 
subject: Executing a JSP from aStartup Servlet
 
Similar Threads
Maintaining sessions between ASP & JSP
GUI error display - when external system is down.
page redirection
How do I page iframe search string to a parent window ?
is there any funtion in jsp like server.transfer in asp