re: HTTP response as XML

2003-04-04 Thread Craig R. McClanahan
On Fri, 4 Apr 2003, Ted Husted wrote: > Date: Fri, 04 Apr 2003 09:19:25 -0500 > From: Ted Husted <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: re: HTTP response as XML > > You might want to loo

Re: HTTP response as XML

2003-04-04 Thread David Graham
You mean that in my Action class I will write " return (new ActionForward("null"))" and I will use the PrintWriter to send the response? Shouldn't I do the following --> "return (new ActionForward("my.xml"))" where .xml is the file constructed in the Action class. You would say "return null;" at

Re: HTTP response as XML

2003-04-04 Thread Konstantina Stamopoulou
Hello Ted, > You might want to look at the digester for this. It is very good at > converting JavaBeans to XML and back. See the RSS package for an example. > > http://jakarta.apache.org/commons/digester/api/org/apache/commons/digester/r ss/package-frame.html > I'm aware of Digester but I haven't

re: HTTP response as XML

2003-04-04 Thread Ted Husted
You might want to look at the digester for this. It is very good at converting JavaBeans to XML and back. See the RSS package for an example. http://jakarta.apache.org/commons/digester/api/org/apache/commons/digester/rss/package-frame.html You can then do your response up as a JavaBean, have the

Re: HTTP response as XML

2003-04-04 Thread Konstantina Stamopoulou
Thank you David. I think I will forward to xml directly from my Action class Konstantina - Original Message - From: "David Graham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 03, 2003 6:06 PM Subject: Re: HTTP response as XML > It is

Re: HTTP response as XML

2003-04-03 Thread David Graham
Mailing List" <[EMAIL PROTECTED]> Subject: HTTP response as XML Date: Thu, 3 Apr 2003 17:25:09 +0300 Hello everyone, I have been using STruts for a while and it has solved a lot of my previous problems for example having long .jsps that included all the logic. Now I have been asked

HTTP response as XML

2003-04-03 Thread Konstantina Stamopoulou
Hello everyone, I have been using STruts for a while and it has solved a lot of my previous problems for example having long .jsps that included all the logic. Now I have been asked to use struts, which will receive the requst and will generate .xml instead of html as a response. This .xml wil