This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello all I wander if can shove another http param even if I didn�t send it throw submit before the the request.getParameterMap(); capture it ?
The reason is : there is already working system that handling the request paramets I like it to handle another paramer on the way before it retched to the request.getParameterMap(); [ August 31, 2006: Message edited by: Bear Bibeault ]
If you want to add a parameter to the request before it gets to this JSP, your best bet is probably to use a ServletFilter.
It can intercept all incoming requests to specified resources, and gives you the chance to run java code before/after invoking the requested resource. You would need something like this in web.xml. This example shows the filter applying to one JSP only. By setting the url-pattern you can have it affect any resource you like.
And then in the MyFilter class something like this:
I could add additional parameters to a request forwarding it through a jsp and using jsp:forward actions which let you embed jsp:param inside them, thus adding more actual request parameters to the request.
SCJP 1.2, SCWCD 1.4.<br />What goes around comes around ... with ver 1.1
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com