Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Appending string in c:set

843840Dec 16 2009
Hello,

I would like to append a string to an existing var. I did not manage to have anything working.
What I want to achieve should look like :
<c:set var="string1"><h1>Some Html code </h1></set>
then later in my jsp file
<c:set var="string1"><div>${string1}Some more HTML code</div></c:set><
I tried several solutions by changing slightly the code but I have the same error : " The page failed validation from validator: "org.xml.sax.SAXParseException: The value of attribute "test" associated with an element type "null" must not contain the '<' character." It does not look very related to my piece of code but its appears each time I uncomment it. If anybody knows, I would be very grateful.

Thanks
JeanMoul
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 13 2010
Added on Dec 16 2009
0 comments
170 views