tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Using RequestDispatcher.include() outside of Request/Response cycle.
Date Wed, 10 Oct 2007 00:30:51 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrei,

Andrei Tchijov wrote:
> There is no any "<% ... %>" in the audit jsp.  Below is one simple
> example of such file:
> 
> <%@ include file="/common/all.include.jsp" %>
> 
> <c:if test="${ audit != null }" >
>     <log:info msg="${ audit.event } : ${ audit.userName }" />
> 
>     <security:login loginName="${ audit.userName }" event="${
> audit.event }" sessionId="${ audit.sessionId }" />
> </c:if>

Oh, I get it. You're using JSP to script Java, rather than just using
Java. Good luck with that. :(

By the way, your JSP generates plenty of output, even if it /is/ just
whitespace.

> This is actually what made me go this way. With ability to define new
> tags using JSP (taglib) it is truly possible to have "java-less" JSP
> application.

So, by writing tons of taglib code, you can effortlessly script Java. Yup.

To answer your original question: I don't believe that there's an easy
(or natural) way for you to do what you want to do. Since this is Not
Recommended Technique(TM), I'm not going to spend any more time on it.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHDB079CaO5/Lv0PARAq9nAJ0Z+9AasT23uorxQAv0SgZwUQ0K5ACfTxyQ
twgNiUTwXBeu7tLY3SYfkzM=
=I7XT
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message