This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 and xslt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 and xslt" Watch "Struts2 and xslt" New topic
Author

Struts2 and xslt

Abhi Roy
Greenhorn

Joined: Jun 23, 2009
Posts: 22
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

Joined: Sep 29, 2008
Posts: 12617

I'm not sure what you're asking: you want to *invoke* an S2 URL with XSLT?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Jun 23, 2009
Posts: 22
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

Joined: Jun 23, 2009
Posts: 22
Probably I got the solution...using javascript.

Thanks guys..
Abhi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 and xslt
 
Similar Threads
struts2-showcase-2.2.1.war
Tags in struts2
Struts2: how to return plaintext
Struts2 and XML subnodes to show database relationships?
STRUTS2