On 6/23/05, angelina zh <[EMAIL PROTECTED]> wrote: > -- If I open a IE 6.0 browser and log into the web site we are developing
How do you log in? Do you navigate to static HTML page, to JSP page, to Struts login action? Who generates this page or where this page is being forwarded from? > In the login action class, we set some attributes into the session. > If I click on any of the links, I got null pointer exception in next > action class when we try to get attributes from the session. ... > If I keep that browser open and go to the log in page again. After > I log in, I get into the welcome page and if I click any of the > links now, the session of the request is not null and I can go to > any links without any problem. The null pointer did not occur in > the following action class. Seems that session was not established when you accessed the link from the welcome page. Are you sure that this page is generated by action class, or from a JSP page with cleared "session" attribute of "page" directive? You can use static HTML welcome page, if: * you forward to it from action class or JSP, and * you created session object in the action class or JSP, or * you do not clear "session" attribute of "page" directive Session is created in action class, if you access session object and set it to auto-create, if session is not there yet. Session is created in JSP, if you do not explicitly clear "session" attribute of "page" directive; by default "session" attribute is set. Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
