You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by michael Muttai <lm...@hotmail.com> on 2005/10/22 06:05:53 UTC
jstl doesn't work
Why do I get ${customers.firstName} when I use the following codes in a jsp
file?
<c:forEach var="customers" items="${requestScope.customers}">
<tr>
<td><c:out value="${customers.firstName}"/></td>
...
</tr>
</c:forEach>
I use JBoss 4.0.3. I include jstl.jar and standard.jar under web-inf/lib and
some *.tld files under web-inf.
Any help is appreciated.
Michael
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
Re: jstl doesn't work
Posted by michael Muttai <lm...@hotmail.com>.
Yes, I did. Jstl doesn't work if I use servlet specification 2.3. Once I
change it to servlet specification 2.4 in web.xml, it works. I use Struts
1.2.4 with jstl 1.1.
Michael
>From: Christian Taylor <ch...@acadiau.ca>
>Reply-To: "Tag Libraries Users List" <ta...@jakarta.apache.org>
>To: Tag Libraries Users List <ta...@jakarta.apache.org>
>Subject: Re: jstl doesn't work
>Date: Sat, 22 Oct 2005 07:59:30 -0300
>
>Hi Michael,
>
>Did you include the necessary taglib directives at the beginning of your
>JSP? For example, to use the core taglib as you are doing:
>
><%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
>
>This needs to be included at the top of any JSP using the taglib. If you
>already know this, I apologize. It was the only thing I could think of that
>you didn't mention. Hope this helps.
>
>-Christian
>
>michael Muttai wrote:
>
>>Why do I get ${customers.firstName} when I use the following codes in a
>>jsp file?
>>
>><c:forEach var="customers" items="${requestScope.customers}">
>><tr>
>><td><c:out value="${customers.firstName}"/></td>
>>...
>></tr>
>></c:forEach>
>>
>>I use JBoss 4.0.3. I include jstl.jar and standard.jar under web-inf/lib
>>and some *.tld files under web-inf.
>>
>>Any help is appreciated.
>>
>>
>>
>>
>>Michael
>>
>>_________________________________________________________________
>>On the road to retirement? Check out MSN Life Events for advice on how to
>>get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
Re: jstl doesn't work
Posted by Christian Taylor <ch...@acadiau.ca>.
Hi Michael,
Did you include the necessary taglib directives at the beginning of your
JSP? For example, to use the core taglib as you are doing:
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
This needs to be included at the top of any JSP using the taglib. If you
already know this, I apologize. It was the only thing I could think of
that you didn't mention. Hope this helps.
-Christian
michael Muttai wrote:
> Why do I get ${customers.firstName} when I use the following codes in
> a jsp file?
>
> <c:forEach var="customers" items="${requestScope.customers}">
> <tr>
> <td><c:out value="${customers.firstName}"/></td>
> ...
> </tr>
> </c:forEach>
>
> I use JBoss 4.0.3. I include jstl.jar and standard.jar under
> web-inf/lib and some *.tld files under web-inf.
>
> Any help is appreciated.
>
>
>
>
> Michael
>
> _________________________________________________________________
> On the road to retirement? Check out MSN Life Events for advice on how
> to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org