1) You'll pretty much always have a valid session - the container will create one for you if it isn't already there. What you need to do is establish if an *initialised* session is there.
One way to do this would bet to, in your initialise session action, create a session scope attribute to say so: request.getSession.setAttribute("ValidSession", Boolean.TRUE); To check that you have a valid session I'd implement a Filter (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Filter.html) which would check for the presence of the attribute. In it's absence send the user back to the initialise action. All of this pre-suposes that you *don't* have security requirements. If you do then look into a security framework, such as container managed security, which will very probably already have things in place to deal with your scenario. 2) Don't know. Check the group archives (http://marc.theaimsgroup.com/?l=struts-user&r=1&w=2) - breadcrumbs have come up before. Paul > -----Original Message----- > From: Donie Kelly [mailto:[EMAIL PROTECTED] > Sent: 23 December 2004 14:14 > To: Struts Users Mailing List > Subject: RE: Accessing my form from an included page > > > [Donie Kelly] Hi Guys > > OK, I ran through most of what your are telling me and must > first thank you > all for the detailed responses. > > I'm sure I need to explain my case a bit more clearly and > please let me know > if what I am trying to do is easier if I take some other > approach as I'm new > to struts. > > 1) I want to check I have a valid session so that I know the > objects I have > been carrying through the session are still there. It they > are not, I want > to reestablish them by redirecting back to some starting page which > initialises the session. > > 2) Need to put page navigation in the header.jsp page to make > it easy to > navigate. I guess I will be putting stuff in the session to > make so I was > going to use the form to return the breadcrumb name. Is this > a good way to > do it? > > That's it really. > Donie > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.296 / Virus Database: 265.6.4 - Release Date: 22/12/2004 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]