File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
popup - updates parent form bean arraylist
Joined: Aug 01, 2005
Aug 01, 2005 18:25:00
I would like to have a pop-up screen update the formbean on the parent page. The design of this is getting pretty nastey.
I have a page that creates a user object - user_create.jsp
I have a pop-up that alows you to enter an address - address_create.jsp
A user can have 1..N addresses. I want the user_create page to allow for the pop-up and subsequent creation of multiple addresses.
[ August 01, 2005: Message edited by: M Conlin ]
Joined: Feb 15, 2005
Aug 01, 2005 18:57:00
Here's one possible way to do it:
Make one of the properties of your create-user form bean to be a List of Address objects
Make "session" the scope of the create-user form bean
Specify a target attribute on the <html:form> tag in the create-address jsp which refers to the main page. That way, when the action completes, the results will be displayed on the main page.
Have the create-address action retrieve the create-user form bean from the
object and update it with the address that was just added.
Have the create-address action forward to the create-user jsp.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: popup - updates parent form bean arraylist
Getting form values from Pop up and processing them in Parent
Problem with pop-up
can I view a pop up but have parent page active?
Referring to a child window?
Enabling a button
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014