http://struts.apache.org/struts-doc-1.2.7/faqs/struts-el.html

EL-tags are similar to standard ones, but without functions that JSTL supports, like the <bean:define> / <c:set> tag for example.

Neil Meyer a écrit :
Ok, I'm still working with the standard ones as well. I also use a include
page where all my libraries are declared.
Is there a place where I can find a list of the differences between the
standard and the EL taglibs?

Neil

-----Original Message-----
From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: 12 April 2006 03:04 PM
To: Struts Users Mailing List
Subject: Re: <HTML:TEXT> Properties



I'm using a single "taglibs" JSP that has all taglibs includes headers. I don't use "-el" suffix for EL taglibs as I only use EL tags (not standard ones).
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
<%@ taglib uri="http://struts.apache.org/tags-bean-el"; prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el"; prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic-el"; prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles-el"; prefix="tiles" %>
...

All my JSPs includes this "taglibs.jsp" :
<%@ include file="/WEB-INF/jsp/taglibs.jsp" %>

Using this, migration to a servlet 2.4 container will not require any change to my JSPs, only to make the "taglibs.jsp" target standard Struts tags, as the container will handle EL itself.

Nico.

Neil Meyer a écrit :
Hi All,

It worked the following way.
<html-el:text indexed="true" name="form" property="prop1" size="50"
maxlength="50" readonly="${form.readOnly}"/>

I tried the same with the <html:text /> but it did not work so the EL works
fine.

Thanks for all your help.

Regards
Neil Meyer

-----Original Message-----
From: Kjersti Berg [mailto:[EMAIL PROTECTED] Sent: 12 April 2006 12:54 PM
To: Struts Users Mailing List
Subject: Re: <HTML:TEXT> Properties

On 12/04/06, Neil Meyer <[EMAIL PROTECTED]> wrote:

Hi,

Would like to know why the following doesn't work can anybody explain it
please.

I have a text box on a page this text box is readonly when the readonly
property is set to true.


<html:text indexed="true" name="form" property="prop1"
readonly="<bean:write
name='form' property='readOnly'/>" />
You cannot use tags as attribute values like this. You need to use
scriptlet
code.

<bean:define name="form" property="readonly" id="readOnly"/>
<html:text indexed="true" name="form" property="prop1"
readonly="<%=readOnly%>" />

I think you could accomplish the same using jstl, but I haven't used that
myself, so somebody else explain what's wrong with the last example you
sent. (Besides the obvious missing equal sign, which I'm guessing is a
typo.)


<html:text indexed="true" name="form" property="prop1" readonly<c:out
value='${form.readOnly}'/>" />

Regards
Neil Meyer
Kjersti

---------------------------------------------------------------------
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]


---------------------------------------------------------------------
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