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

Request parameters not being passed through Filter

Venkatesh Walajabad
Greenhorn

Joined: Nov 15, 2004
Posts: 2
I am trying to pass request parameters to a JSP using JSTL tags c:import and c: param . The request is sent to a Spring controller through a Servlet Filter. Here is my filter mapping from web.xml . I am using servlet spec 2.4 . Here is the code snippet of A.jsp that imports B.jsp. I am passing few request params to B.jsp and displaying the same in B.jsp



This is the filter mapping in web.xml


If I use the dispatcher elements REQUEST and FORWARD, my params are not being displayed in the jsp.

If I use the dispatcher element REQUEST only, my params are still not being displayed in the jsp.

If I use the dispatcher element FORWARD, my params are being displayed in the jsp. But direct requests do not work.

Any thoughts on how to resolve this issue?

Thanks
Venkatesh

[ September 29, 2008: Message edited by: Venkatesh Walajabad ]

[ September 29, 2008: Message edited by: Venkatesh Walajabad ]

[ September 29, 2008: Message edited by: Venkatesh Walajabad ]

[ September 29, 2008: Message edited by: Venkatesh Walajabad ]
[ September 29, 2008: Message edited by: Venkatesh Walajabad ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request parameters not being passed through Filter