If you can display it with ${ param.blocSource }, did you try 
#attr.param.blocSource?



-----Original Message-----
From: poof65 [mailto:poo...@gmail.com] 
Sent: Thursday, March 25, 2010 6:01 AM
To: user@struts.apache.org
Subject: [Struts2] Retrieve parameter scope variables with OGNL

Hi,

i'm using jsp:include to include a jsp from another but i've a problem
to get the value set in the jsp:param tag.

<jsp:include page="../include/blocs/blocEnteteDossier.jsp">
        <jsp:param name="blocSource" value="depeche" />
</jsp:include>

I can display the value with EL (${ param.blocSource }) but my goal is
to test it in a s:if tag.
I've tried many solutions but none of them give me the correct result.

<s:property value="blocSource"/>
<s:property value="#blocSource"/>
<s:property value="#attr.blocSource"/>
<s:property value="#request.blocSource"/>
<s:property value="#session.blocSource"/>
<s:property value="#application.blocSource"/>
<s:property value="#parameters.blocSource"/>


My question is, are the struts scopes compatbiles with standards
jsp/servlets scopes ?

Thanks for reading :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-----------------------------------------
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an 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 the Sender
immediately by replying to the message and deleting it from your
computer.  Thank you.  Premier Inc.

Reply via email to