You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anna Kerekes <An...@onx.com> on 2004/09/15 21:30:57 UTC

HTTPServletRequest object

Hello,
 
I'm assuming that a request object is the same for a jsp and the associated Action Class. 
Why is it that when I try to get a parameter in the jsp I get the correct (expected) value:
out.println("Message id from request(parameter): '"+request.getParameter("messageId")+"'");

But when I try to get the same parameter, in the same way, from the corresponding Action Class,
the parameter value is null.
 
The jsp is basically just an input form, and the Action class processes the information retrieved.  
I'm not sure what I'm doing wrong, I've tried to look at the action-mappings-element in struts-config.xml
but the scope is correctly set to "request".
 
Any help would be appreciated,
Anna Kerekes
 

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