• 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

how to include run-time parameter inStruts html:link forward

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
am a newbie in struts..i want to include a run-time parameter in my html:link tag.Accordiing to the struts html:link syntax the following is valid.
<html:link forward="ViewTaxGroupDO" paramName="TaxGroupActionForm"
paramProperty="tg_InternalId" paramId="tg_InternalId">
But my form is not populated.The populated bean is TaxGroupTo.Should i include the TaxGroupTo in paramName..
Even if included i am getting bean TaxGroupTo not found in any scope.even thougth i have imported the TaxGroupTo class
Can anyone suggest how i should go about it..if i should include the bean how should i go abt it..
Thanks in advance
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may need to provide some more information, but I'll mention what I'm assuming, then give a suggestion.
I'm assuming you're first running through an action, then forwarding to this jsp in which you're trying to generate a hyperlink via html:link. If the FormBean is not populated, it could be because the action is not populating it. A general pattern is to do some data access in the action, get the data as a regular Bean, then copy the fields over into your FormBean, then forward to the jsp.
Try looking at the action that is forwarding to this jsp, and see what it's doing as far as populating the FormBean.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic