Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

How to use XSLT having struts tags in Struts  RSS feed

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a XSLT and i am using Struts Tag in the XSL(To ensure that after the Page is rendered and the user enters the data we get the data in our form beans).
When i use a Transformer and create a JSP/HTML out of it and render that using Struts. I do not face any issues.

When i write the Transformer directly to Output Stream , then the Struts tags are not rendered.

For example if i write

transformer.transform(new StreamSource(new File(path+"/POC/jsp/index.xml")),
new StreamResult( new File(path+"/POC/jsp/index.jsp")));

This works perfectly fine.

when i do
transformer.transform(new StreamSource(new File(path+"/POC/jsp/index.xml")),
new StreamResult( response.getOutputStream()));

The widgets having struts tags are not shown in the UI.
I tried using Model2X using a servlet but no luck as well

Can anyone help me please.
 
Something about .... going for a swim. With this tiny ad ...
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!