DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: Validation

  1. #1
    Marcia Guest

    Validation


    I'm just starting with Java and my first duty is to do the validation for
    the application.
    The group I'm working with wants to have a server side validation and not
    client side validation with Java Script.
    Well I'm a back end programmer in VB, and C++, in my experience a safe and
    reliable application must have both client and server validation.
    Can someone clarify to me why my group believes that just server validation
    is enough, or I'm wrong and a 100% java application does not need client
    validation.

    Thanks


  2. #2
    Paul Clapham Guest

    Re: Validation

    As far as quantity of validation is concerned, I don't see that it makes a
    difference where it is done. There are various technical reasons why you
    might want to do a particular validation on the client or on the server, but
    as long as it gets done in at least one place, I don't have a problem with
    it.

    For example: suppose your client has an HTML form that asks you to enter a
    product number. Where should you validate that? If it requires a database
    lookup, and your server program is already accessing the database, then the
    server should do the database lookup. Should the client pre-validate it,
    using Javascript, to check that what was entered was a number and not zero?
    It's possible, but then you have two different styles of error message being
    presented to the user. A system designer might reject that possibility and
    opt to have all validation on the server, resulting in consistent
    presentation of error messages.

    Marcia <isoint@msn.com> wrote in message news:39bfda61@news.devx.com...
    >
    > I'm just starting with Java and my first duty is to do the validation for
    > the application.
    > The group I'm working with wants to have a server side validation and not
    > client side validation with Java Script.
    > Well I'm a back end programmer in VB, and C++, in my experience a safe and
    > reliable application must have both client and server validation.
    > Can someone clarify to me why my group believes that just server

    validation
    > is enough, or I'm wrong and a 100% java application does not need client
    > validation.
    >
    > Thanks
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links