i will take a look at embeddedjsp plugin actually what we are doing is we have a form/survey and after user completes it, we, originally, want to save it as PDF which would have no problem for me, but due the time constraint we decided to simply save the file/report as HTML, thats why i want to know whats the simplest way to do it. The saved HTML may or may not look exactly the same as the page we return to the user, i am not sure yet.
thanks On Thu, Oct 29, 2009 at 2:28 PM, Musachy Barroso <musa...@gmail.com> wrote: > you can use the embeddedjsp plugin to process a jsp as a template > library without using the container. another alternative is to create > your own filter and create a response object which will have a writer > to capture what is written to it, so you can modify it and then write > it to the real output stream. Can you tell us what you are trying to > do? maybe you don't need a jsp and could use freemarker or velocity. > > musachy > > On Wed, Oct 28, 2009 at 6:28 PM, Steven Yang <kenshin...@gmail.com> wrote: > > Hi > > > > I am wondering is there a way in Struts2 to get the result of JSP before > > returning the composed HTML back to client? > > > > for example > > > > public String execute() { > > ...do my logic and prepare my data > > > > ...then using the data, compose a HTML file from existing jsp > > > > ... then i need to save the HTML file somewhere > > > > ...then > > return SUCCESS; --> maybe to same HTML or other JSP > > } > > > > Thanks > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >