cancel
Showing results for 
Search instead for 
Did you mean: 

Struts tiles and custom tag error.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.