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

Passing request Object in Filter

sanjiv bhargava
Greenhorn

Joined: May 12, 2011
Posts: 2

I want to read a hidden value passed from my jsp in a filter.its urgent ...

Code :

login.jsp


Filter


Want to print REQ_PARAM_REDIRECT_TO.it is printing null
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12788
    
    5
I would certainly use the browser "view source" to see exactly what is in the HTML form.

Bill
Alex Hurtt
Ranch Hand

Joined: Oct 26, 2010
Posts: 98
Why did you not use the tag library implementation to render your hidden input tag when you used it for the html:form tag and all the other inputs? This might something to do with it. What property will the value be bound to on the backing bean? Is the hidden input field even getting rendered when you examined your HTML output source?
sanjiv bhargava
Greenhorn

Joined: May 12, 2011
Posts: 2

Thanks Alex,

It is just a simple example thru which i wanted to convey the idea.Actual implementation is somwhat like this only where in i have to block a hidden parameter and sanitize it from xss issues.This can be done thru filters.But i am not getting what is going wrong in the code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing request Object in Filter