This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Iframe to automatic update in jsp according to the database
logic:forward problem
bean value persists on clicking back
Require help in submitting <form> through JavaScript function
html:iterate or html:multibox problem