You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by James Di Wu <jd...@kitco.com> on 2004/05/27 23:01:14 UTC

How to make EL work with Struts?

Hi,
EL is part of JSP2.x. It works fine before I installed Struts1.1. After
that, EL doesn't work any more. Is that correct with Struts? I don't
want to change all my prev jsp. How can I solve the problem?
 
Thanks.
 
James

RE: How to make EL work with Struts?

Posted by James Di Wu <jd...@kitco.com>.
Hi Mark,
It works. <%@ page isELIgnored="false" %> is the line required in JSP.
Thanks.

James

-----Original Message-----
From: Mark Lowe [mailto:mark.lowe@boxstuff.com] 
Sent: Thursday, May 27, 2004 5:11 PM
To: Struts Developers List
Subject: Re: How to make EL work with Struts?

Probably want to be on the user list for this

But if your web.xml is 2.2 or 2.3 servlet spec and you just want to 
drop the jstl and standard jars into you lib directory then stick this 
at the top of your jsp's

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

<c:set var="foo" value="Mellow world" />

${foo}

You dont need all the tag library stuff in you web xml either.


On 27 May 2004, at 23:01, James Di Wu wrote:

> Hi,
> EL is part of JSP2.x. It works fine before I installed Struts1.1.
After
> that, EL doesn't work any more. Is that correct with Struts? I don't
> want to change all my prev jsp. How can I solve the problem?
>
> Thanks.
>
> James
>


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


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


Re: How to make EL work with Struts?

Posted by Mark Lowe <ma...@boxstuff.com>.
Probably want to be on the user list for this

But if your web.xml is 2.2 or 2.3 servlet spec and you just want to 
drop the jstl and standard jars into you lib directory then stick this 
at the top of your jsp's

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

<c:set var="foo" value="Mellow world" />

${foo}

You dont need all the tag library stuff in you web xml either.


On 27 May 2004, at 23:01, James Di Wu wrote:

> Hi,
> EL is part of JSP2.x. It works fine before I installed Struts1.1. After
> that, EL doesn't work any more. Is that correct with Struts? I don't
> want to change all my prev jsp. How can I solve the problem?
>
> Thanks.
>
> James
>


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