This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12760
    
    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.
 
 
subject: Passing request Object in Filter
 
Similar Threads
Advice on a putting dynamic message on jsp page depending on action taken by user
Removing HttpServletRequest parameters
Cannot load a validator resource
Need Help on struts....
problem in Struts Validation