Forums Register Login

JWebPlus JSTL Q

+Pie Number of slices to send: Send
Consider the following:

Assuming that the following line of code has already occured in a scriptlet in a JSP page, which of the given JSTL code snippet will output the right string in the resulting HTML so that the message in 'htmltext' is displayed in HEAD1 style on the browser?

request.setAttribute("htmltext", "<h1>This is heading</h1>");

Given answers:
1) <c ut value="${htmltext}" escapeXml='false' />
2) ${htmltext}

IMO, answer 2 is incorrect since it is actually an EL expression.
Please confirm.
+Pie Number of slices to send: Send
And the first one doesn't give a value!!!
Feel answer 2) is correct ${"htmltext"}- can't EL be used in conjunction with JSTL ?

[ July 11, 2005: Message edited by: PNS Subramanian ]
[ July 11, 2005: Message edited by: PNS Subramanian ]
I do some of my very best work in water. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 676 times.
Similar Threads
images in html email - Please Help
some important mock exam experiences !!!
Struts 1: style, view, and properties files
HTMLDocument class ignoring cellspacing & border
Confused with flush() behavior
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:04:15.