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
Post a Comment