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 / First Aid / January 2006

Tip: Looking for answers? Try searching our database.

Redirecting JSP/Servlet Output

Thread view: 
Alan Honeycutt - 11 Jan 2006 22:31 GMT
Is there a way to redirect servlet output similar to System.setOut()?

My root problem:  I'm attempting to save JSP output (the HTML) into multiple
html files.  The JSP creates tables based on the structure of XSD classes
and I'd like a separate file for each XSD class.  This could be accomplished
by viewing the resultant source, saving it, and writing a quick app to parse
it into multiple files but I'm attempting to automate that process.
Fabien Bergeret - 12 Jan 2006 08:32 GMT
> Is there a way to redirect servlet output similar to System.setOut()?
>
[quoted text clipped - 3 lines]
> by viewing the resultant source, saving it, and writing a quick app to parse
> it into multiple files but I'm attempting to automate that process.

You can trap the generated HTML (or basically all what is sent to the
client) by using ServletFilter
Alan Honeycutt - 12 Jan 2006 20:25 GMT
>> Is there a way to redirect servlet output similar to System.setOut()?
>>
> You can trap the generated HTML (or basically all what is sent to the
> client) by using ServletFilter

Thank you.  That is exactly what I needed.


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.