gernst,
Here a link to a course createing a javabean and showing and updating it from a jsp-page:
http://www.gulland.com/cou
Main Topics
Browse All TopicsI need to be able to open a pop up window. The popup window takes the lineId from the parent window. E.g. I click on Item # 2355. The child window opens and shows me details of Item#2355 then I can change the qty ordered. And when I click submit in the child window, the child window closes and updates and refreshes the data in the parent window.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
gernst,
Here a link to a course createing a javabean and showing and updating it from a jsp-page:
http://www.gulland.com/cou
Hi there.
If you want just to update the info from the child window to the Parent one, you have to do it with JavaScript
Open Window
myChild = window.open("yourPage.jsp"
From Child
parent.document.Forms['For
this.close()
That's all you have to do, If you pretend to call the server in the middle and save the info to db and then update the parent window. well basically you have to do exactly the same but you have to submit the parent window, not the child.
Any further questions, go ahead.
:c)
Javier
Thank you for your comment. However, I would like to do most of the work in Struts. When I click the link, the link passes an Item Id to the child window. The link calls a form whose action="doSomething.do" after doing something, I click submit. After submit, the child window updates DB. The child neeeds to close and refresh the parent.
Currently, I can open a child window, update db but I cannot close the child window. I end up with two html pages. The second page is updated but the first page is not updated.
Jarasa,
What you suggested works except I need to be able to pass a dynamic parameter.
currently this is my code
<html:submit onclick="popwin('Display.d
This does not work.
however this does work
<a href="../Display.do?supptI
However, this opens a new window and refreshes the data in the new window. I end up having two windows open.
Business Accounts
Answer for Membership
by: gernstPosted on 2004-06-15 at 23:46:31ID: 11321976
Hi zenMistress2004,
A very open question. What you want to do is:
1. Create a JavaBean of your item.
2. Create a page which shows all items and a links to page edititem.jsp?id=2355 like this for example.
3. In page edititem you set the itembean to this id and show a form.
3. After submit update the bean and close screen.
Key technology is a javabean of the item with properties and de technique to show and save properties in a jsp.
Regards,
Gerben Ernst