Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

by click on submit buutton the page refresh a get new data from database  RSS feed

 
Sapan Shah
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing a small project.Now when i login correctly, next jsp page will appear with some data from database(jdbc).
Now on that page i have select option html tag for filtering the data.
So, can anyone help me when i select some fields from select option tag and click on submit button the page get refresh and new data appears from database.
how to do this.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Happy new year & Welcome to JR !

What you need to do is, just pass the selected value to server side action and depend upon that value get the value from database and store db values in bean and forward to the same JSP page.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66143
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

A title such as "what should i do" is not helpful. What would happen if all posts had such a title?

Please go back and change your post to add a more meaningful subject by clicking the button on your post.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!