You can display the user's name by using either a session or request 
variable.  Just place the variable in either scope, and use <bean:write 
...> to display it.  That tag can display a variable regardless of whether 
it's in the request or the session.  You can specify the scope attribute 
of the tag if you would like, but if you don't it will just look for the 
variable in any scope.

Hope this helps, just let us know if you still have problems.


Keith Kamholz
IT - Programming and Architecture
Moog Inc.




Rafael Taboada <[EMAIL PROTECTED]> 
01/13/2006 05:08 PM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
Struts Users Mailing List <user@struts.apache.org>
cc

Subject
Re: Login form






And talking about sessions.. is there any method or taglib in order to get
session variables in my jsp???

When the user submit his user and password and all is ok, so my 
loginaction
class forwards to a main.jsp where I want to show his name.. Something 
like
"welcome peter"...

In my loginaction class there is a mapping.findForward("getmain"); where
getmain is a Forward and it calls to main.jsp....

How can I show the user name in my mian.jsp???.. maybe calling a
sessionvariable in my jsp???


--
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi 
vida"

Reply via email to