Re: Getting result of JSP before sending to client

2009-10-29 Thread Steven Yang
hi i just looked at embeddedjsp plugin it requires JAVA 1.6 which i am not using, only using 1.5. i also need to make sure saving the HTML is in the same Transaction(database transaction) as saving the record. Therefore, intercepting the result in filter may not be a solution for me. is there oth

Re: Getting result of JSP before sending to client

2009-10-29 Thread Steven Yang
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 kn

Re: Getting result of JSP before sending to client

2009-10-28 Thread Musachy Barroso
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 s

Getting result of JSP before sending to client

2009-10-28 Thread Steven Yang
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 f