Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieving form information  RSS feed

 
Jera Blade
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have two objects a customer and a bill. when completing the bill information the bill must be assigned to a customer. To do this on the bill.jsp I have a link next to the customer Id field which brings up the search customer.jsp.

From here the user finds a customer whos Id willbe added to the bill. Can anyone tell me how to keep the information populated that the user entered about the bill on the bill.jsp after I have found a customer to add.

So the flow would be as follows:

1. User enters data about bill.
2. User decides to find a customer to associate with bill.
3. User is directed to search customer jsp.
4. User selects a customer Id to add to bill.jsp

How would I keep the information still populated that the user entered in step 1.

Thanks
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37230
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jera,
If you use the session scope for the form, it will stay populated automatically.
 
Jera Blade
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I used the seeion scope then the form would be populated throughout the whole session. However if the user after entering the first bill wanted to enter another bill the form would already be populated and I dont want that to happen.

Also I have thought about opening a pop up window when the user searches for a client ID. How would I use the <html:link tag and not actually forward to anywhere when I click on the link but open a window.

<html:link onCLick"window.open(url, name, features)" forward=""/>

I can open the window but I have to have a forward, href, action tag in there but what value should i use for these for the page to not actually redirect to another page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!