Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kevin Vercauteren
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kevin Vercauteren
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply Merrill i indeed forgot to add my ContextPath to the url

Thanks !!

Kind Regards
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic