Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session out in Struts

 
Asheesh Nehra
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, how to handle session time out in struts , i did like this but this is not working

and added a controller like this


whats wrong with this code???
 
Ankit Garg
Sheriff
Posts: 9529
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know much about struts 1.x, but the documentation says that if you return false from the requestPreprocess method, then the request processing will halt. So your class looks fine to me. I found two ways of configuring custom controller

1.


2.
the one that you are using.

The only point that might you maybe doing wrong is where you are declaring that element. I found that it must be declared after all action elements (usually deployment fails if there is anything wrong with xml configuration files like order of elements so I'm not sure if that's the cause)...
 
Asheesh Nehra
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for reply, In stuts config file I am using tile , and processor Class is pointing to it also. Now can you tell ,can i use processor Class class for multiple purpose like tiles and session too?.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic