It's not a secret anymore!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60740
    
  65

<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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GZipFilter inside JSP and WSAD 5.1.1
 
Similar Threads
Servlet Filter not working in JDK1.3.1
WebSphere5.0 DataSource5 Servlet Filter
Configuring WSAD 51.1 to use filters--Help!
web project dependency
log4j -- NoClassDefFoundError: org/apache/log4j/Category