10/29/2011

How to get Request Parameters in your JSP

I think, you know the problem: You have a link to a portlet site that expects a request parameter.
Example: http://localhost:8080/web/guest/page?customer=JohnDoe


How do you get the customer name in your JSP ? Just use this: 


PortalUtil.getOriginalServletRequest(request).getParameter("customer" )



If you like this post it would be very nice, if you could click on some of the google ads you see on the right side. It helps me run this block and motivates me ;)

If you have any questions, feel free to leave a comment.