This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSP and the fly likes filter out in JSP Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "filter out in JSP Page" Watch "filter out in JSP Page" New topic

filter out in JSP Page

Pradeepta Bhattacharya

Joined: Sep 07, 2001
Posts: 15
I have a requirement that i need a filter in the out (JspPrintWriter) which is implicitly available to the JSP page which will gather the data that is been sent thru the JSP Page to the clients stream. Can anyone kindly suggest .. probably with some small code snippets or example as to how to achieve this .. i need it urgently
Thanks in advance
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
Is it the content that you are writing to the out variable (JspWriter) that you are trying to filter? If so, take a look at custom tags, and the BodyTag interface in particular as this provides you with a way to filter content written to the output stream before being sent to the client.
I agree. Here's the link:
subject: filter out in JSP Page
Similar Threads
logic for display JSP page
Setting up a filter without using a servlet
Problem Servlet Filter
Stripes bugzooky walkthrough?
Is it possible to get the response of a servlet into a string?