Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

How to Update multiple rows of a table in jsp

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

In my jsp I have multiple rows in a table.
each row is having 3 columns(Lable,Combo Box, TextBox),
Lable and combobox values comes from database.

My issue/dought is :
I need to change the combobox value and text box value in multiple rows and when i press the submit button i have to update all the datas into database.
If any of you provide me the code snippet it would helpful for me.

Thanks in advance
 
Marshal
Posts: 67344
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

knowmore know wrote:If any of you provide me the code snippet it would helpful for me.


That's not how things work here. You write the code, we help you with it.

Lable and combobox values comes from database.


Please read HtmlHasNoComboBox. Using correct terminology is important for good communication.

I need to change the combobox value and text box value in multiple rows


Change how? And as a result of what? You'll need to TellTheDetails.

and when i press the submit button i have to update all the datas into database.


That's something you'd do in a servlet with JDBC or and ORM tool.
 
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!