• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Retrieving form information

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic