aspose file tools*
The moose likes Struts and the fly likes Passing parameter to a popup page using html:link mapped to an action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Passing parameter to a popup page using html:link mapped to an action" Watch "Passing parameter to a popup page using html:link mapped to an action" New topic
Author

Passing parameter to a popup page using html:link mapped to an action

Kevin Vercauteren
Greenhorn

Joined: Dec 04, 2007
Posts: 4
Hello

The thing i wanna do is that when i have a Jsp with let us say orders for a customer when i click on an order numer i wanna get the details for that order and show it in a popup page instead of refreshing my entire page.

i placed the action mapping in the href section,

i placed the following in my head



in my Jsp i have my data ordered using the display tag library and one of the columns is:



The value "INTERN" is the primairy key for wich i will get the details.

In my Struts-XML i have the path:



purchaseOrderDetail.jsp is just an epty Jsp for now.

When i click on the gif my popup opens but i get this message in my popup:



Maybe i get the mappings wrong, or am i using the wrong tags, or values
Could be something else.

If any one could help me out =D

Thanks in advance

Regards -Kevin

[ December 07, 2007: Message edited by: Kevin Vercauteren ]
[ December 07, 2007: Message edited by: Kevin Vercauteren ]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
It looks like you may have neglected to include the context path when you constructed your URL. The URL should be "/myApp/purchaseOrders/showPurchaseOrderDetail.do" where myApp is your web context path.


Merrill
Consultant, Sima Solutions
Kevin Vercauteren
Greenhorn

Joined: Dec 04, 2007
Posts: 4
Thank you for your reply Merrill i indeed forgot to add my ContextPath to the url

Thanks !!

Kind Regards
 
jQuery in Action, 2nd edition
 
subject: Passing parameter to a popup page using html:link mapped to an action