• 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

JavaScript OR EL

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello im new to coderanch.......
Im building a bookstore application.I have a jsp page which has 1 select box, a non editable textbox and a normal textbox. Im working in JSP, Servlet, MVC. I have a table in database which has three columns booknames,price and quantity. The select box is labelled as booknames whose values come from the booknames column in the database. All i want is that when i select a value from the select box the non editable textbox(labelled as "price") should display the corresponding price of the book from the price column of the table. Can this be achieved by EL?? If not what will be the JavaScript code for this??
 
author & internet detective
Posts: 39789
797
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shreyas,
Welcome to CodeRanch!

The key words in your post are "when i select a value from the select box". If you want something to be done in the browser, it happens in JavaScript.

You'd use EL if you wanted it to happen on page load.
 
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!