gt; Subject: Re: session tracking in struts> > 2008/2/21,
> Andy Hahn <[EMAIL PROTECTED]>:> > I haven't seen many Struts1 questions since
> I have joined so hopefully this is the right place to be asking.> > Yes it is
> :-)> > > I am using Struts/Tomcat
2008/2/21, Andy Hahn <[EMAIL PROTECTED]>:
> I haven't seen many Struts1 questions since I have joined so hopefully this
> is the right place to be asking.
Yes it is :-)
> I am using Struts/Tomcat5.5 and I am using the pattern for session
> management where I have a BaseAction class with execut
I haven't seen many Struts1 questions since I have joined so hopefully this is
the right place to be asking.
I am using Struts/Tomcat5.5 and I am using the pattern for session management
where I have a BaseAction class with executeAction(). I can't remember the
pattern name but hopefully you
ce the user logon, i will maintain a session and for any
request thenafter upto logout i need to test that session is valid,
otherwise i need to display sessionExpire page and requires relogin.
please let me know that how to do it?
ur's
Mallik
--
View this message in context:
http://www.nabble
requires relogin.
please let me know that how to do it?
ur's
Mallik
--
View this message in context:
http://www.nabble.com/Session-tracking-in-struts--tf2527634.html#a7045712
Sent from the Struts - User mailing list archive at Nabbl
Hi Prerna,
If i am not wrong , this is not session tracking.
it is session validation.
1) this has a problem,
It unnecessarily creates a session.
2)think it works but using browser back button might fail
3) think it works but using browser back button might fail
4)Using filters (Cookies
Hi All,
I would like to know which is the best approach for session tracking in
struts among the following
1) Writing your own ActionServlet class which will have the
following code
public class MyActionServlet extends ActionServlet{
/* (non-Javadoc
gt; -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 28, 2006 4:02 PM
> To: user@struts.apache.org
> Subject: RE: Session Tracking
>
>
> Hi All,
>
> What code do I explicit need to write to be able to call
> session.invalidat
first Struts project)
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Laurie Harper
Sent: Friday, July 28, 2006 3:40 PM
To: user@struts.apache.org
Subject: Re: Session Tracking
Importance: High
You only need to do that if you need to take some action on session
expiry; th
t: Friday, July 28, 2006 3:40 PM
To: user@struts.apache.org
Subject: Re: Session Tracking
Importance: High
You only need to do that if you need to take some action on session
expiry; the servlet container will take care of calling
session.invalidate() for you automatically.
L.
Patil, Shee
when a session is destroyed
*/
public void sessionDestroyed( HttpSessionEvent httpSessionEvent )
{
}
}
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 28, 2006 4:02 PM
To: user@struts.apache.org
Subject: RE: Session Tracking
PROTECTED]
Sent: Friday, July 28, 2006 4:02 PM
To: user@struts.apache.org
Subject: RE: Session Tracking
Hi All,
What code do I explicit need to write to be able to call
session.invalidate() when the session timeout happens ?
For eg
1) I have opened a window
2) Timeout is set to 5 mins.
3) There is
session.invalidate() for this session?
Do I need to write listener classes? Can anyone post a code snippet?
Thanks
Prerna
-Original Message-
From: Patil, Sheetal [mailto:[EMAIL PROTECTED]
Sent: Friday, July 28, 2006 11:28 AM
To: Struts Users Mailing List
Subject: RE: Session Tracking
As I
f
possible
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 28, 2006 11:11 AM
To: user@struts.apache.org
Subject: Session Tracking
H All,
I am using struts framework and tomcat as the webserver. I want to
implement session tracking and explicitly
at as the webserver. I want to
implement session tracking and explicitly expire the session after a
fixed period of inactivity.
So the session needs to expire in the following scenarios
Can you tell me the best design approach to handle this? Should I take
care of all in a class which ex
H All,
I am using struts framework and tomcat as the webserver. I want to
implement session tracking and explicitly expire the session after a
fixed period of inactivity.
So the session needs to expire in the following scenarios
1) User clicks on Logout on JSP page ( Can this be
Thanks to all,
I am very glad and I got answer for my question. thanks
sony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Stephen Hartley wrote:
When you say a long time, how long is long?
...plus the session might timeout if you have a slow user if you haven't
adjusted the session timeout value.
Aren't you glad you asked?
Dave
-
To unsub
When you say a long time, how long is long?
A session is unique to a user. Should the value you
want to persist be available to more than one (or all)
users? If so, then you may be better using the
servlet context...
> struts. how can I set the
> > value from jsp and how can I retrieve that val
And you get the HttpSession object from the request in your action like
this:
HttpSession session = req.getSession();
// where req is the HttpServletRequest passed into the "execute" method
On Tue, 2005-11-29 at 10:21 -0500, Srinivas Jadcharla wrote:
> You can use HttpSession Object..In that yo
You can use HttpSession Object..In that you have setAttribute("") and
getAttribute("") mthods.
On 11/29/05, Sony Thomas <[EMAIL PROTECTED]> wrote:
>
> Hi Stephen,
>
> What I want to know is suppose I have to store some value to session. Is
> there is something called Session object in struts. how
Hi Stephen,
What I want to know is suppose I have to store some value to session. Is
there is something called Session object in struts. how can I set the
value from jsp and how can I retrieve that value in action from session
object. My problem is that i have to set the value to the session a
Sony Thomas wrote:
how the session tracking doing in Struts without using hidden field or
URL rewriting.
Cookies.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm not sure that I fully understand your question,
but an alternative could be to use cookies?
--- Sony Thomas <[EMAIL PROTECTED]> wrote:
> how the session tracking doing in Struts without
> using hidden field or
> URL rew
how the session tracking doing in Struts without using hidden field or
URL rewriting.
sony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
25 matches
Mail list logo