• Post Reply Bookmark Topic Watch Topic
  • New Topic

f:param  RSS feed

 
George Liao
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a link in my jsp page. The link points to MyServlet. Here is the code:

<hxutputLinkEx value="/MyServlet" id="linkEx1">

<hutputText value="MyServlet"></hutputText>

<f:param name="myVar" value="myValue"></f:param>

</hxutputLinkEx>



After I click the link, it can hit MyServlet, but I can't get the myVar value in MyServlet :

String value=request.getParameter("myVar");

Any idea?

Thanks in advance,

George
 
Master Blaster
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of using outputlink you can use commandlink
For example
<h:commandLink action="success">
</h:commandLink>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!