×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

JSP suggestion for developing a field validation function

JSP suggestion for developing a field validation function

JSP suggestion for developing a field validation function

(OP)
Hello All,
Need some ideas for a concept I am working on.
The concept is - I have a application that will store images on the server to be used by certain application.
The section I am working on now is more like a image bank.
You add images, edit, search them.
The fields for add image are:
Image Name - Name of the image
Image Code - Unique code to indentify the image
Image - Image Upload (Browse).

Now for Image Code I want to do something similar to Yahoo Mail Id signup page..where when you enter your desired yahoo mail id - immediately a button shows up saying "Check Availability"..and you click it and it checks if the id exists - If No then it allows u to use the id...if it exists then you are given suggestions to select something new and you can either select it or enter a new id.

Want to do something same.
But instead of getting all complex.
I just want my suggestions to be simple.
For example if the image id I am entering is "Image", I want my suggestions to be Image001, Image002, Image003.

Please advice...

Thanks...

A good programmer is someone who looks both ways before crossing a one-way street. - Doug Linder

RE: JSP suggestion for developing a field validation function

Store the names on a database and check if it exists.

After that, concatenate numbers to the original name and recheck if it's present.

Cheers,
Dian

RE: JSP suggestion for developing a field validation function

(OP)
Do I have to setup a counter type script to generate the number to concatenate to the names.

Advice please....

A good programmer is someone who looks both ways before crossing a one-way street. - Doug Linder

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close