• Post Reply Bookmark Topic Watch Topic
  • New Topic

List box generate based on radio button  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am creating 1 jsp page in that i had 3 radio buttons and when i select 1st radio button A listbox need to show and when i select 2nd radio button B listbox needs to show so on for 3rd radio button but here i do not want to refresh the page everylist boz needs to be generate automatically based on radio button can you provide me the details.
 
Author and ninkuma
Marshal
Posts: 66676
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is not something you would do JSP for. Please read this article to understand how JSP operates.

In order to affect the page after it has been sent to the browser, you need to use on-page JavaScript. The fact that the HTML page was originally generated by JSP is irrelevant.
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on the description for your question, I understand that you want to display run time values while selecting radio buttons. Right?

If so, than you can use ajax and jquery to implement the features you like.

It would be very helpful to you as it will operate your data very fast.
 
What's brown and sticky? ... a stick. Or a tiny ad.
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!