Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the Servlet output in a JSP file

 
shivang sarawagi
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a request dispatcher to forward the request to a JSP that will produce the response.
 
shivang sarawagi
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear :beerchug:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic