Forums Register Login

Executing a JSP from aStartup Servlet

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
This belongs in JSP, I'm moving it there!
+Pie Number of slices to send: Send
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!
Your mother was a hamster and your father was a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 784 times.
Similar Threads
GUI error display - when external system is down.
page redirection
is there any funtion in jsp like server.transfer in asp
How do I page iframe search string to a parent window ?
Maintaining sessions between ASP & JSP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:51:11.