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
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
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
-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
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
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
-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
>
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
-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
Hi,
I have a valve which detects some events in life-cycle of a web
application ( like successful login/failed login/logout ) and invokes
some configurable JSP page to let it perform some audit auctions
( like putting records in the table which trace access to
application ). It works fi
10 matches
Mail list logo