> can you give an outline of the typeof problem you faced? I started one discussion last week, but it?hasn?t been answered :) It said...
I am trying to wrap the HttpServletResponse to apply gzip compression on data sent to the client when gzip is supported. I'm using a filter,wrapper and custom ServletOutputStream based on published code. It seems to work except when I chain actions. If I call one action which executes a forward to a JSP, I get the exception attached. We have the filter applied only to *.do in <url-pattern> from web.xml, so we thought the filter is applied to the actions, and the JSP. We know this question has been asked several times, but we have not found a good solution for us. what could I be doing that would cause the stream to be closed? Can?t we put a filter to compress if we use forwards from actions? Thanks in advance! -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviado el: viernes, 04 de junio de 2004 10:50 Para: Struts Users Mailing List Asunto: RE: URL regd Servlet filter I am using filters and have some pages that forwards to a JSP(though I should try avoiding that) I have not faced any problem yet. can you give an outline of the typeof problem you faced? "Jose Ramon Diaz" <[EMAIL PROTECTED]> 06/04/2004 02:05 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To"'Struts Users Mailing List'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc SubjectRE: URL regd Servlet filter Don?t you have problem with filters if the actions forward to JSP? At least, I have a lot of problem with compression filters, as the container seems to use another request for the JSP. regards > -----Mensaje original----- > De: Prashanth.S [mailto:[EMAIL PROTECTED] > Enviado el: viernes, 04 de junio de 2004 10:13 > Para: Struts Users Mailing List; [EMAIL PROTECTED] > Asunto: Re: URL regd Servlet filter > > > Hi, > I think u should override actionservelet class in struts and > configure struts-config.xml.......not so sure..left struts > coding long back...take a look at below links... > might help u... > http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html > http://www.junlu.com/msg/30175.html > > Thanks > Prashanth > > > > > Shilpa Vaidya <[EMAIL PROTECTED]> wrote: > > hey amit, > the url is - > http://prdownloads.sourceforge.net/securityfilter/securityfilt > er-1.0.1.z > We really need sound help. I have less time.Also in the book struts in > action they mention filtering. > How wud i start making my own servlet filter.expersts pls advice. > Regd. > shilpa > > > ip?download > -----Original Message----- > From: Shilpa Vaidya [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 03, 2004 6:07 PM > To: 'Struts Users Mailing List' > Subject: RE: Servlet filter > > > Thanks brati, > r u writing a servlet filter . > how did u approach it. > can u show me a starting point. > shilpa > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 03, 2004 5:59 PM > To: Struts Users Mailing List > Cc: 'Struts Users Mailing List' > Subject: Re: Servlet filter > > > > Shilpa, > We are doing just that. A filter comes into effect before the > control goes > to the servlet. So if you can stop the user at the filter > level you are > actually saving some processing. We are checking for the > presence of session > in the filter. > > Brati Sankar Ghosh > Tata Consultancy Services > Mailto: [EMAIL PROTECTED] > Website: http://www.tcs.com > > > "Shilpa Vaidya" > 06/03/2004 03:41 PM > Please respond to > "Struts Users Mailing List" > > > To "'Struts Users Mailing List'" > cc > Subject Servlet filter > > > > > > > > hey all, > Preventing users from accesing action. I am writing a web app > to manage > administrators and profiles. > Administrators may access to the web app based on the > profiles they have. > The profiles, determine which pages the administrator might > access. The > profiles, and authorizations, might change online during > work, so I need > to > check authorization to access a page (Action) on each access.If I > understand > correct, then, the actionServlet, first process the form > bean, and then > the > action.. > But, if the user is not authorized to access a specific page > (Action), I > need to forward him to an UnAuthorized error page, before thr > formAction > bean is filled. > I would like to use a servlet filter. This filter checks the > users rights > and instanciates a HttpServletRequest-Wrapper.But am not sure > how - .Can > anyone help.Till then me trying to study the ServletFilter > examples here n > there. > Shilpa > > > > > > -- > > > "This e-mail message may contain confidential, proprietary or legally > privileged information. It > should not be used by anyone who is not the original intended > recipient. > If you have erroneously > received this message, please delete it immediately and > notify the sender. > The recipient > acknowledges that ICICI Bank or its subsidiaries and > associated companies, > (collectively "ICICI > Group"), are unable to exercise control or ensure or guarantee the > integrity of/over the contents of the information contained in e-mail > transmissions and further acknowledges that any views > expressed in this message are those of the individual sender and no > binding nature of the message shall be implied or assumed > unless the sender > does so expressly with due authority of ICICI Group.Before opening any > attachments please check them for viruses and defects." > > > > ForwardSourceID:NT0000A91E > -- > > > "This e-mail message may contain confidential, proprietary or legally > privileged information. It > should not be used by anyone who is not the original intended > recipient. If > you have erroneously > received this message, please delete it immediately and > notify the sender. > The recipient > acknowledges that ICICI Bank or its subsidiaries and > associated companies, > (collectively "ICICI > Group"), are unable to exercise control or ensure or > guarantee the integrity > of/over the contents of the information contained in e-mail > transmissions > and further acknowledges that any views > expressed in this message are those of the individual sender > and no binding > nature of the message shall be implied or assumed unless the > sender does so > expressly with due authority of ICICI Group.Before opening > any attachments > please check them for viruses and defects." > > > > -- > > > "This e-mail message may contain confidential, proprietary or > legally privileged information. It > should not be used by anyone who is not the original intended > recipient. If you have erroneously > received this message, please delete it immediately and > notify the sender. The recipient > acknowledges that ICICI Bank or its subsidiaries and > associated companies, (collectively "ICICI > Group"), are unable to exercise control or ensure or > guarantee the integrity of/over the contents of the > information contained in e-mail transmissions and further > acknowledges that any views > expressed in this message are those of the individual sender > and no binding nature of the message shall be implied or > assumed unless the sender does so expressly with due > authority of ICICI Group.Before opening any attachments > please check them for viruses and defects." > > > -- > > > "This e-mail message may contain confidential, proprietary or > legally privileged information. It > should not be used by anyone who is not the original intended > recipient. If you have erroneously > received this message, please delete it immediately and > notify the sender. The recipient > acknowledges that ICICI Bank or its subsidiaries and > associated companies, (collectively "ICICI > Group"), are unable to exercise control or ensure or > guarantee the integrity of/over the contents of the > information contained in e-mail transmissions and further > acknowledges that any views > expressed in this message are those of the individual sender > and no binding nature of the message shall be implied or > assumed unless the sender does so expressly with due > authority of ICICI Group.Before opening any attachments > please check them for viruses and defects." > > > > > --------------------------------- > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT0000AB96 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]