aspose file tools*
The moose likes Struts and the fly likes how to use one user input in two forms? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to use one user input in two forms?" Watch "how to use one user input in two forms?" New topic
Author

how to use one user input in two forms?

will zhang
Ranch Hand

Joined: Sep 11, 2008
Posts: 46
Dear all,

I want to use a multiple select to ask user select the item they want. The items selected will be on a pdf file which will be sent as attachment of email (user can click "send email" button to send them). The user wants to confirm if the pdf is right before he sends it. Therefore, I create a "PDF" button to ask user to check if the PDF attachment is what he wants to send.

Here is the situation:
Since the "PDF" button and "send email" button will both use the selected item info, I don't want the user to select the same list twice(of course user doesn't want to do that).

I thought to store the selected info in session when the user click "PDF" so that they have the info when he clicks "send email". But user may just click "send email" directly without checking first, then the selected info will be lost.

Any suggestions about this? Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not sure I understand the problem. If there's a form submission, the form information can be saved and pre-selected when the form is displayed again. It could also be done using Ajax.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use one user input in two forms?