• 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

Struts2 and xslt

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
How can I use xslt to invoke struts2 action with parameters? Any help with code snippet is highly appreciated.

Thanks
Abhi
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what you're asking: you want to *invoke* an S2 URL with XSLT?
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perhaps the question is related to this other post: https://coderanch.com/t/454879/XML-Related-Technologies/Importing-struts-tag-xls-stylesheet?
 
Abhi Roy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let me explain the problem a bit.

I have an stylesheet and using that I have to create html output that will be embeded in another JSP in struts. Some of the elements will be hyperlinked so that clicking on them will invoke another S2 action for next level of processing.

So, I have two options,

1. Either including/imporing the S2 tags in XLS - which I beleive not possible
2. Use anchor tag with herf like <a href='myActon.action?Name=Abhi&age=30'> , if I hardcode the values, the href is working fine, but how can I set the values in runtime.

Is there any other work around?

Thanks
Abhi
 
Abhi Roy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably I got the solution...using javascript.

Thanks guys..
Abhi
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic