This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See EJB for an assignment and I'd like to be able to include my ShowCategories, ShowBooks and PageHeader servlets into a single HTML file. I know it is possible to do this with JSP, but since time is short at the moment and converting all the servlets to JSPs would be difficult, do you think there is any way that would allow me to achieve this?

Thanks for any pointers,
Author and all-around good cowpoke
Posts: 13078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked into the RequestDispatcher.include() method?
See the javax.servlet.ServletRequest interface for example of how to get a RequestDispatcher.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!