I have three ideas that might help...

The first solution that comes to mind is to have one form for uploading the 
picture and editing the user.  I'm guessing that at the moment when you press 
"upload" it is a different form which means the fields used for editing the 
user are not passed back to the action.

Another choice would be to have hidden form elements that duplicate the user 
editing fields in the upload form.  Then you should be able to get the edit 
form to re-populate after uploading the picture.

The third choice would be to use AJAX to upload the image without reloading the 
whole page.  Then the edit form would not need to be repopulated.

Hope that helps.

Nathan


----- "BruceLee" <[EMAIL PROTECTED]> wrote:
> Dear Team,
> 
> My User form also has a 'Upload' button to upload user's picture. But
> After
> user uploads a file and redirects back User form, the changes just
> made on
> editbox (like First Name) are gone.
> 
> Is it any way, when user clicks 'Upload', code logic copies the data
> on JSP
> page to data model User.java?
> This 'coping' usually only happens when user clicks 'Submit' button.
> 
> We use 1.9.4 with WebWork2.
> 
> Thanks in advance!
> -Bruce
> 
> -- 
> View this message in context:
> http://www.nabble.com/Auto-copy-data-from-JSP-page-to-data-model-when-clicking-a-button-tp14373925s2369p14373925.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to