struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel PC Leung <pc.le...@gmail.com>
Subject How to get attribute of Form from Controller class?
Date Thu, 24 Feb 2005 01:39:49 GMT
The following class extends Tiles Controller class.
After user logins, it cannot get the value of login username from the
class LoginForm. How can I change the code so that it can get the
value of login username?

Thnx


	  public void perform (ComponentContext context,
	                       HttpServletRequest request,
	                       HttpServletResponse response,
	                       ServletContext servletContext)
	                throws ServletException, IOException {

	  	HttpSession session = request.getSession();
	  	session.getAttribute("loginForm.username");

	  }

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message