struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amleto Di Salle" <disa...@di.univaq.it>
Subject R: Using a servlet code within Struts
Date Wed, 16 Jun 2004 17:34:39 GMT
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:rquintero@ubiquando.com.co] 
Inviato: mercoledì 16 giugno 2004 18.28
A: user@struts.apache.org
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


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


Mime
View raw message