• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GZipFilter inside JSP and WSAD 5.1.1

 
Russ Ray
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<filter-class>WEB-INF.classes.com.jspbook.GZIPFilter</filter-class>


This is not a valid class name. Remove everything before the "com.".
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic