• 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

form not getting the i/p value in strut framework

 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,

I have below code in my JSP:

<logic resent name="SHOWUN" >
<html:image property="unche" src="some.gif" alt="UNCheck All Docs" title="UnCheck All Docs"/> 
</logic resent>
<logic:notPresent name="SHOWUN" >
<html:image property="check" src="some2.gif" alt="Check All Docs" title="Check All Docs"/> 
</logic:notPresent>

in the Form I am getting the value as
public int getCheck()
{
action = CONSTANT1;
return 0;
}

public int getUnCheck()
{
action = CONSTANT2;
return 0;
}

but the form is getting the checkALL value corectly and seting the action variable to correct constants value.But For uncheckALL the value is not geting set at all. The method getUNckeck is not getting called.
What am I doing wrong?

Thanks,
Trupti
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried changing

<html:image property="unche"

...to...

<html:image property="unCheck"

?

Not sure if that will do what you want, but it doesn't seem like a property of unche would map to anything that you've shown us.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic