Re: Using RequestDispatcher.include() outside of Request/Response cycle.

2007-10-10 Thread Konstantin Kolinko
Hi, Andrei! You may consider looking at existing "mock" implementations of HttpServletRequest/Response that are available. For example, Spring Framework (http://springframework.org) has org.springframework.mock.web.MockHttpServletRequest, org.springframework.mock.web.MockHttpServletResponse Thos

Re: Using RequestDispatcher.include() outside of Request/Response cycle.

2007-10-09 Thread Andrei Tchijov
Thnx for reply! I thought that it should be possible. Was just looking for some pointers about which methods are important and which are not in Request/Response. On Oct 9, 2007, at 10:34 PM, Lilianne E. Blaze wrote: Hello, Consider using either Request / Response Wrappers subclassed and m

Re: Using RequestDispatcher.include() outside of Request/Response cycle.

2007-10-09 Thread Lilianne E. Blaze
Hello, Consider using either Request / Response Wrappers subclassed and modified so they simply return 0 / null / "" / ignore output, or google for "servlet api mock objects" or something similar. Ages ago I wrote something similar, where specified pages were called on webapp start / stop. Don't as

Re: Using RequestDispatcher.include() outside of Request/Response cycle.

2007-10-09 Thread Christopher Schultz
-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" %> > > > > > > Oh, I get it. You're using JSP to script Java, rat

RE: Using RequestDispatcher.include() outside of Request/Response cycle.

2007-10-09 Thread Propes, Barry L
basic JSTL? -Original Message- From: Andrei Tchijov [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 09, 2007 5:53 PM To: Tomcat Users List Subject: Re: Using RequestDispatcher.include() outside of Request/Response cycle. There is no any "<% ... %>" in the audit js

Re: Using RequestDispatcher.include() outside of Request/Response cycle.

2007-10-09 Thread Andrei Tchijov
There is no any "<% ... %>" in the audit jsp. Below is one simple example of such file: <%@ include file="/common/all.include.jsp" %> "audit" is a hashtable object in session. it has all information needed ( "event" - login|logout| , "userName", "sessionId" ). is a

Re: Using RequestDispatcher.include() outside of Request/Response cycle.

2007-10-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrei, Andrei Tchijov wrote: > I would love to let JSP application developers to stay in one language > environment (JSP). And as soon as pretty much all but auditing could be > done in JSP (especially with JSTL), I feel that it will be nice (and >

Re: Using RequestDispatcher.include() outside of Request/Response cycle.

2007-10-09 Thread Andrei Tchijov
I would love to let JSP application developers to stay in one language environment (JSP). And as soon as pretty much all but auditing could be done in JSP (especially with JSTL), I feel that it will be nice (and appropriate) to let people to code audit functionality using JSP as well. And

Re: Using RequestDispatcher.include() outside of Request/Response cycle.

2007-10-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrei, Andrei Tchijov wrote: > I can (and do) add session listener, so it is not a problem to detect > that session timed out. The problem is how to invoke my audit JSP > page. Why not just do your audits right in the session listener? JSPs are not