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]
# 1
ANY ONE ?
JAVAa at 2007-7-16 22:58:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

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

pgeuensa at 2007-7-16 22:58:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
hi thanx for the reply,Can you show me an example!!!
JAVAa at 2007-7-16 22:58:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
no i have no code that would show it and i am not planning on writing it.Learn by trying and if you are stuck post code , post errors and peoplewilltry to help
pgeuensa at 2007-7-16 22:58:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...