• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Including servlets into a single HTML file

 
Malcolm White
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I know I might be clutching at straws here. I'm writing an online bookshop in 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,
Malcolm
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • 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.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic