Arivazhagan Vannamuthu Petchimuthu wrote:

>
> Dear Team,
>
>         Is it possible to write a single JSP so that It could be used 
> to generate multiple
> documents(PDF/HTML/RTF and XML) based on the user request?

Yes. I suggest that you write a facade JSP that checks which 
presentation type
the end user wants and then forward the request to a Servlet.

>         I am just trying to create one JSP which will generate HTML 
> doc if User dont want any specific type.

OK, JSP is fine for HTML.

> If he wants PDF doc then again I will use the same JSP but now it will 
> generate PDF document.

Possible, but not very wise: you should never use JSP to produce binary 
files.
(If you know JSP, you know this very important rule, and therefore obey it.)

> like that I want to create my JSP which should support to generate 
> multiple documents. 

Like I said: use the JSP as a facade for a Servlet that produces the 
actual document.
best regards,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to