Re: [OT] Re: Session Strategy (here's a filter)

2005-01-21 Thread Craig McClanahan
On Fri, 21 Jan 2005 22:03:24 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote: > Perhaps nowadays it is commonplace for people to make such posts, but > it has not always been the case - and it really should not be done. I > didn't invent the custom, I just follow it. Besides being a little overwrough

Re: [OT] Re: Session Strategy (here's a filter)

2005-01-21 Thread Eddie Bush
and related (the dev list), and a third (new) list for discussing > > development strategies related to Struts? Just thinking out loud. I > > think it is somewhat logical to think that the list of lists might grow > > as the product evolves . . . > > > > Erik > > &g

Re: [OT] Re: Session Strategy (here's a filter)

2005-01-21 Thread Dakota Jack
developing Struts > and related (the dev list), and a third (new) list for discussing > development strategies related to Struts? Just thinking out loud. I > think it is somewhat logical to think that the list of lists might grow > as the product evolves . . . > > Erik > > &

[OT] Re: Session Strategy (here's a filter)

2005-01-21 Thread Erik Weber
o: Struts Users Mailing List , Dakota Jack <[EMAIL PROTECTED]> cc: Subject:Re: Session Strategy (here's a filter) ... it is a filter ... notice how it says "implements Filter". The mapping in web.xml is a dead giveaway too. I'd love to know how it

Re: Session Strategy (here's a filter)

2005-01-21 Thread Jim Barrows
ple are just cranky. Putting hte code where it can be searched by folks is a good thing. > > > Eddie Bush <[EMAIL PROTECTED]> > 01/20/2005 11:59 PM > Please respond to "Struts Users Mailing List" > > > To: Struts Users Mailing List , Dakota >

Re: Session Strategy (here's a filter)

2005-01-21 Thread john . chesher
t; cc: Subject:Re: Session Strategy (here's a filter) ... it is a filter ... notice how it says "implements Filter". The mapping in web.xml is a dead giveaway too. I'd love to know how it detects session timeouts though. Far as I can tell it will t

Re: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
On Thu, 20 Jan 2005 22:59:09 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote: > ... it is a filter ... notice how it says "implements Filter". The > mapping in web.xml is a dead giveaway too. You are right. And you know you are right. I guess that is why you feel free to be sardonic, although you

Re: Session Strategy (here's a filter)

2005-01-20 Thread Eddie Bush
... it is a filter ... notice how it says "implements Filter". The mapping in web.xml is a dead giveaway too. I'd love to know how it detects session timeouts though. Far as I can tell it will tell people who have yet to have a session created that they've timed out. ... first trip around the b

Re: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
; > " click on the button below to go to > the" > > + > > " login page."); > > > > resp.sendRedirect("/schs82/BuildActionResultViewAction.do"); > > Dakota Jack <[EMAIL PRO

Re: Session Strategy (here's a filter)

2005-01-20 Thread john . chesher
ViewAction.do"); Dakota Jack <[EMAIL PROTECTED]> 01/20/2005 11:07 AM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List cc: Subject:Re: Session Strategy (here's a filter) I was looking for a filter that det

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread fzlists
;> what he wants. >> >> I think Jack is looking for something to run WHEN the session expires, >> similar to the destroy() method in a plugin that runs when the >> application >> stops. >> >> Wiebe de Jong >> >> -Original Message- >>

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
ion > stops. > > Wiebe de Jong > > -Original Message- > From: Amleto Di Salle [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 20, 2005 9:41 AM > To: 'Struts Users Mailing List'; 'Dakota Jack' > Subject: R: R: Session Strategy (here

Re: Session Strategy

2005-01-20 Thread Dakota Jack
package com.crackwillow.filter; import java.io.IOException; import java.io.PrintStream; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.RequestDispatcher; import javax.servlet.ServletContext; import javax.servlet.ServletExcepti

RE: R: Session Strategy (here's a filter)

2005-01-20 Thread Wiebe de Jong
: Amleto Di Salle [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 9:41 AM To: 'Struts Users Mailing List'; 'Dakota Jack' Subject: R: R: Session Strategy (here's a filter) Hello Jack, you detect a session expiration using the getSession( false ) method. If you use

R: R: Session Strategy (here's a filter)

2005-01-20 Thread Amleto Di Salle
riginale- > Da: Dakota Jack [mailto:[EMAIL PROTECTED] > Inviato: giovedì 20 gennaio 2005 18.03 > A: Amleto Di Salle > Cc: Struts Users Mailing List > Oggetto: Re: R: Session Strategy (here's a filter) > > > Hello, Amleto, > > I am not looking to create a t

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread Kris Schneider
; > > > > > 30 > > > > 30 are minutes > > > > You can set the session-timeout also in the web container (see tomcat > > documentation). > > > > BR > > /Amleto > > > > > -Messaggio originale- > >

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread fzlists
gio originale- >> > Da: Dakota Jack [mailto:[EMAIL PROTECTED] >> > Inviato: gioved? 20 gennaio 2005 17.08 >> > A: Struts Users Mailing List >> > Oggetto: Re: Session Strategy (here's a filter) >> > >> > >> > I was looking for a f

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
container (see tomcat > documentation). > > BR > /Amleto > > > -Messaggio originale- > > Da: Dakota Jack [mailto:[EMAIL PROTECTED] > > Inviato: giovedì 20 gennaio 2005 17.08 > > A: Struts Users Mailing List > > Oggetto: Re: Session Strategy (here

R: Session Strategy (here's a filter)

2005-01-20 Thread Amleto Di Salle
--- > Da: Dakota Jack [mailto:[EMAIL PROTECTED] > Inviato: giovedì 20 gennaio 2005 17.08 > A: Struts Users Mailing List > Oggetto: Re: Session Strategy (here's a filter) > > > I was looking for a filter that detected sessions that had > expired and rerouted the request

Re: Session Strategy

2005-01-20 Thread Jim Barrows
On Thu, 20 Jan 2005 06:53:36 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > I am also too lazy to make a filter! LOL ;-) Anyone have one of > these in their toolbox they would like to share? package com.sssc.csr.web.filters; import java.io.IOException; import java.util.Iterator; import java.ut

Re: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
sition", > "systemError"); > session.setAttribute("currentActionMessage", "You have > accessed" + > " SCHS82.com in a non-authorized way. > Please" + > &quo

Re: Session Strategy (here's a filter)

2005-01-20 Thread john . chesher
estroy() {} } And this must be added to web.xml *** AuthenticationFilter schs82.AuthenticationFilter AuthenticationFilter /secure/* Dakota Jack <[

R: Session Strategy

2005-01-20 Thread Amleto Di Salle
viato: giovedì 20 gennaio 2005 15.54 > A: Struts Users Mailing List; [EMAIL PROTECTED] > Oggetto: Re: Session Strategy > > > I am also too lazy to make a filter! LOL ;-) Anyone have > one of these in their toolbox they would like to share? > > Jack > > > On

Re: Session Strategy

2005-01-20 Thread Dakota Jack
I am also too lazy to make a filter! LOL ;-) Anyone have one of these in their toolbox they would like to share? Jack On Thu, 20 Jan 2005 12:49:41 +0800, Andrew Hill <[EMAIL PROTECTED]> wrote: > Id support the filter suggestion, though for myself I generally do the > check in the RequestProce

Re: Session Strategy

2005-01-20 Thread Frank W. Zammetti
I'm not sure I agree with the point, but I do see where your coming from. It's debatable I think, but you make a reasonable argument. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Will Stranathan wrote: Nope - Andrew is right - JSP's are on

Re: Session Strategy

2005-01-20 Thread Will Stranathan
Nope - Andrew is right - JSP's are only part of the configuation and support files in a well-written MVC webapp - it's only TEMPLATE text. Just like if you send a canned email, I'm sure you keep your email templates under WEB-INF, right? Well, JSP's are just out.println() template. w On Thu,

Re: Session Strategy

2005-01-19 Thread Frank W. Zammetti
That's an interesting view of JSPs. I've always thought of WEB-INF as configuration and support files only. In that mindset, a JSP wouldn't fit because it is a piece of the application itself, not configuration and not a support file, like JARs would be for instance. In any case, I'm not tryi

Re: Session Strategy

2005-01-19 Thread Andrew Hill
Id support the filter suggestion, though for myself I generally do the check in the RequestProcessor, as Ive usually overrideen it to perform other evil anyhow, and Im lazy to make a filter. If you dont keep your JSP under WEB-INF (IMHO thats where they belong because they are 'code & config' ,

Re: Session Strategy

2005-01-19 Thread Frank W. Zammetti
no session) exists. I've done this myself once or twice. :) Regards, David -Original Message- From: Jim Douglas [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 10:40 PM To: user@struts.apache.org Subject: Session Strategy To all, I have a web application that sets a sessio

RE: Session Strategy

2005-01-19 Thread David G. Friedman
serID object or redirect to a login page if no such object (or no session) exists. I've done this myself once or twice. :) Regards, David -Original Message- From: Jim Douglas [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 10:40 PM To: user@struts.apache.org Subject: S

Session Strategy

2005-01-19 Thread Jim Douglas
To all, I have a web application that sets a session attribute with userID and a timeout in the config file that times out after 5 minutes in case the user walks away. I am trying to figure out the best strategy to deal with cases where the user comes back after 5 minutes and clicks on a butto