Re: Get jsp content in struts action

2009-03-11 Thread Nils-Helge Garli Hegvik
I don't know how to solve your problem, but you can look at this thread for some good advice: http://www.mail-archive.com/user@struts.apache.org/msg85536.html Maybe you'll find this useful as well: http://forums.sun.com/thread.jspa?threadID=730559&messageID=4220069 Nils-H On Tue, Mar 10, 2009 at

Re: Get jsp content in struts action

2009-03-10 Thread D1vy@@Ind1@
Our application is a simple online form, in which users enters details about various books maintained in a library, hence when updated/new editions of book arrive, we would be mailing the concerned people about the updated version of the book. Before the user updates the existing record, when he c

Re: Get jsp content in struts action

2009-03-09 Thread Nils-Helge Garli Hegvik
Why do you need the contents of the JSP? I'd consider a Servlet Filter instead if you need to process the output before it's returned to the browser. Nils-H On Tue, Mar 10, 2009 at 7:29 AM, D1vy@@Ind1@ wrote: > > Hmm.. I am not sure if the code is problematic because with the same code I > am ab

RE: Get jsp content in struts action

2009-03-09 Thread D1vy@@Ind1@
Hmm.. I am not sure if the code is problematic because with the same code I am able to read the contents of all JSP pages. Only for JSPs using struts tags I get an exception as mentioned previously, I wanted to know how can I get rid of that exception. -D mgainty wrote: > > > the input stream

RE: Get jsp content in struts action

2009-03-06 Thread Martin Gainty
the input stream comes from Request the output stream comes from Response response.getOutputStream(); http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletResponse.html#getOutputStream() this code is problematic as it is NOT associated with output stream from HttpServletResponse response