hi all,
I resolved the problem by placing standards.jar and jstl.jar in my lib and was
able to use JSTL core tag.
But was facing a issue when using conditional checking in my JSP.
a part of my JSP looks like this
<tc:cell>
<c:choose>
<c:when test="${requestScope.checkout.shipToLookup}">
<tc:out value="ShipToLookup is enabled "/>
</c:when>
<c:otherwise>
<tc:out value="ShipToLookup is disabled "/>
</c:otherwise>
</c:choose>
</tc:cell>
the getter for this shipToLookup is as such
public boolean getShipToLookup() {
return true;
//return shipToLookup;
}
but always i get the output as " ShipToLookup is disabled " which is printed
with <tc:out/> as shown in above jsp snippet.
not only this, i am checking for a variable if it is equal to 1 .
Even that condition is also failing.
Is it problem with JSTL or Tobago or me ? its very confusing.
Awaiting for a response ASAP.
Thnx in regards,
Madan
----- Original Message ----
From: Udo Schnurpfeil <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Sent: Monday, 29 January, 2007 1:16:56 PM
Subject: Re: [Tobago] Problem with JSTL
Hello Madan,
seens this is not a Tobago but a JSTL question.
Do you have an implementation for the JSTL in your classpath? You need
both: API + Impl.
You may use the apache implementation (standard.jar): See
http://jakarta.apache.org/taglibs/
If using maven try to add:
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
<scope>runtime</scope>
</dependency>
Hope that helps
Udo
madan chowdary schrieb:
> Hi all,
>
> i was having problem with JSTL tag.
>
> I want to display 20 text fields in each row.
>
> Thought to use <tc:forEach/>, but saw that its deprecated in tlddocs.
>
> So opted for <c:forEach/>.
>
> I included jstl.jar in lib directory.
>
> tried with both
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; preifx="c" %>
>
> and
>
> <%@ taglib uri="http://java.sun.com/jstl/core"; preifx="c" %>
>
> But was getting error saying that the taglib is not specified in
> web.xml or either in the classpath.
>
> tried with different versions of JSTL.But same error.
>
> how to achieve my task using <c:forEach/>
>
> thnx in regards,
>
> Madan
>
> ------------------------------------------------------------------------
> Heres a new way to find what you're looking for - Yahoo! Answers
> <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/>
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/