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

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -