Bookmark Topic Watch Topic
  • New Topic

Capturing JSP Content Within My Strut Action Servlet  RSS feed

 
Dean O'olish
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have been tasked by my management to allow a user to click on a "Text File" icon and allow the user to view the current jsp as a text file (Needs both Session and Request Object information so URL Object is out since it can not pass these two things). Sounds pretty easy right... well I am running into a lot of problems. I've asked about using filters and custom tags and both are out of the question since filters are handled on EVERY request/response and custom tags would take to long time to implement on EVERY jsp (over 1000 jsp's).

This only leaves me with being able to capture the content through a dispatch Object. I've tried creating a HttpServletWrapper Object that extends the HttpServlet Object, however it kept coming back without the content.

Does anyone have any suggestions or maybe you've done this and can shed some light onto this mystery.

I've searched on this forum thoroughly and posted a couple questions to certain individuals who have over come this, but have not pasted their solution... hopefully you might be able to help me out.


Thank you for any help,


Dean O
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
"Dean Oo", please check your private messages for an important administrative matter. Again.

And, please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!