This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 1Z0-808 this week in the OCAJP 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: 148
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: 61993
    
  67

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: 148
Thanks Bear :beerchug:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting the Servlet output in a JSP file