This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Web Application, Struts (filling grid problem) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic

Web Application, Struts (filling grid problem)

Vaibhav Goel
Ranch Hand

Joined: Jul 05, 2007
Posts: 40
I have a problem in filling a grid on parent JSP. My parent JSP has two radio buttons (Accept/ Reject) and three other columns in the grid. On click of any of these two radio buttons(Accept/ Reject), i am invoking a pop-up window.
The pop-up window(JSP) has two text-fields(Remarks1, Remarks2). When user enter data in both fields of pop-up window and click on save button the data of these two fields enter into corresponding fields of parent JSP.

Here I am sending some piece of code:-

Parent JSP Code

Due to some reasons i can't send the code of parent JSP.

Pop-up JSP code:-

function fnSetValues()
opener.document.forms[0].strRemarks1 = document.forms[0].strRem1Popup.value; //strRem1Popup is pop-up form bean property

opener.document.forms[0].strRemarks2 = document.forms[0].strRem2Popup.value; //strRem2Popup is pop-up form bean property


Note: In above codes I am setting both remarks properties of pop-up to corres. properties of parent JSP. Tell me whether it is right approach or give me a way to solve this problem.
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
Vaibhav! you can channelise this question into struts forum. This one is SCJP specific.
[ July 17, 2007: Message edited by: Akhilesh Trivedi ]

Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Burkhard Hassel
Ranch Hand

Joined: Aug 25, 2006
Posts: 1274
Howdy Akhilesh,

I can do that for him.

Special service of the house.

Moving ....

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864

Please do not post the same question in multiple forums. It wastes the time of those willing to give a response.

I'm closing this thread. Anyone wishing to respond, please do so in this thread/.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Web Application, Struts (filling grid problem)
Similar Threads
passing data between popup and parent window in firefox2.0.0.4
Passing data between pop up and parent window in firefox 2.0.0,4
Web Application, Struts (filling grid problem)
Popup form, parent form
How to set a property's value thats part of a ArrayList using Javascript.