Re: Exposing an attribute using tiles
Per Jørgen Walstrøm ha scritto: Hello again, Antonio's solution seemed to work fine to start with, but whenever my collection region1Papers contains more than one outageElement, it seems like only one of the outageElements is imported into nextPage.jsp. Ok it seems like a bug, I someway expected it :-) can you file a bug report, maybe providing a simpler test case? I guess changing flush to "true" in could help with this, but I keep getting the "illegal to flush within a custom tag"-error when doing this. As stated in tlddoc, flush attribute means: If true, current page out stream is flushed before insertion. It has nothing to do with flushing attribute values. Anyone having any solution to this? Dont' look at me ;-) Seriously, I think it's a bug, so take the suggestion from Adam J for the moment, put your "outageElement" in request scope. Ciao Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exposing an attribute using tiles
Hello again, Antonio's solution seemed to work fine to start with, but whenever my collection region1Papers contains more than one outageElement, it seems like only one of the outageElements is imported into nextPage.jsp. The number of iterations are correct, but nextPage.jsp just keeps using the same outageElement when doing I guess changing flush to "true" in could help with this, but I keep getting the "illegal to flush within a custom tag"-error when doing this. Anyone having any solution to this? cheers, pj -Opprinnelig melding- Fra: Antonio Petrelli Sendt: 3. august 2006 17:39 Til: Struts Users Mailing List Emne: Re: Exposing an attribute using tiles Beans are not passed automatically to a tile, but they can be passed as attributes. Rewrite the first piece this way: And your nextpage.jsp will be: HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exposing an attribute using tiles
Per Jørgen Walstrøm ha scritto: and my nextPage.jsp contains this: Beans are not passed automatically to a tile, but they can be passed as attributes. Rewrite the first piece this way: And your nextpage.jsp will be: HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exposing an attribute using tiles
Tiles assembles pages using dynamic (runtime) inclusion. The logic:iterate tag defines a page scoped attribute under the key specified by the id tag attribute. The nextPage.jsp will have it's own pageContext, so the outageElement is not visible. Perhaps you could put the outageElement into request scope... -Adam -Original Message- From: Per Jørgen Walstrøm [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 11:23 AM To: Struts Users Mailing List Subject: Exposing an attribute using tiles hello list, I have the following code: and my nextPage.jsp contains this: When I run my code, I get the following error: 17:18:42,768 ERROR [Engine] ApplicationDispatcher[/oweb] Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: ServletException in 'nextPage.jsp': No bean found under attribute key outageElement Does anyone know how I could make nextPage.jsp aware of the 'outageElement'? I have been experimenting with and , but just can't seem to get it to work... Any suggestions would be highly appreciated! cheers, pj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Paychex, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]