I have came across a problem .
My basic page layout (.jsp) has lots of <%@ include file="" %> Some being .jsp files , some .html files.
Now when I am creating a
servlet , I want to show the similar layout, but i cant(or so it seems) simply do:
out.println("<%@ include file='some.jsp' %> ");
as the servlet will process it as html and not .jsp .
My ultimate question being ,
- Is there a method that i could use to 'include' these files in a servlet and still process it as .jsp or do i have to manually include all the code that is in the include files.
- I have also thought about another method maybe, I use the servlet as only a processor where the form.jsp passes to servlet , servlet processes request then passes to show.jsp. Is that possible? If so, can anyone show me a quick example?
Thanks. thats about all . Thank you for your time
Ryan
[This message has been edited by Ryan Yeap (edited August 30, 2001).]