struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Struts2 rest plugin - making default response to xml
Date Thu, 05 Mar 2009 12:53:36 GMT
mahanare wrote:
> I am wondering if it is possible to use default response of the rest action
> using rest plugin to xml?
> 
> instead of http://<<domain>>/orders.xml if i can make it
> http://<<domain>>/orders as the action for a POST method in a form submssion
> and the response should be  xml. Essentially i do not want to have any JSPs
> or html files in my web application. It will be a plain rest based services
> which process forms and respond with xml.

IIRC the default *is* XML; it's configured via struts.rest.defaultExtension.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message