File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Pass value from parent window to child action class 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
Bookmark "Pass value from parent window to child action class" Watch "Pass value from parent window to child action class" New topic
Author

Pass value from parent window to child action class

Rajagopal Mani
Ranch Hand

Joined: Mar 24, 2011
Posts: 84

Hi everybody,

The parent page contains table with multiple columns where first column is the checkbox column and this page is having edit button as well. When checkbox is selected, edit button will be enabled. Please note all the row checkbox associates with one unique ID say rowID.

This edit button associate with javascript function from which the edit popup screen is opened. In this JS function, the rowID could able to obtain and the same is set as hidden field. The problem is the action class of popup is not able to obtain the rowID which has been set as hidden field. I understood like the form hidden field can be accessed only in the mapping action associated with parent page form. Please clarify whether this understanding is correct.

If yes, please help in which way that rowID can be accessed in action class of popup window.
Rajagopal Mani
Ranch Hand

Joined: Mar 24, 2011
Posts: 84

Can anybody reply for this topic?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Pass value from parent window to child action class
 
Similar Threads
javascript function not sure how it works
problem getting result jsp to parent window
Popup form, parent form
setting hidden field value using javascipt
Update Value from a child window