Modify the contents in Dynamic HTML

Hi friends,

I want to modify the contents in a HTML page. This page is dynamically generated from some JSP. First of all, is it possible to modify the content in a HTML page that was generated at run time. If so, Pls. give me an example of the same.

Tons of thanks in advance....

SIVA

[309 byte] By [SIVA_SUBRAHMANYAMa] at [2007-11-27 10:35:12]
# 1

you can try javascript

secmaska at 2007-7-28 18:33:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Here's an example:

You have a JSP page that has a form tag called myForm.

You have a textfield named 'textField1' in the form.

You have a button on the form with an onClick event, in the javascript

function that is called for the onClick, you can change

the contents of the textfield by writing something like this:

document.myForm.textField1.value="new contents";

For further information on this, I suggest reading up on Javascript. One book on this is 'Javascript, the definitive guide".

George123a at 2007-7-28 18:33:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Thank you Mr. George

SIVA_SUBRAHMANYAMa at 2007-7-28 18:33:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...