Thanks for the catch Dave.

Isn't it funny that they provide two examples of parameter passing in [1]?
Don't expect to be able to access those using struts tags within the
included file, ha!

I (hacked | worked around | fixed) it by using JSTL <c:set> to place those
params into the page context (and therefore the value stack):

<c:set var="nav1" value="${param.nav1}"/>

<p>
Nav 1a: <s:property value="#attr.nav1"/><br />
Nav 1b: <s:property value="%{#attr.nav1}"/><br />
Nav 1c: <s:property value="#attr['nav1']"/><br />
Nav 1d: <s:property value="%{#attr['nav1']}"/>
</p>

Nav 1a: portalAdmin
Nav 1b: portalAdmin
Nav 1c: portalAdmin
Nav 1d: portalAdmin

Thanks,
-B




                                                                           
             Dave Newton                                                   
             <[EMAIL PROTECTED]                                             
             o.com>                                                     To 
                                       Struts Users Mailing List           
             07/21/2008 05:56          <user@struts.apache.org>            
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: [S2] Unable to access passed    
               "Struts Users           parameters in an included file      
               Mailing List"                                               
             <[EMAIL PROTECTED]                                             
                  he.org>                                                  
                                                                           
                                                                           
                                                                           




--- On Mon, 7/21/08, <Becky.L.O'[EMAIL PROTECTED]> wrote:
> Feels like I missed something obvious....

The note on [1] where it says that params aren't available on the stack, I
think.

I don't recall the reason at the moment, though.

Dave

[1] http://struts.apache.org/2.x/docs/include.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
This message, together with any attachments, is
intended only for the use of the individual or entity
to which it is addressed. It may contain information
that is confidential and prohibited from disclosure.
If you are not the intended recipient, you are hereby
notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If
you have received this message in error, please notify
the original sender immediately by telephone or by
return e-mail and delete this message, along with any
attachments, from your computer. Thank you.

---------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to