A validation failure's return is still an HTTP success--the request itself
is successful.
You'd need to change the response code if you want to use something other
than the `success` result (or whatever mechanism your Ajax call uses), or
return data you can use to determine if there was a failure.
Thanks
I have each field as unique so they are not composite that means I am in
right direction.
Now what you say about composite key I think that will be valid for
primary key also. I also have primary key in the table 'id' which user
doesn't have to enter. To ensure any sql exception in cr
By saying both code and name are unique... is this a composite key that must be
unique or do both fields have to be unique? If it is the composite key that
must be unique than I would skip the checks and catch the exception when
thrown. Otherwise if each field must be unique then you need to v
Hi All,
I have question regarding use of validate() method in Struts 1.3.8.
I have simple form to collect couple of information (e.g. code and name)
and have to add them to the Database. All database operations are
handled by my DAO layer.
Both code and name are unique in Database. So I want
The Apache Struts group is pleased to announce that Struts 2.3.1 is
available as a "GA" release.
The GA designation is our highest quality grade.
[http://struts.apache.org/download.cgi#struts231]
The release is also available from the central Maven repository under
Group ID "org.apache.struts".
Th
5 matches
Mail list logo