Example 4

Dynamic <textarea>

Return home


This example shows how a <textarea> can be loaded on-the-fly with content. Here is is one of three poems loaded based on a change in a group of radio buttons. Also note that unlike example 2 and 3 which renders the response directly in the Action, this one actually forwards to a JSP that is the response, and hence no Action is involved.

Langston Hughes - Dreams
Walt Whitman - When I Heard The Learned Astronomer
Robert Frost - The Road Not Taken