It worked now!
   I was using this taglib declaration:

   <[EMAIL PROTECTED] 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):

   <[EMAIL PROTECTED] 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" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
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