File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Passing request Object in Filter

sanjiv bhargava

Joined: May 12, 2011
Posts: 2

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

Code :



Want to print is printing null
William Brogden
Author and all-around good cowpoke

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

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

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:
subject: Passing request Object in Filter
It's not a secret anymore!