javascript - Ways to change HTML string received from Java -


i understand ideally html string should in jsp , not returned java file..but in app, jsp receives html string java class..

my question can modify string dynamically or code in jsp..

e.g. based on condition in jsp, can convert 3-column table structure 2-col structure..in other cases, continue returned java class..

thank you.

you can in java. if html string in valid xml, can use xml manipulation that.

another option might use javascript, , change html on client. jquery makes easy.

ideally though, you'd have better separation of concerns in application. java class returns html should return essential information contained in html, , let callers decide on representation of information.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -