RE: Session variables using Struts tag in JSP

2004-10-20 Thread Shabada, Gnaneshwer
I know now the hard way :-) Thanks anyways Gnan -Original Message- From: Jeff Beal [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 10:41 AM To: [EMAIL PROTECTED] Subject: Re: Session variables using Struts tag in JSP Based on the error message, it looks like you'r

Re: Session variables using Struts tag in JSP

2004-10-20 Thread Jeff Beal
Based on the error message, it looks like you're using the tag correctly, but the attribute isn't being set correctly. I can't see anything wrong in the code that you've included. Forgive me for asking this, but are you sure your Action class is being called? Shabada, Gnaneshwer wrote: Can so

Session variables using Struts tag in JSP

2004-10-20 Thread Shabada, Gnaneshwer
Can someone tell me how to retrieve session variable values using Struts tags?? I tried but didn't work. All I am doing is checking for a flag that I am setting in the session in my Action class like below.. Action Class: session.setAttribute("loggedUser", "admin"); JSP:

RE: How to retrieve session variables using Struts tag in JSP

2004-10-20 Thread Shabada, Gnaneshwer
tag or is the way I am doing right? TIA Gnan -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 7:39 PM To: Struts Users Mailing List Subject: Re: How to retrieve session variables using Struts tag in JSP If "loggedUser" is a str

Re: How to retrieve session variables using Struts tag in JSP

2004-10-19 Thread Craig McClanahan
If "loggedUser" is a string you put in session scope, use this instead: If on the other hand you had a bean that you stored under session scope under key "foo", and this bean class has a getLoggedUser() method on it, you'd use: The "parameter" attribute is for accessing request parameters

How to retrieve session variables using Struts tag in JSP

2004-10-19 Thread Shabada, Gnaneshwer
Hello, I am trying to retrieve a flag value ( that I put in session in my Action class ) in my JSP. I tried tags and other struts tags but no luck. Can anyone point me which tag does this? I also used tags but no use. I tried this where the parameter is the session attribute and "admin" is its