Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to access request parameters in Faces Portlets

 
Pallavi Roy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

i have a portlet and i have created a URL mapping.
I am using Websphere Portal Server 5.1 and RAD 6.0.
Where i intend to pass a request parameter as :
http://localhost:9081/wps/myportal/Pagination?name=pallavi

And in my Faces Portlet code i want to use the paramter to display the name in scriptlet code.In this way :
<% String userValue = request.getParameter("name"); %>
Hi !! <%= userValue %>

But this doesn't seem to work.
i only get the message :
Hi !! null

What is the reason for the request parameter for not being visible.

Best Regards,
Pallavi
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!