Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

include action tag in JSP

 
badri nath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks
I have written a code in a servlet and now i want to include that in a JSP page. I want to display the output of servlet in JSP along with output of JSP page.
Im using include action tag but am not able to get servlet called.
I hope im making sense.
 
S bitz
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set the output from the servlet in an attribute and then get the attribute in the JSP and display it along with your JSP.
 
badri nath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bitz
Thanks for your quick reply. I'll check that out and get to you if i have any more regarding this.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic