This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "urgent plz" Watch "urgent plz" New topic

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

Joined: Nov 25, 2005
Posts: 18
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.
subject: urgent plz
Similar Threads
onClick button and JSP
struts 2 + dynamic input + showing said input
adding and deleting a row in html
move row in table
selecting dynamically added rows of a table