OK,  the method specified is "post" in the userForm.jsp thus resulting in a
post message. However, my problem is that there is nothing in the user.id.
Where do we expect to get it from. Thanks!


nmall wrote:
> 
> Hi,
> 
>  In UserAction (.java) class, why do we expect the httprequest to be a
> post request and not a get (see code below). I am getting a "get" request
> when I click on editProfile. As a result, it does not go thru' this code.
> Also, the hidden filed "user.id" that is set in userForm.jsp is set to
> nothing for a new user. as a result we cannot save the user as well. 
> 
>  Where does the hidden field user.id get set. Thanks for your help!!
> 
>  public void prepare() throws Exception {
>         if (getRequest().getMethod().equalsIgnoreCase("post")) {
>             if (!"".equals(getRequest().getParameter("user.id"))) {
>                 // prevent failures on new
>                 user =
> userManager.getUser(getRequest().getParameter("user.id"));
>             }
>         }
>     }
> 

-- 
View this message in context: 
http://www.nabble.com/UserAction-and-userForm-tf4001155s2369.html#a11366125
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to