• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet Filter - How To Handle Session Time-Out

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
People have suggested servlet filter is a good choice to check session time-out if I want all servlets and JSPs remain intact.
I do not have any idea how it works in Struts.
First of all, I think this servlet filter has to be declared in the web.xml. Is it right?
Second, I have many actions in the struts application. How do I call this servlet filter whenever the flow goes to an action?
Third, Do I code

in the doFilter(); ?
[ February 11, 2004: Message edited by: JiaPei Jen ]
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please. If you have an example of using servlet filter to handle session time-out in Struts.
 
Junilu Lacar
Sheriff
Posts: 9961
103
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Filters were introduced in the Servlet Specification 2.3
They really have nothing to do with Struts but if you want to learn more about them, here are some links
Moving this thread to the Servlets forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!