Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

problem with passing parameters with <html:link>

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want to pass parameters using html:link tag,
in the jsp page i wrote like below
String name="prasad";
pageContext.setAttribute("userName", name);

<html:link action="/" paramId="val" paramName="userName">Click</html:link>

i have created a form with containing a string named 'val' and created getters/setter method for that variable like below,
public String getVal() {
return val;
public void setVal(String val) {
this.val = val;

in struts-config.xml, i wrote action like this
<action path="/link" name="qfm" type="QueryAction" zcope="request" >

in the action class i was tring to retrieve values like
QueryForm qfm=(QueryForm)form;
String val=qfm.getVal();

it didn't prompt any errors but the value in val variable is not printing.

can you help me?
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic