Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

validating the arraylist values in struts

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my application, in the jsp,i am displaying the values of the arraylist in the textboxes. the values are fetching from the database. depending on the database values using the iterator i am displaying the values in the textboxes. i have a provision to change the values in the textboxes. after changing the values in the textboxes, and click of the submit button the values will store in the database.

now my issue is on click of the submit button i want to validate the values of the textbox.

is it possible in struts to validate the arraylist values?

help.

Thanks
vamsyn
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can validate if the text field blank or Char or numeric, email etc... using Struts validation module(Validation.xml and validation-rules.xml).

See my posting for the same question. But ofcourse I didn't get the answer yet. Waiting since one week

https://coderanch.com/t/51740/Struts/Struts-Validation-ArrayLiist-beans
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic