Okay, thanks for clarifying this. As this is my first struts project and also first time using jsp with a framework like this, I feel a little uncomfortable about all this new tags.
However, now sure wanting to use JSTL, i just downloaded the jstl reference impl from struts taglib group, where readme says following : ... CORE LIBRARY EL: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> RT: <%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt" %> Okay, now i read in http://www.onjava.com/pub/a/onjava/2002/03/13/jsp.html?page=2 "In order to be able to support both the scripting (rtexprvalues) and the expression language (elexprvalues) worlds, JSTL has the concept of twin tag libraries: one that supports the expression language, and one that supports request-time expression values. It's assumed that most developers will use the EL-based tag libraries; however, it's still possible for scripting page authors to use JSTL with rtexprvalues. Using the rtexprvalues will provide the benefit of type safety and performance via the request-time based tag libraries (their URI simply has the -rt suffix appended)." Question is : If i use the RT library as i want to expose it as scripting variable, I learned that i still have to use <jsp:useBean> or struts <bean:define> to expose a scripting variable, right ? - no support for that in JSTL cause <c:declare> is deprecated ?! But scoping to my original problem, i think you solution > <c:if test="${parameterForm.structure_changeable eq 1}"> > > </c:if> will serve my aim quite right. Thanks Jörg -----Original Message----- From: John Espey [mailto:[EMAIL PROTECTED] Sent: Sonntag, 23. Februar 2003 18:29 To: Struts Users Mailing List Subject: RE: seeking shortcut name of current FormBean inside every html:from actually, scratch what i just said about not needing the bean:define tag, you would need it because the html:form tag will not make the form available as a scripting variable. That's why I'd use the EL, since it will not need to create a scripting variable. > -----Original Message----- > From: Jörg Maurer [mailto:[EMAIL PROTECTED] > Sent: Sunday, February 23, 2003 11:19 AM > To: Struts Users Mailing List > Subject: RE: seeking shortcut name of current FormBean inside every > html:from > > > Hi John, thanks for answering - you might be right on the issue I should > use a EL tag instead of scriplet. > > What i am basically interested in : When processing a jsp using a > html:form tag, i guess html:form brings the current form bean object > into some scope accessible to my jsp - but under what name does that tag > expose it? > > My form bean is defined in struts config as > > <form-bean name="ParameterForm" > > type="com.ucpmorgen.mobiletix.app.param.ParameterForm"> > </form-bean> > > Cause when used (please forgive my ignorance on your EL solution for > now): <% if (ParameterForm.getStructure_changeable().intValue() == 1) { > %> so.. uuupppps ... the jsp compiler always asked for a static method > on ParameterForm. uuupppps , because I suddenly think that naming the > variable like the class of form bean( the name after it is exposed > later), is an most unlucky coincident, isn't it?!?!!? -> if is, then i > should rename the bean name in the struts config. > > Anyway, is the exposed from bean cast to the correct type for usage : > - inside EL-Tag you wrote it is correctly typed > - but for scriplet, isn't it just exposed as being of type > java.lang.Object ?!?! > > > -----Original Message----- > From: John Espey [mailto:[EMAIL PROTECTED] > Sent: Sonntag, 23. Februar 2003 17:21 > To: Struts Users Mailing List > Subject: RE: seeking shortcut name of current FormBean inside every > html:from > > > 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] > > > --------------------------------------------------------------------- > 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]