on 01-02-2006 8:09 PM
I'm porting an application from Weblogic 8 to NetWeaver.
I have jsp code that nests a tile insert within a custom tag (components is custom taglib).
Example:
<components:content>
<tiles:insert flush="false" attribute="formfields"/>
</components:content>
This should be legal at JSP 1.2; however I'm getting the error: "illegal to flush within a custom tag".
Has anyone had to deal with this?
Does anyone have a work around for this (other then eliminating the custom tags)?
thanks,
Dave
When you are in a custom tag, you are in BodyContent.
And when you call "titles:insert" or "jsp:include", you are calling PageContent.include(url).
The spec said it will flush by itself. (in J2EE 1.3 or 1.4)
However, you are in BodyContent and calling BodyContent.flush(). The spec said it is illegal and it will throw IOException immediately.
Setting flush="false" won't help in J2EE 1.3
I am working on this problem but currently blocked by the other problem.
If anyone has a workaround or suggestion (or even better solution), feel free to say it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.