File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes TD link on Logic iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "TD link on Logic iterate" Watch "TD link on Logic iterate" New topic

TD link on Logic iterate

rudresh kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 83

I have a search page and result page, in the search page user enters the employee number and clicks on the search, in the action class i put the result set in collection and forward it to result page

In the result jsp i iterate the collection and populate in tables (each emp number as one row)

this search page was opened as new window
Now user selects one of the emp number(from the result page) and that number and name should be put back in the main page.
I was trying to do it like this
but not working
Anyone has any other Idea, Pls help me in solving this
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

Please elaborate on "it's not working". What is going wrong? Error message, blank screen, compiler error, etc. The details will help someone answer your question.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
rudresh kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 83
I tired using the same concept, but problem is bean.write will just write just like javascript alert.
i am not able to use it for assiging (like assigning the result value to the window (main page) which opened it .
That not possbile with the above concept.
i want some thing like this
Onlick of one of the link of the result page
window.opener.document.mainpage.empno.value = result.resultpage.empno.value

I am not able to achieve this.
can some one help me in achieving the same using logic iterate, or is there any other method ?
I agree. Here's the link:
subject: TD link on Logic iterate
jQuery in Action, 3rd edition