It's not a secret anymore!
The moose likes Struts and the fly likes session in Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "session in Action class" Watch "session in Action class" New topic

session in Action class

Avtomat Kalashnikov

Joined: Dec 25, 2005
Posts: 9
i EveryBody, I am a newbie to struts.I am devloping a small login application in Struts. I am using VOs, DAOs in this. I want to maintain a session in when ever the user loggedIN. But i am unable to design where to maintain session and how to retrive it for the next jsp pages. Plz reply me with an example.Its toooooo urgent.... Plz dont forget the example ..
Pauline McNamara

Joined: Jan 19, 2001
Posts: 4012
Hello "A K", welcome to Javaranch!

Before we can help you with your struts question, there are 2 things that have to happen:

First, please change your display name from "A K" to something that looks more like "Myfirstname" "Mysecondname". It's a special rule here at the ranch called the naming policy. It's a very important rule, we think you agree, at least you said you did when you registered.

Then, we'll have to move this question over to the struts forum. You'll have much better chances of getting the answer you urgently desire if it's posted in that forum.

Enjoy your time on the ranch!
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Hi Mr. K,

Welcome to JavaRanch!

First, I'd like to point out our policy on display names. Yours doesn't obey the policy -- you have to use a first and last name separated by a space. You can change it here. Thanks for your immediate attention.

Second, this "JavaRanch" forum is for discussing the site itself -- the other forums are for discussing Java. In particular, this area is for discussing Struts. I'm going to move this thread there for you -- go on over and find it, and wait for an answer there!

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: session in Action class
jQuery in Action, 3rd edition