You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Maas <pe...@noterik.nl> on 2003/12/01 22:54:09 UTC
Include tag, dynamic param
In the documentation for the include tag I read that something like:
<jsp:include page="slideEvents.jsp" flush="true" >
<jsp:param name="BroadcastId" value="{parameterValue |
<%=BroadcastId%>}"/>
</jsp:include>
Should work...
This compiles / and runs... but the expression is never evaluated....
how does this work??
gr,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Include tag, dynamic param
Posted by Tim Funk <fu...@joedog.org>.
2 things
1) Are you trying to use el? If so you need a $ in front of {. You also need
your web.xml to state that you are using el.
2) For the RT expression - make sure you tag lib declaration allows runtime
expressions.
For both of the above - there are plenty of net articles on the specifics of
how this is done.
-Tim
Peter Maas wrote:
>
>> What do you get in the page source when it runs?
>>
>> Do you get "<jsp:param name="BroadcastId" value="{parameterValue | <%=
>> BroadcastId %>}" />"
>>
>> ??
>>
>> If so, then something is terribly wrong. If you get the include okay,
>> but the value of "BroadcastId" is
>> "{parameterValue | <%= BroadcastId %>}", then something else is wrong :(
>
>
>
> This is exactly what I get......
>
>
> BTW, I'm running tomcat 5.0.12 and am able to replicate this on a winxp
> and a redhat 9.0 box...
>
>
> Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Include tag, dynamic param
Posted by Peter Maas <pe...@noterik.nl>.
> What do you get in the page source when it runs?
>
> Do you get "<jsp:param name="BroadcastId" value="{parameterValue | <%=
> BroadcastId %>}" />"
>
> ??
>
> If so, then something is terribly wrong. If you get the include okay,
> but the value of "BroadcastId" is
> "{parameterValue | <%= BroadcastId %>}", then something else is wrong :(
This is exactly what I get......
BTW, I'm running tomcat 5.0.12 and am able to replicate this on a winxp
and a redhat 9.0 box...
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Include tag, dynamic param
Posted by Christopher Schultz <ch...@comcast.net>.
Peter,
> <jsp:include page="slideEvents.jsp" flush="true" >
> <jsp:param name="BroadcastId" value="{parameterValue |
> <%=BroadcastId%>}"/> </jsp:include>
>
> Should work...
>
> This compiles / and runs... but the expression is never evaluated....
What do you get in the page source when it runs?
Do you get "<jsp:param name="BroadcastId" value="{parameterValue | <%=
BroadcastId %>}" />"
??
If so, then something is terribly wrong. If you get the include okay,
but the value of "BroadcastId" is
"{parameterValue | <%= BroadcastId %>}", then something else is wrong :(
Finally, if you are getting "{parameterValue | 1234}" as the value of
BroadcastId, then it is working as designed.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org