I have a form page having two textarea fields(t1,t2), one for input(t1) and the other for output(t2) and a button.
I want to know when I click the button I need output of second textarea(t2) from servlet page.
how to do that?
please help me....
I want to know when I click the button I need output of second textarea(t2) from servlet page. how to do that?
You may need to utilize AJAX here. Send the request to the servlet on the click event through AJAX call, populate the textarea with the response. AJAX Tutorial, if you are not familiar with it.
Pradeep,
whatever you want to display, set it in the most appropriate scope variable and use it in your JSP to display the value in the other textarea.