struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manohar <ilumann2...@yahoo.co.in>
Subject Re: Antwort: RE: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19
Date Tue, 25 Mar 2014 14:35:49 GMT
Hi Lukasz,

Thanks for your response but I do not see your answer!! :)

Class attribute for validator tag was already declared in default.xml. I was
getting name attribute is required so had to add that attribute for
validator tag.

Here is the default.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
    &quot;-//Apache Struts//XWork Validator 1.0.2//EN&quot;
    &quot;http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd&quot;>


<validators>
    <validator
class="com.opensymphony.xwork2.validator.validators.RequiredFieldValidator"
type="required" name="required"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.RequiredStringValidator"
type="requiredstring" name="requiredstring"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.IntRangeFieldValidator"
type="int" name="int"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.LongRangeFieldValidator"
type="long" name="long"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.ShortRangeFieldValidator"
type="short" name="short"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.DoubleRangeFieldValidator" 
type="double" name="double"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator"
type="date" name="date"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.ExpressionValidator"
type="expression" name="expression"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.FieldExpressionValidator"
type="fieldexpression" name="fieldexpression"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.EmailValidator"
type="email" name="email"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.URLValidator" type="url"
name="url"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.VisitorFieldValidator"
type="visitor" name="visitor"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator"
type="conversion" name="conversion"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator"
type="stringlength" name="stringlength"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.RegexFieldValidator"
type="regex" name="regex"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.ConditionalVisitorFieldValidator"
type="conditionalvisitor" name="conditionalvisitor"/>
</validators>





--
View this message in context: http://struts.1045723.n5.nabble.com/Running-Struts-2-Project-in-WebSphere-Application-Serve-7-0-0-19-tp5612359p5715578.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


Mime
View raw message