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

Note, specifically, the part that says "Note: Any additional params supplied
to the included page are not accessible within the rendered page through the
<s:property...> tag!"

d.

--- Ashish Jain <[EMAIL PROTECTED]> wrote:

> I am new to struts2
> I am struggling to include jsp in a jsp.
> I am passing an param to included jsp and I want to access that param
> in included jsp.
> 
> I tried different combinations.. none is seem to be working.
> 
> Only thing, working is <%= request.getParameter("configKey")%>
> But how to use this param in struts tags?
> 
> 
> here is my code
> in main jsp
> ========
> <s:include value="inc/settingsRow.jsp">
>   <s:param name="configKey" value="%{'domainName'}"/>
> </s:include>
> 
> 
> included jsp
> =========
> <%@ include file="/tagDefinitions.jsp" %>
> <s:set name="configKey1" value="#request.configKey"></s:set>
>  <tr>
>  <td><s:text name="label.%{configKey1}"/></td>
> </tr>
> 
> 
> -- 
> Thanks
> Ashish
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to