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 Eugeny N Dzhurinsky <eu...@jdevelop.com> on 2005/08/11 16:19:14 UTC

prints strange results

I'm trying to use the jakarta taglibs on Tomcat 5.0

I created the test application, which works fine with

<c:out value="${someobject}" />, it prints the object or nothing of no object
available in all scopes.

I moved the taglib descriptors to the WEB-INF/tld/ in live application, 
moved the standard,jar and jstl.jar in the WEB-INF/lib, included the 

<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>

at the SAME test JSP page as I used on another application, and right now i
see the

${someobject} as the output

In the HTML output there is no <c:out> tag, so I suppose the tag was
recognized and executed, but it was working in a bit strange way.

The foreach tag won't work at all - it displays the contents even in the case
there is no collection object defined at all.

How to fix this?

-- 
Eugene N Dzhurinsky

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


Re: a simple for loop, how?

Posted by Eugeny N Dzhurinsky <eu...@jdevelop.com>.
On Fri, Aug 12, 2005 at 02:07:49PM +0530, Ranendra wrote:
> <c:forEach begin="0" end="10" step="1">
> </c:forEach>
> that should be all right...
> cheers

I think he should need the varStatus as well
<c:forEach begin="0" end="10" step="1" varStatus="it">
iteration : ${it.count}
</c:forEach>

-- 
Eugene N Dzhurinsky

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


RE: a simple for loop, how?

Posted by Ranendra <rn...@camo.com>.
<c:forEach begin="0" end="10" step="1">
</c:forEach>


that should be all right...
cheers

-----Original Message-----
From: Rolf.Niepraschk@ptb.de [mailto:Rolf.Niepraschk@ptb.de] 
Sent: Friday, August 12, 2005 1:57 PM
To: Tag Libraries Users List
Subject: a simple for loop, how?


I need something like "c:forEach" but without an existing list or array
structure. The loop should be executed a known number like the for loop in
Java or C. What is the best solution using tag libs? Thanks in advance.

...Rolf


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


Re: a simple for loop, how?

Posted by Ro...@ptb.de.
Thanks for the answers. I know my question was stupid ;-(

...Rolf



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


a simple for loop, how?

Posted by Ro...@ptb.de.
I need something like "c:forEach" but without an existing list or array
structure. The loop should be executed a known number like the for loop in
Java or C. What is the best solution using tag libs? Thanks in advance.

...Rolf


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


Re: prints strange results

Posted by Rahul P Akolkar <ak...@us.ibm.com>.
Eugeny N Dzhurinsky <eu...@jdevelop.com> wrote on 08/11/2005 10:19:14 
AM:
<snip/>
> at the SAME test JSP page as I used on another application, and right 
now i
> see the
> 
> ${someobject} as the output

Does this help? [ 
http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions ]

-Rahul