• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

f:param

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

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

<hx:outputLinkEx value="/MyServlet" id="linkEx1">

<h:outputText value="MyServlet"></h:outputText>

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

</hx:outputLinkEx>



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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Instead of using outputlink you can use commandlink
For example
<h:commandLink action="success">
</h:commandLink>
 
reply
    Bookmark Topic Watch Topic
  • New Topic