This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
When the link is clicked it calls the function called UpdateUser().
All that is working fine, but I want to send along the id of the user who is logged in:
In the action class the the execute method calls the method getPersonById() (located in PersonService.java) and then sets the values of the forms attributes with the values from the Person object.
It works perfectly well when the link doesn't open a popup and looks like this:
I understand that the problem with the codesnippet that opens a popup is that there aren't any parameters being sent along.
Thus I've tried the following but now no popup is opened:
The above code has also been tried with '' instead of "".
When I surround the <s:url> tags with ' ' I get a popup, but there are no values in it. (The execute method isn't even called)
And changing the function to:
Why do you need to pass a session variable in a URL? It's in the session. Get it in the action.
Joined: Feb 13, 2009
Alright, I concede, that was a poor example.
If I instead have a table, with columns:
Each column has it's own date and in each column there might be a reservation, which has it's own id.
I want the link to open a popup, while the parent window stays as it was before the link was clicked.
And I want the fields of the popup to be populated with the values sent along with the URL.