Although this is possible, as other posters have said, I'd ask what you are
going to achieve by doing this? The servlet you already have will quite
happily work alongside the Struts servlet without any problems.
If you've got existing servlets you want to migrate to Struts model 2 then
I'd do
Look at it here:
http://www.jguru.com/faq/view.jsp?EID=531024
-Original Message-
From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:28 AM
To: [EMAIL PROTECTED]
Subject: Using a servlet code within Struts
Hello everyone
I want to make some servlet
Just return null in the Action code.
At 10:33 AM 6/16/2004, Kommana, Sridhar wrote:
Look at it here:
http://www.jguru.com/faq/view.jsp?EID=531024
-Original Message-
From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:28 AM
To: [EMAIL PROTECTED]
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-
4 matches
Mail list logo