JSP:include inside a servlet

R

Robert Mazur

OK...I have scoured lists, tutorials, faq's.....

This may be backwards thinking, but I have a pageheader.jsp that I use
in other jsp's using a jsp:include.

How can I use that same pageheader.jsp content inside a servlet? I'm
stumped, can't find the syntax, and for the moment temporarily using
InputStreamReader on the jsp file directly (ouch!).

Thanks,
Rob
 
R

rupton

OK...I have scoured lists, tutorials, faq's.....

This may be backwards thinking, but I have a pageheader.jsp that I use
in other jsp's using a jsp:include.

How can I use that same pageheader.jsp content inside a servlet? I'm
stumped, can't find the syntax, and for the moment temporarily using
InputStreamReader on the jsp file directly (ouch!).

Thanks,
Rob

Use the include method of the javax.servlet.RequestDispatcher
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,600
Members
45,179
Latest member
pkhumanis73
Top