Results 1 to 2 of 2

Thread: Validating Field Lengths Automatically

  1. #1
    Join Date
    Oct 2004
    Posts
    1

    Default Validating Field Lengths Automatically

    Is there a convenient way to automatically validate maximum field lengths based on the length of a field in an underlying DB. (e.g. VARCHAR(25)). I'm using Hibernate so it's not clear to me how I would get at the DB metadata from the Spring web layer, specifically the validator.

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Just a suggestion, but if you define lengths in your hibernate template you could use XSL to transform it to JSP (or part of one) with maxlength attributes on your fields.

Similar Threads

  1. using byte[] for HTMLArea like field
    By arashid in forum Data
    Replies: 8
    Last Post: Aug 30th, 2005, 09:52 AM
  2. Replies: 1
    Last Post: Mar 23rd, 2005, 07:22 PM
  3. Date Field Validation
    By sherihan in forum EJB
    Replies: 0
    Last Post: Feb 7th, 2005, 04:58 AM
  4. Replies: 1
    Last Post: Oct 22nd, 2004, 02:45 AM
  5. field errors from initBinder
    By araghavan in forum Web
    Replies: 1
    Last Post: Aug 19th, 2004, 11:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •