File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing request Object in Filter

 
sanjiv bhargava
Greenhorn
Posts: 2
Eclipse IDE Hibernate Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13044
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would certainly use the browser "view source" to see exactly what is in the HTML form.

Bill
 
Alex Hurtt
Ranch Hand
Posts: 98
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
Eclipse IDE Hibernate Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic