简体   繁体   中英

How can we insert multiple rows into a table thourgh jsp and servlets?

Suppopse we have a jsp Page having a from In the form we have multiple file chooser let say browse button and file name and file id. and s single submit button. Now to problem is .. I have to submit files and file id into table File in database and Filename and fileid to Details name table into database with the help of servlets.

when you press submit button all this data is stored on the bean object. in the java class you can access this using getter methods and store this values into database. it is easy nothing complicated. Since we have our form data on bean we can do any logic s on this data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM