Re: how to access tiles defs in inserted jsp ?
After another evening of flailing, I managed to make this work in a rather inelegant way: In "myPageTemplate.jsp", I added this tag: and I changed "myBodyImpl.jsp" to say: foo = <%= request.getAttribute("foo") %> This works, but I'mnot very happy with it. Does anyone have a better solution? -- Mike Michael Muller wrote: i tried this, and got the following error in my jsp: Error - tag.getAsString : attribute 'foo' not found in context. Check tag syntax' I had to change the tag to say since attribute is not an attribute of getAsString. -- Mike Hibbs, David wrote: Sneaky little issue on this one. Try the following... in tiles-defs.xml change to and in myBodyImpl.jsp change foo = to foo = David Hibbs Staff Programmer / Analyst Distributed Applications Development and Support American National Insurance Company -Original Message- From: Michael Muller [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 11:11 PM To: Struts Users Mailing List Subject: how to access tiles defs in inserted jsp ? How do I access the value of a tiles setting from a JSP that is inserted into a template? For instance, in the following scenario, I want a rendering of "myTilesPageDef" to say "foo = bar", but it just says "foo = ". I've tried some ugly hacks, which in addition to be ugly, didn't work. Help! Thanks, -- Mike tiles-defs.xml: myPageTemplate.jsp: myBodyImpl.jsp: foo = ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to access tiles defs in inserted jsp ?
i tried this, and got the following error in my jsp: Error - tag.getAsString : attribute 'foo' not found in context. Check tag syntax' I had to change the tag to say since attribute is not an attribute of getAsString. -- Mike Hibbs, David wrote: Sneaky little issue on this one. Try the following... in tiles-defs.xml change to and in myBodyImpl.jsp change foo = to foo = David Hibbs Staff Programmer / Analyst Distributed Applications Development and Support American National Insurance Company -Original Message- From: Michael Muller [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 11:11 PM To: Struts Users Mailing List Subject: how to access tiles defs in inserted jsp ? How do I access the value of a tiles setting from a JSP that is inserted into a template? For instance, in the following scenario, I want a rendering of "myTilesPageDef" to say "foo = bar", but it just says "foo = ". I've tried some ugly hacks, which in addition to be ugly, didn't work. Help! Thanks, -- Mike tiles-defs.xml: myPageTemplate.jsp: myBodyImpl.jsp: foo = ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to access tiles defs in inserted jsp ?
Sneaky little issue on this one. Try the following... in tiles-defs.xml change to and in myBodyImpl.jsp change foo = to foo = David Hibbs Staff Programmer / Analyst Distributed Applications Development and Support American National Insurance Company > -Original Message- > From: Michael Muller [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2003 11:11 PM > To: Struts Users Mailing List > Subject: how to access tiles defs in inserted jsp ? > > > > How do I access the value of a tiles setting from a JSP that > is inserted > into a template? For instance, in the following scenario, I want a > rendering of "myTilesPageDef" to say "foo = bar", but it just > says "foo = ". I've tried some ugly hacks, which in > addition to > be ugly, didn't work. > > Help! > > Thanks, > >-- Mike > > tiles-defs.xml: > > > > > > > myPageTemplate.jsp: > > > > myBodyImpl.jsp: > >foo = > > > > > ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to access tiles defs in inserted jsp ?
How do I access the value of a tiles setting from a JSP that is inserted into a template? For instance, in the following scenario, I want a rendering of "myTilesPageDef" to say "foo = bar", but it just says "foo = ". I've tried some ugly hacks, which in addition to be ugly, didn't work. Help! Thanks, -- Mike tiles-defs.xml: myPageTemplate.jsp: myBodyImpl.jsp: foo = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]