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: 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: 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 <[

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
If the user clicks a button, you are either going to (a) go directly to a JSP, which is generally not a good idea in a Struts-based application anyway (or any servlet-based application for that matter) or (b) go to an Action, as you probably should be doing. In either case, choice 1 is what I

RE: Session Strategy

2005-01-19 Thread David G. Friedman
I'll suggest option #3: Hide all JSP's under /WEB-INF/pages (or something like that) so you need actions (or ForwardActions) to internally get to the JSP pages. Then, you can modify the RequestProcessor.processRoles() method to perform your security check for the session scope's userID object or