Ok..Peace guys...

I got my answers... and more.. :-)

Thanks Craig..



-----Original Message-----
From: Xue-Feng Yang [mailto:just4look@;yahoo.com]
Sent: Thursday, October 17, 2002 1:20 PM
To: Struts Users Mailing List
Subject: RE: Can V in MVC be Swing in Struts?


Let me copy your answer here with #, and tell me where
is your "correct" answer.

> And you didn't understand the answer correctly :-).


# There are at least two different ways to accomplish
# this:
 
#* Have your Action write the XML output directly to
#the response,
#  and then return null (indicates that the response
#has been completed,
#  so no forwarding is necessary).

#* Have the JSP pages you forward to (for the view)
#render "text/xml"
#  instead of "text/html".  You won't be using the
# struts-html tags
#  in this scenario, but you'll be able to fill in
#dynamic parts of
#  the response with things like <bean:write> or
#<bean:message>:

#  <customer>
#    ...
#    <name><bean:write name="customer"
#property="name"/></name>
#    ...
#  </customer>

#In some scenarios, you will also want to transform
#the XML output
#depending on what the user agent is, or for other
#similar reasons.  Check
#out the STXX framework (search in Google to find
#it), which layers on top
#of Struts and lets you specify a pipeline of XSLT
#transformations to be
#performed on the response that your app itself
#generates. 






 --- "Craig R. McClanahan" <[EMAIL PROTECTED]>
wrote: > 
> 
> On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
> 
> > You didn't read the question correctly. The
> question
> > is:
> >
> > Does STRUTS support sending serialized VO objects
> (as
> > against HTML or XML text strings) back and forth
> > between client app and server.
> >
> 
> And you didn't understand the answer correctly :-).
> 
> Struts (the framework) makes ***zero*** requirements
> on what the output
> looks like -- that is up to your application to
> decide.  You can even
> generate binary output if you like (such as a
> dynamically generated graph,
> or serialized value objects)  by writing directly to
> the
> ServletOutputStream and then returning null from
> your action.
> 
> Struts (the struts-html tag library) does render
> HTML output, but you
> won't want to use this if you are writing non-HTML
> stuff.
> 
> Craig
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
>  

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to