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 Thomas Colin de Verdiere <td...@scort.com> on 2002/05/15 09:35:42 UTC

Tags generation

Hi,
i don't know if it's the good group to ask :
I have two applications :

one generate jsp page
this other interpret jsp pages as Tomcat.

The first one create pages with tags inside. Those pages includes 
already tags that are designed to generate other tag.

My question is if in the first pages :
i have a <if tag> is it possible to generate in the second page an <if > 
(exactly the same) with an interpreter, Jasper ... in order for this 
pages and the generated they work the same (the exact same result) in 
Jsp container (Tomcat).


Here is an example :
myLoopTag loops over a collection, defines a var 'current' which is the 
current element

<mylib:myLoopTag >
<c:if test="${current.blue}">
My tag is blue.
</c:if>
<mylib:myLoopTag />

I want this page to generate another page like :

<mylib:myNextTag >
<c:if test="${current.blue}">
My tag is blue.
</c:if>
<mylib:myNextTag />
<mylib:myNextTag >
<c:if test="${current.blue}">
My tag is blue.
</c:if>
<mylib:myNextTag />
<mylib:myNextTag >
<c:if test="${current.blue}">
My tag is blue.
</c:if>
<mylib:myNextTag />


Both pages runs in the Same servlet container and at runtime have the 
same presentation :
My tag is blue.
My tag is blue.
My tag is blue.

If all tags are blue.


Thanx
-- 
Thomas Colin de Verdière
SCORT
http://www.scort.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Cannot Resolve Symbol Error

Posted by Rick Fincher <rn...@tbird.com>.
Hi,

I'm trying to compile a webapp with Sun's Javamail demo jar file and I keep
getting "cannot resolve symbol" errors for the tag classes.  The classes are
in the jar file, the tld file is installed, and the web.xml file is setup as
the instructions indicate.

When I try to build the app in Forte I get the error when it tries to
compile the servlets generated from the JSP files with the tags in them.

It acts as if the jar file is not in the classpath, but it is in the
WEB-INF/lib directory of the app.

Any idea what I'm doing wrong?

Thanks,

Rick


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>