• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your reply Merrill i indeed forgot to add my ContextPath to the url

Thanks !!

Kind Regards
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic