Yes. You can return null inside the Action's execute method just like
follows:
OutputStream out = response.getOutputStream();
out.write(data.getBytes());
//This action sends the response itself, so return null.
return null;
Reddy Pingili
> -----Original Message-----
> From: Amleto Di Salle [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, June 16, 2004 1:35 PM
> To: 'Struts Users Mailing List'
> Subject: R: Using a servlet code within Struts
>
> Hi,
> you can return null inside the Action as ActionForward.
> In this case Struts doesn't dispatch the request to view.
>
> BR
> Amleto
>
>
> -----Messaggio originale-----
> Da: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED]
> Inviato: mercoled� 16 giugno 2004 18.28
> A: [EMAIL PROTECTED]
> Oggetto: Using a servlet code within Struts
>
>
> Hello everyone
> I want to make some servlet code to work in Struts.
> i dont want to make the servlet to work. i want to
> rewrite the code into Struts.
>
> The servlet uses out = response.getOutputStream()
> and then out.write();
>
> I know Struts uses the model 2, so that the view is
> a jsp.
>
> Im thinking of using and action, where i use the response object, and i
> would do it like i do in the servlet. However, i
> dont know how to use the ActionForward, because i would
> render the output, based in the servlet. i mean no JSP.
>
> How would u solve this problem?
>
>
>
>
> --
> Ricardo Andr�s Quintero R.
> Ubiquando Ltda.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]