Yes you can access them via JSTL, like Dave mentioned (using ${param.xx} ),
but not via OGNL.
If you want to access those params via OGNL use JSTL to set them into the
page scope, then use #attr to get them.
I hate JSTL's choose/otherwise tags, and prefer struts if/else tags, so I
use this a lot in that situation.


<s:include value="/WEB-INF/components/competitions/identity-readonly.jsp">
  <s:param name="comp" value="competition" />
</s:include>



<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
<c:set var="comp" value="${param.comp}"/>

<div class="primaryBox">
  <h1>Competition Information</h1>
  <s:property escape="false" value="#attr.comp" />
</div>











                                                                           
             Dave Newton                                                   
             <[EMAIL PROTECTED]                                             
             o.com>                                                     To 
                                       Struts Users Mailing List           
             07/28/2008 07:18          <user@struts.apache.org>            
             AM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: S2: s:include tag and s:param   
               "Struts Users                                               
               Mailing List"                                               
             <[EMAIL PROTECTED]                                             
                  he.org>                                                  
                                                                           
                                                                           




--- On Mon, 7/28/08, Eric Nielsen <[EMAIL PROTECTED]> wrote:
> Dave Newton <newton.dave <at> yahoo.com> writes:
> > It already does; not sure what I was thinking there.
> (I do know; I was looking
> at the wrong code.)
> >
> > I'm able to access parameters set via a nested
> <s:param.../> using both <c:out
> value="${param.foo}"/>
> > and ${param.foo}.
>
> OK I'm now a little confused.  It sounds like you're reversing
> yourself from the first reply and that what I was trying should work?

Yeah, that was why I said "not sure what I was thinking" (but I do know; I
was looking at the wrong method).

> Can you see something different between your test case and
> the code I sent before?

I used the word "param" in my EL.

Dave


---------------------------------------------------------------------
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