...
: isamura wrote:
: > "Andrew Thompson" wrote ...
: > : isamura wrote:
: > :
: > : > <jsp:include page="mypage.htm" flush="true"> where mypage.htm ..
: > :
: > : Huh?
: > :
: > : > ..might contain zero or more jsp tags.
: > :
: > : Try renaming it to mypage.jsp, ...
: ...
: > I was not asking on how to use the jsp:include tag, but rather how to emulate its tag compiling
: > behavior in my custom tag.
:
: And that is what I was answering.
:
My mistake...
: >...I should have specify the following instead:
: >
: > <myjsp:myInclude page="mypage.htm" />
:
: No!
:
: <myjsp:myInclude page="mypage.htm" />
:
: ..will not be 'compiled' because your server is being told (by you)
: that it does not contain any compilable statements. If the name of
: 'mypage.htm' was instead 'mypage.jsp' - the Java container would
: recognise it as a compilable piece of Java and treat it as such.
:
: So, back to what I originally suggested..
:
: <myjsp:myInclude page="mypage.jsp" />
:
Actually I did try as you have suggested but the result was the same. Tags contained within
'mypage.jsp' did not get translated.
In my custom tag code, I use a BufferedReader to "include" mypage.jsp. Once the custom tag returns,
the outter page (index.jsp) is immediately sent to the browser. This leaves all "included" tags
unresolved.
The content that I am including is dynamic and needs to be resolved at runtime (on-demand), so the
container doesn't know if additional compiles are needed.
It seems as though I need to be able to compile the resulting output (perhaps repeatedly) before
sending the final output back to the browser. Perhaps there is a better solution...
: > Any ideas?
:
: <wrily>
: ..try the advice offered by someone who uses JSP (successfully)
: for all his sites.
: </wrily>
:
Perhaps you do have such a solution and would be willing to share it.
..K