java - How do I change the text of a paragraph using servlet? -


i have paragraph id = story , want change text dynamically using servlet. how do this? i'm new , using getwriter().println() seems create new document instead of appending existing one. thanks

simple answer - can't.

server-side code cannot change response has been sent client. change text inside html tag, use javascript on browser.

see http://www.w3schools.com/ajax/


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -