This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSP and the fly likes Getting the Servlet output in a JSP file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Getting the Servlet output in a JSP file" Watch "Getting the Servlet output in a JSP file" New topic
Author

Getting the Servlet output in a JSP file

shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 149
I have made the following Servlet file, now i want to get the output which i am giving in print statement in servlet in a JSP file. Can anyone please tell me how to do that ??

I mean the client access this servlet & get the output in a JSP file

My Servlet code is



Thanks :)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63352
    
  70

Use a request dispatcher to forward the request to a JSP that will produce the response.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 149
Thanks Bear :beerchug:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting the Servlet output in a JSP file
 
It's not a secret anymore!