File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not getting request parameters

 
seshayya krishna
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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.

Murali


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:commandLink>
</h anelGroup>
 
Varun Khanna
Ranch Hand
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the second reply in this post.
 
Varun Khanna
Ranch Hand
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, use the "id" attribute instead of "name" in f aram tag.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic