automatically showing the data
hi everyone,
I have a table with
ID->pk
sentence
I got a jsp that retrieves the ID from the table and shows it to the user in selection and there is a text area next to id. Would it be possible for user to select the id and the saved sentence comes up automatically(e.g if one is selected the sentence for one comes up etc)? if yes how?
ps I would appreciate if you showed an example!!!
thanks alot
[445 byte] By [
JAVAa] at [2007-10-2 8:54:13]

yes its possible.
Option 1:
when displaying the ID's store the sentences in a hidden field , on selecting the ID copy the value from the matching hidden field to the textarea.
Option2:
When displaying the ID's store the sentences in hidden textareas and make those vissible /invisible on selecting the ID
Option3
On selecting the ID submit and filll the value for the textaera on the server and display it
Option4 use ajax to query the DB depending on the ID and to fill the Textarea with the result