aspose file tools*
The moose likes JSP and the fly likes GZipFilter inside JSP and WSAD 5.1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "GZipFilter inside JSP and WSAD 5.1.1" Watch "GZipFilter inside JSP and WSAD 5.1.1" New topic
Author

GZipFilter inside JSP and WSAD 5.1.1

Russ Ray
Ranch Hand

Joined: Feb 11, 2003
Posts: 52
Hello Everyone:

I am working through an example on using a Compresse filter for *.jsp and *.html files. I am developing on WSAD 5.1.1.

I am not having much luck getting the application to use the GZIPFilter class.

I have used the tool to create the filter in web.xml

This is how WSAD accomplished the task:

When I run the test page, I get:



When I go into the web.xml and edit the filter information to:
[/code]
<filter>
<filter-name>GZIPFilter</filter-name>
<display-name>GZIPFilter</display-name>
<filter-class>com.jspbook.GZIPFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>GZIPFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>GZIPFilter</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
[/code]
I get the following error:


Can some please point me in the right direction so I can test this compression filter?

Any help would be greatly appreciated.

Russ
[ May 27, 2005: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

<filter-class>WEB-INF.classes.com.jspbook.GZIPFilter</filter-class>


This is not a valid class name. Remove everything before the "com.".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: GZipFilter inside JSP and WSAD 5.1.1