File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Not getting request parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Not getting request parameters" Watch "Not getting request parameters" New topic

Not getting request parameters

seshayya krishna

Joined: Feb 24, 2005
Posts: 11
I have the following code in the JSP and the following code in my bean
class. Could you please help me ? When i retrieve the parameter
grantsgovTrackingNumber I am getting null values. Can you please write
to me, whether it is a bug in JSF ? i appreciate your help.


grantsgovtrackingNumber = (String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("grantsgovtrackingNumber") ;

<h anelGroup>
<h:commandLink action="#{ApplicationGrantsGovDetailsBean.showApplicationDetails}" immediate="true">
<h utputText value="#{requestScope.grantsgovTrackingNumber}"/>
<f aram name="grantsgovTrackingNumber" value="#{requestScope.grantsgovTrackingNumber}"/>
</h anelGroup>
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
See the second reply in this post.

- Varun
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Also, use the "id" attribute instead of "name" in f aram tag.
I agree. Here's the link:
subject: Not getting request parameters
It's not a secret anymore!