check that the param "expression" is enclosed in CDATA (Character Data) tag e.g.

    <validators>
        <!-- Plain Validator Syntax -->
        <validator type="fieldexpression">
           <param name="fieldName">myField</param>
           <param name="expression"><![CDATA[#BidenCreditLimit > 
#PalinCreditLimit]]></param>
           <message>Joes credit limit should be MORE than Palin</message>
        <validator>                
    </vaidators>

http://struts.apache.org/2.0.14/struts2-core/apidocs/com/opensymphony/xwork2/validator/validators/FieldExpressionValidator.html

?
Martin 

______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: RE: Help with S:Select
> Date: Wed, 10 Dec 2008 12:40:16 -0600
> 
> I tried to follow the information on one of the post on how to do this but
> till it is not very clear to me. 
> 
> Can anyone point me to the documentation where the usage are explained in
> detail? 
> 
> I am also facing the problem in validating the s:select field as a required
> field.
> 
> I tried using this but it has not effect - 
> 
> <validator type="expression">
>       <param name="expression">(user.department)== "-1"</param>
>       <message>Department is required.</message>
> </validator>
> 
> Your help is much appreciated.
> 
> Thnaks,
> Richa
> 
> -----Original Message-----
> From: Richu [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 10, 2008 11:26 AM
> To: user@struts.apache.org
> Subject: Help with S:Select
> 
> 
> I have a select tag defined as - 
> <s:select name = "user.projects" 
>         key = "user.projects" multiple="true" size="10" cssStyle="width :
> 250
>         list="allProjects"   
>       listKey="id"
>       listValue="name" />
> 
> Does anyone has a working example of how to read the multiple  values of an
> object type (here Project) selected from the select box in the action
> method?
> 
> Also, do I need to use a converter as the collection being passed to
> populate the list items contains the object of type "Project"?
> 
> Please help..!
> 
> Thanks,
> Richa
> -- 
> View this message in context:
> http://www.nabble.com/Help-with-S%3ASelect-tp20939927p20939927.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> 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]
> 

_________________________________________________________________
Suspicious message? There’s an alert for that. 
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008

Reply via email to