This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

form not getting the i/p value in strut framework

 
trupti nigam
Ranch Hand
Posts: 627
  • Mark post as helpful
  • send pies
  • 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
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic