Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / January 2004

Tip: Looking for answers? Try searching our database.

Redendering a JSP programmatically

Thread view: 
P.Hill - 29 Jan 2004 06:15 GMT
Could anyone give me any leads on the **programmatic** entry
points for rendering a JSP page into HTML?  I don't want to
actually send the page down the wire, I want to consume it
into another part of my application.  What I'd like to
do is given a JSP page, render it into plain HTML, so that I
can send it out inside a properly formatted multipart mime e-mail.

For example, are there any entry points in Jetty or Tomcat
that would allow me to get to a fully HTML rendered page
through an API call?

TIA,
-Paul
Mr.Cube - 29 Jan 2004 18:06 GMT
> Could anyone give me any leads on the **programmatic** entry
> points for rendering a JSP page into HTML?  I don't want to
> actually send the page down the wire, I want to consume it
> into another part of my application.  What I'd like to
> do is given a JSP page, render it into plain HTML, so that I
> can send it out inside a properly formatted multipart mime e-mail.

If you only are using JSTL you can use Jelly.

http://jakarta.apache.org/commons/jelly/

> For example, are there any entry points in Jetty or Tomcat
> that would allow me to get to a fully HTML rendered page
> through an API call?
>
> TIA,
> -Paul
Enrique - 29 Jan 2004 18:17 GMT
I don't know of a specific solution, but you may want to look into the
abstract class that implements the servlet (JspServlet?) that normally
process JSP requests.  Perhaps you can define your own and override
the behaviour you need.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.