Forums Register Login

question about directive

+Pie Number of slices to send: Send
I don't know how to use <%@ include file="...." %> in actual program, would seniors like to give simple a example? thanks a lot!
+Pie Number of slices to send: Send
hi
i hope this simple example helps:
code for test.jsp
Code for include.html

the actual output should show 3 lines with the middle line being the contents of the included file.
include directive will put the contents of the included file at the requested place, so if you include a jsp file using this directive, then it is the source code of the JSP that is included and not the output of the jsp page (if any)
HTH
Parag K
+Pie Number of slices to send: Send
Hi..
A correction :
Including a JSP file using the directive will produce output. However the disadvantage is that if the included JSP file is modified one MAY have to update all the JSP's that include it as well.
SR
It's just a flesh wound! Or a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 933 times.
Similar Threads
problems with include directive
Getting started with Java XML storage
Question on Filters and RequestDispatcher
Using Introspection/Reflection (via Javabeans?) to work with JAXB-Generated Classes?
how to use ssi in servlets using apache web server and jserv
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:45:54.