You can use jakarta unstandard taglib. (http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html)

I use it to access const from JSP.  :

<%@ taglib prefix="u" uri="http://jakarta.apache.org/taglibs/unstandard-1.0"; %>

<u:bind type="com.capgemini.gta.web.webapp.form.NumeroAssisteForm"
    var="base" field="BASE"/>

<html:select property="option">
       <html:option value="${base}">Base</html:option>
</html:select>

Nico.

Keith Sader a écrit :

IMO this is a design smell of the presentation layer.

My suggestion would be to refactor these items down to the
'business-layer' and then have your actions put the results of that
layer into the form/display bean.

Then the .jsp could just look like <c:out value='${order.smallOrderFeeLimit}'/>

There may be more to this with your particular site, but that's a
first off-the-cuff guess.

hth,


On 2/8/06, Keith Fetterman <[EMAIL PROTECTED]> wrote:

We are converting old JSP pages to Struts and JSTL and I am running into
a problem.  On the old JSP pages, we have some calls to static methods
in scriptlets and runtime expressions.  On the new JSP pages, we have
disabled scriptlets and runtime expressions.  Here is an example:

The old code will have an expression like:
<%= OrderRulesBean.getSmallOrderFeeLimit() %>

What is the best way (best practice or easiest to implement) to access
static methods in the JSP pages without resorting to runtime expressions?

--
Keith Sader
[EMAIL PROTECTED]
http://www.saderfamily.org/roller/page/ksader
http://www.jroller.com/page/certifieddanger

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to