• 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: how to return plaintext

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I'd like to simply return some text from a Action w/o redirecting to a page. I did this sort of thing in Struts1 by using the response's PrintWriter and returning null from the Action's execute method.

From the documentation, I'd expected that either the resulttype of "plaintext" or "xslt" w/o the stylesheetLocation parameter would have done the trick, but I'm getting nothing at all back in the former case and a "javax.xml.transform.TransformerException: Operation not supported. - [unknown location]" exception in the latter.

I'm sure I'm missing something basic - could someone please help me out?

Thanks!

-- john
 
reply
    Bookmark Topic Watch Topic
  • New Topic