This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 and xslt

 
Abhi Roy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you're asking: you want to *invoke* an S2 URL with XSLT?
 
Paul Clapham
Sheriff
Posts: 21133
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps the question is related to this other post: http://www.coderanch.com/t/454879/XML-Related-Technologies/Importing-struts-tag-xls-stylesheet?
 
Abhi Roy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Probably I got the solution...using javascript.

Thanks guys..
Abhi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic