We are using tomcat 1.4.30 which in turn has jsp 1.2 version.
JSTL EL works differently in this version meaning  For outputting text you 
should not  using${someVar} but should use <c:out 
value="${someVar}"/> 

Now I have following problems in making ActionForm pass value to Action .
1.  Drop down default value selection should be done based on Form value 
"sectorId" and when user chooses any value from drop down, value of
${sector.sectorId} should populate sectorId. I am getting 
${sector.sectorId}displayed as all of my values in dropdown.
 
                 <td>
                <html:select property="sectorId">
                    <c:forEach var="sector" items="${sectors}">
                        <html:option name="${sector.sectorId}"> 
<------------This doesn't work.
                            <c:out value="${sector.sectorName}"/>
                        </html:option>
                    </c:forEach>
                </html:select>
            </td>

2.   I have big problem with html:checkbox, it doesn't communicate values 
back from FormBean to Action servlet, even after overloading 
ActionForm.reset() method with default vaule.
        public void  reset(ActionMapping mapping,HttpServletRequest 
request)
        {
                lockedFlag  =new String("N");
        }
 
        In my case here I have String value "N" for unchecked and "Y" for 
checked.

 
        <tr>
                <td class="tdLabel"><fmt:message 
key="label.lockedFlag"/>:</td>
                <td><html:checkbox property="lockedFlag" value="<c:out 
value=\"${lockedFlag}\""/></td>
        </tr> 
Any help would be great 



Digant






This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

Reply via email to