struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola de Saint-Aubert" <nsaintaub...@lavanguardia.es>
Subject RV: migrating from 2.0 to 2.1.8: <s:bean> tag
Date Fri, 06 Nov 2009 14:09:29 GMT

Hi again, 

Changing the log level i got some more information :

2009-11-06 14:40:13,711 DEBUG
[com.opensymphony.xwork2.conversion.impl.XWorkConverter]Class:org.apache.com
mons.lang.StringUtils
2009-11-06 14:40:13,711 DEBUG
[com.opensymphony.xwork2.conversion.impl.XWorkConverter] field-level type
converter for property [null] = none found

But I can t get it work. Obviously it comes from the symphony type converter
but I can t get the fix, 

Does anyone had to face the same problem ?

(platform is jboss 4.2.0).


-----Mensaje original-----
De: Nicola de Saint-Aubert [mailto:nsaintaubert@lavanguardia.es] 
Enviado el: jueves, 05 de noviembre de 2009 18:48
Para: 'Struts Users Mailing List'
Asunto: migrating from 2.0 to 2.1.8: <s:bean> tag

Hi, 

 

I just have migrated from 2.0 to 2.1.8 and can t achieve in including
StringUtils bean

in jsp.

It perfectly works with the 2.0 version. But switching to 2.1.8, the
expression using StringUtils are not evaluated and the log doesn't inform
anything wrong about that. Everything else works fine.

 

Is there something I missed in the migration ?
 

Class:

public class IndexAction  extends ActionSupport

    implements SessionAware, ValidationAware {

.

public void setOrder(String order) {

        this.order = order;

    } // end setOrder()

 

public String getOrder() {

        return order;

    } // end getOrder()

 

.

}

 

JSP:

<s:bean name="org.apache.commons.lang.StringUtils" id="StringUtils" />

.

<li <s:if test='( #StringUtils.isEmpty(order) || order == "date")'>
class="select"  </s:if>>

.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message