This is an excellent suggestion. I tried hard coding the value that layout1.layout should be giving and everything worked. I also tried testing to see if layout1 was null, and it was. Since layout1.layout is a value I want to use throughout the session, always, and is a value that is only used in the session, it seems that the session is the proper place to put this value. I am setting the value of the default layout in application scope with a plugin. Then, I am putting that value into a session Layout when people come on board. They can then choose their own layout later, or their "host" can have prefigured the Layout for them. The same site has multiple hosts with their own "guests".

Michael

At 07:50 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:

I probably should have added that in my ForwardAction I convert a path from the ActionMapping so that users can be allocated a particular look and feel that they have chosen on the website. The line that is related to the Opera failure is:
return new ActionForward(layout1.layout + "_" + path);
With Opera, the Layout object referenced as layout1 here is not set in the session on my index page. This difficulty is overcome by putting code in to log that the Layout object has been put into the session.
That mystifies me. Any demystification chiefs on this one?

I'm still a bit confused. I'm guessing the NPE is coming from not being able to find the forward created by the layout1.layout + "_" + path section? Setting it up like:


String forwardName = layout1.layout + "_" + path;
log.debug( forwardname );
return new ActionForward( forwardName );

I'd be curious if that forwardName looks the same under all situations? Are you sure you are following the exact same steps for each browser after bouning the server? In otherwords, maybe you aren't getting the NPE on netscape/IE because you are having layout1.layout set into Session scope at some other point that you aren't doing when testing with Opera? Using Session vars for this seems a bit odd anyway. Could you avoid using layout1.layout as Session attribute?


-- Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to