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
Author and all-around good cowpoke
posted 11 years ago
Have you looked into the RequestDispatcher.include() method? See the javax.servlet.ServletRequest interface for example of how to get a RequestDispatcher. Bill