File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes urgent plz Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "urgent plz" Watch "urgent plz" New topic
Author

urgent plz

Rishi Chopra
Ranch Hand

Joined: Mar 07, 2004
Posts: 108
i have a requirement in which i have to display a table with 7 columns
with few columsn can accept value from a list(values from db)

initially there will b one row then i give the user an addrow button that will create another row for him

now this addrow in javascript creates a new row now i want to validate whether some values in some colums are same with respect to previous rows then i want to pop up a message

i wrote a javascript function then created a row for me

now i am confused over wat to do i can i get refernce to all rows value and how can i validate them on the clinet side only before submitting my form


Life is Beautiful Learn to See it.........
Mohd. Yakub
Greenhorn

Joined: Nov 25, 2005
Posts: 18
hi,
Compare the value column-wise related to previously collected column values and return the index value if true else return the -1 which suggest a new entery in that specific column.
Popup message columnwise.
regards,
yakub
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: urgent plz