aspose file tools*
The moose likes Struts and the fly likes form not getting the i/p value in strut framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "form not getting the i/p value in strut framework" Watch "form not getting the i/p value in strut framework" New topic
Author

form not getting the i/p value in strut framework

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
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

Joined: Nov 09, 2000
Posts: 6450
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: form not getting the i/p value in strut framework