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

Struts Filter

Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
Hi,

I like to add a filter to my JSPs, I tried with below code but it’s working


I placed the ss.jsp above WEB-INF and inside the Application ROOT FOLDER



If I add my actionservlet in this then it’s working fine




Please assist me
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

What does this has to do with Struts??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
My application is Struts.. So I posted here
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

If you disable the Struts filter, is your filter working (although the chances of struts having anything to do with this are very low)?? Also can you access the JSP page by typing a URL in the browser?? If yes please tell us the URL you type in the address bar of the browser to access the JSP page...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not sure what the question is yet.
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
David,

Just adding a filter to the struts application. I like to add my filter to a specific JSP. is it possible ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You can add a filter to whatever URL pattern you want.
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492


This is not working. Please help
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please read ItDoesntWorkIsUseless.

What, *specifically*, are you trying to do? What behavior are you seeing, under what circumstances? What is the current state of your configuration file?
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
while calling ss.jsp I need the filter to execute.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

David Newton wrote:What behavior are you seeing, under what circumstances? What is the current state of your configuration file?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Filter