RE: using an attribute inside a tile
Try Cal www.calandva.com -Original Message- From: Sonam Belbase [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 18:24 To: Struts Users Mailing List Subject: Re: using an attribute inside a tile Frank, I tried this and the bean:write in header.jsp still does not write anything to the screen: tiles-def.xml: contentFrameLayout.jsp: header.jsp: I also tried header.jsp: <%=label%> but this results in the error: /ms/user/s/sonam/libra/aeui/0.2/src/ServletExec Data/default/aeui/pagecompile/_jsp/_common/_beginContent_xjsp.java:43: Undefined variable: label out.print( String.valueOf( label ) ); Don't know what I am doing wrong.. -Sonam Frank Maritato wrote: > I just recently posted a question about this very problem. Attributes > defined in tiles definitions are available only in the "tiles" scope. > Therefore, you must redefine the attribute into the request scope if you > want it available to your sub tiles. > > So, in contentFrameLayout.jsp you add the line: > > > And it should work for you. > > Sonam Belbase wrote: > > Hi, > > > > I have a layout contentFrameLayout.jsp: > > > > > > > > > > > > > > > > > > > > > > > > In my tiles-def.xml, I assign values to these attributes: > > > > > > > > > > > > > > > > > > > > > > > > > > > > In struts-config, my action forwards to the definition "content.default" on > > success. > > > > I am trying to use the attribute screenName inside header.jsp > > (which is a tile for contentFrameLayout.jsp) in the following manner: > > > > > > > > > > > > > > I followed some guidelines in the following article: > > > > http://www.developer.com/java/ent/article.php/10933_2192411_5 > > > > but the bean:write writes nothing to the screen (i.e the column comes up empty). > > It looks like there might be a context problem since doing a bean:write in > > the layout jsp works but not in the tile header.jsp. There are no error messages > > at runtime. > > > > Does anyone know how I can accomplish this? My main goal is to use the same > > layout for every content page and have the option of dynamically displaying the > > screenName > > each time the tile header.jsp is used. > > > > Thanks, > > SB > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > Frank Maritato > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Learn more about Paymentech's payment processing services at www.paymentech.com THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using an attribute inside a tile
Frank, I tried this and the bean:write in header.jsp still does not write anything to the screen: tiles-def.xml: contentFrameLayout.jsp: header.jsp: I also tried header.jsp: <%=label%> but this results in the error: /ms/user/s/sonam/libra/aeui/0.2/src/ServletExec Data/default/aeui/pagecompile/_jsp/_common/_beginContent_xjsp.java:43: Undefined variable: label out.print( String.valueOf( label ) ); Don't know what I am doing wrong.. -Sonam Frank Maritato wrote: > I just recently posted a question about this very problem. Attributes > defined in tiles definitions are available only in the "tiles" scope. > Therefore, you must redefine the attribute into the request scope if you > want it available to your sub tiles. > > So, in contentFrameLayout.jsp you add the line: > > > And it should work for you. > > Sonam Belbase wrote: > > Hi, > > > > I have a layout contentFrameLayout.jsp: > > > > > > > > > > > > > > > > > > > > > > > > In my tiles-def.xml, I assign values to these attributes: > > > > > > > > > > > > > > > > > > > > > > > > > > > > In struts-config, my action forwards to the definition "content.default" on > > success. > > > > I am trying to use the attribute screenName inside header.jsp > > (which is a tile for contentFrameLayout.jsp) in the following manner: > > > > > > > > > > > > > > I followed some guidelines in the following article: > > > > http://www.developer.com/java/ent/article.php/10933_2192411_5 > > > > but the bean:write writes nothing to the screen (i.e the column comes up empty). > > It looks like there might be a context problem since doing a bean:write in > > the layout jsp works but not in the tile header.jsp. There are no error messages > > at runtime. > > > > Does anyone know how I can accomplish this? My main goal is to use the same > > layout for every content page and have the option of dynamically displaying the > > screenName > > each time the tile header.jsp is used. > > > > Thanks, > > SB > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > Frank Maritato > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using an attribute inside a tile
Or you can use Tiles' tags to redefine it to You prefer scope -Original Message- From: Frank Maritato [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 1:54 PM To: Struts Users Mailing List Subject: Re: using an attribute inside a tile I just recently posted a question about this very problem. Attributes defined in tiles definitions are available only in the "tiles" scope. Therefore, you must redefine the attribute into the request scope if you want it available to your sub tiles. So, in contentFrameLayout.jsp you add the line: And it should work for you. Sonam Belbase wrote: > Hi, > > I have a layout contentFrameLayout.jsp: > > > > > > > > > > > > In my tiles-def.xml, I assign values to these attributes: > > > > > > > > > > > > > > In struts-config, my action forwards to the definition "content.default" on success. > > I am trying to use the attribute screenName inside header.jsp > (which is a tile for contentFrameLayout.jsp) in the following manner: > > > > > > > I followed some guidelines in the following article: > > http://www.developer.com/java/ent/article.php/10933_2192411_5 > > but the bean:write writes nothing to the screen (i.e the column comes up empty). > It looks like there might be a context problem since doing a bean:write in > the layout jsp works but not in the tile header.jsp. There are no error messages > at runtime. > > Does anyone know how I can accomplish this? My main goal is to use the same > layout for every content page and have the option of dynamically displaying the screenName > each time the tile header.jsp is used. > > Thanks, > SB > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Frank Maritato - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and any attachments are for the intended recipient(s) only and may contain privileged, confidential and/or proprietary information about Downey Savings or its customers, which Downey Savings does not intend to disclose to the public. If you received this message by mistake, please notify the sender by reply e-mail and delete the message and attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using an attribute inside a tile
I just recently posted a question about this very problem. Attributes defined in tiles definitions are available only in the "tiles" scope. Therefore, you must redefine the attribute into the request scope if you want it available to your sub tiles. So, in contentFrameLayout.jsp you add the line: And it should work for you. Sonam Belbase wrote: Hi, I have a layout contentFrameLayout.jsp: In my tiles-def.xml, I assign values to these attributes: In struts-config, my action forwards to the definition "content.default" on success. I am trying to use the attribute screenName inside header.jsp (which is a tile for contentFrameLayout.jsp) in the following manner: I followed some guidelines in the following article: http://www.developer.com/java/ent/article.php/10933_2192411_5 but the bean:write writes nothing to the screen (i.e the column comes up empty). It looks like there might be a context problem since doing a bean:write in the layout jsp works but not in the tile header.jsp. There are no error messages at runtime. Does anyone know how I can accomplish this? My main goal is to use the same layout for every content page and have the option of dynamically displaying the screenName each time the tile header.jsp is used. Thanks, SB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank Maritato - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using an attribute inside a tile
Hi, I have a layout contentFrameLayout.jsp: In my tiles-def.xml, I assign values to these attributes: In struts-config, my action forwards to the definition "content.default" on success. I am trying to use the attribute screenName inside header.jsp (which is a tile for contentFrameLayout.jsp) in the following manner: I followed some guidelines in the following article: http://www.developer.com/java/ent/article.php/10933_2192411_5 but the bean:write writes nothing to the screen (i.e the column comes up empty). It looks like there might be a context problem since doing a bean:write in the layout jsp works but not in the tile header.jsp. There are no error messages at runtime. Does anyone know how I can accomplish this? My main goal is to use the same layout for every content page and have the option of dynamically displaying the screenName each time the tile header.jsp is used. Thanks, SB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]