maybe I'm missing something, but if you use an EL tag (like the core:if or core:choose or logic-el:equals) you wouldn't need to do any scriptlet or casting.
<c:if test="${parameterForm.structure_changeable eq 1}"> </c:if> as far as the constants, i'm not sure I follow. Hope this helps though... > -----Original Message----- > From: Jörg Maurer [mailto:[EMAIL PROTECTED] > Sent: Sunday, February 23, 2003 8:40 AM > To: Struts Users Mailing List (E-mail) > Subject: seeking shortcut name of current FormBean inside every > html:from > > > Hi strut-users! > > Since this post i have been using massively e.g. <bean:define > id="parameterForm" name="ParameterForm" type="ParameterForm"/> > in my jsp´s to grab the reference to the current FormBean like e.g. > > <html:form action="/parameter"> > ... > <bean:define id="parameterForm" name="ParameterForm" > type="ParameterForm"/> > <% if (parameterForm.getStructure_changeable().intValue() == 1) > { %> > </html:form> > > Please mail the applicable "shortcut" name (as i have forgotten the full > name, has'nt it been sth. like "org.apache.struts....") and in which > class those constants are denoted. Addendum : Once i got that reference, > do i have to cast that reference to the correct form type - like : <% if > (((ParameterForm)xxxFromBean).getStructure_changeable().intValue() == 1) > { %> > > > Tanks a lot Jörg > > --------------------------------------------------------------------- > 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]