Hi,
I had one issue, that is I have some checkboxes within my
<logic:iterate>, and
1) When the user clicks on the checkbox, the property corresponding to
the checkbox is set to 'on'.
2) When the user de-clicks the checkbox(removes the check), the checkbox
is still set to 'on', how do we reset the checkbox...
My code is as follows:
<logic:iterate name="WorkQueueForm" property="workQueueArrList"
indexId="clmIdx" id="indexBean"
type="com.tgt.dist.icl.formbeans.WorkQueueBean">
<html:select name="indexBean" property="updtClaimStatus" indexed="true"
>
<html:option value=""> </html:option>
<html:option value="P">P</html:option>
<html:option value="W">W</html:option>
<html:option value="A">A</html:option>
<html:option value="M">M</html:option>
<html:option value="C">C</html:option>
</html:select>
<html:checkbox name="indexBean" property="updtClaimPriority"
indexed="true"></html:checkbox>
</logic:iterate>
WorkQueueForm is the Form Bean
workQueueArrList is a property of the WorkQueue Form Bean which contains
WorkQueue Beans.
I would be obliged if you could let us know how to reset the checkbox,
when the user
Deselects the checkbox, the checkbox property in the WorkQeue Bean
should be reset to null.
Thanks,
Raghu
-----Original Message-----
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:57 AM
To: Struts Users Mailing List
Subject: RE: JSTL messages & bundles Gotcha
You can also expose your bundle as a var though w/ JSTL so you don't
have to nest everything that way.
-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 11:45 AM
To: Struts Users Mailing List
Subject: JSTL messages & bundles Gotcha
On for the archives. I was on the point of sending it as a question but
resolved it, so here is the answer.
I was having a hard time configuring JSTL to find my
ApplicationResources.properties file.
According to the documentation, I could do either of these:
<context-param>
<param-name>
javax.servlet.jsp.jstl.fmt.localizationContext
</param-name>
<param-value>ApplicationResources.properties</param-value>
</context-param>
in web.xml
or
<fmt:bundle basename="ApplicationResources.properties"/>
in my JSP.
Neither worked for me for an hour or so until I realised:
You don't put ".properties" on the end &
fmt:bundle should nest all the fmt tags that will refer to it.
Adam
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]