struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcio Ghiraldelli" <mar...@neobiz.com.br>
Subject Re: Template action include
Date Tue, 07 Mar 2006 19:51:28 GMT
    It worked now!
    I was using this taglib declaration:

    <%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

    According to a forum, with Tomcat 5 (my case) I should use this (with a 
jsp in the URL):

    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

    Now it doens't complains with the expression and worked perfectly!
    Thanks!


----- Original Message ----- 
From: "Marcio Ghiraldelli" <marcio@neobiz.com.br>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, March 07, 2006 4:37 PM
Subject: Re: Template action include


>    This is exactly the behavior I need:
>
>    <c:import url="${requestScope.action}" />
>
>    but the above code shows me the same error. The taglib doesn't accept 
> expressions in url value.
>
>    I am new in JSTL, but I got all libs instaled. How can these RT and RL 
> help me?
>
>    Thanks!
>
> ----- Original Message ----- 
> From: "Michael Jouravlev" <jmikus@gmail.com>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Sent: Tuesday, March 07, 2006 4:22 PM
> Subject: Re: Template action include
>
>
> On 3/7/06, Marcio Ghiraldelli <marcio@neobiz.com.br> wrote:
>>     <c:import> worked ok, it keep the request values and integrate ok the
>> output, but:
>>
>>     <c:import url="<%=request.getParameter("action")%>" />
>>     "According to TLD, the attribute URL canĀ“t accept any expression"
>
> You can copy request parameter to request attribute (say, to "action")
> and then use
> <c:import url="${requestScope.action}" /> Looks stupid but should work.
>
> Or you may try using JSTL-RT instead of JSTL-EL (do you use JSTL 1.0
> from separate library?) But I don't know can you use both flavors in
> the same application.
>
> Michael.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> 


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


Mime
View raw message