I have some problems with the JSTL 1.1 (From SUN jwsdp 1.3) Tags together with Struts 1.1 DynaValidatorForms.
I have defined the following DynaValidatorForm:
<form-bean name="lvForm" type="org.apache.struts.validator.DynaValidatorForm">
...
<form-property name="method" type="java.lang.String"/>
...
</form-bean>The Form is populated by an Action:
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
DynaValidatorForm lvform = (DynaValidatorForm) form;
...
lvform.set("method", "add");
...
request.setAttribute(mapping.getAttribute(), lvform);
return mapping.findForward("continue");
}After this the Fields in the Form-JSP are filled correct.
Depending on what method I use I want to output different messages.
For this I tried to use these JSTL-Tags:
<c:choose>
<c:when test="${lvForm.map.method == 'update'}">
<h1><bean:message key="lvform.update"/></h1>
</c:when>
<c:when test="${lvForm.map.method == 'delete'}">
<h1><bean:message key="lvform.delete"/></h1>
</c:when>
<c:otherwise>
<h1><bean:message key="lvform.add"/></h1>
</c:otherwise>
</c:choose>But I allways run into the otherwise tree.
I also tries this without success:
<c:when test="${lvForm.map['method'] == 'update'}">
<h1><bean:message key="lvform.update"/></h1>
</c:when>So I hope that anybody can help me to solve this problem.
Kind Regards and thank you very much
Alexander Kirsch
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

