You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Dean A. Hoover" <dh...@rochester.rr.com> on 2004/04/22 14:35:39 UTC

determining session timeout value

After getting some great suggestions here for various
ways of handling session timeouts, I have implemented
something I am very happy with. Now, when a timeout
happens I want to be more informative to the user by
constructing a message that tells them what the timeout
is in minutes. Anyone know how I can get this value?

Dean Hoover


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: determining session timeout value

Posted by Bill Siggelkow <bi...@bellsouth.net>.
Dean A. Hoover wrote:

> After getting some great suggestions here for various
> ways of handling session timeouts, I have implemented
> something I am very happy with. Now, when a timeout
> happens I want to be more informative to the user by
> constructing a message that tells them what the timeout
> is in minutes. Anyone know how I can get this value?
> 
> Dean Hoover
Did you try HttpSession.getMaxInactiveInterval()?

Bill Siggelkow


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Validator question

Posted by he...@epidataconsulting.com.
In de Struts Validator guide, under the title "Conditionally required
fields" is an example of how to do conditional requirement.
http://jakarta.apache.org/struts/userGuide/dev_validator.html

Hope it helps
Hernan



> Hi all,
> 	I need help on struts validator.
> I have a form bean with two fields,and either one
> Or the other needs to be entered.
> How can I express, in validation.xml, that I want that either
> One field or the other is required?
>
> Thanx in advance and regards
> 	marco
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Validator question

Posted by Marco Mistroni <mm...@waersystems.com>.
Hi all,
	I need help on struts validator.
I have a form bean with two fields,and either one
Or the other needs to be entered.
How can I express, in validation.xml, that I want that either
One field or the other is required?

Thanx in advance and regards
	marco


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org