So, can we access supplied params somehow?
(I can't use <%= request.getParameters(...))%> inside <s:tags../>


If no, then why it accepts params? wht for?

Secondly,
i can use <jsp:include/> with params.
but again, it's visible as request.getParameter.. but not on valuestack.



On Jan 27, 2008 11:45 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> 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]
>
>



-- 
Thanks
Ashish Jain
IntelliConcepts, Inc.
+1 (732) 259 9855 (voice)
+1 (609) 632 0081 (home, fax)

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

Reply via email to