문제

I am writing documentation for a company widget i authored and would like to run it on our development site but i need to show some jsp source code in the page.

How do i stop code from being interpolated?

도움이 되었습니까?

해결책

Replace < by &lt; and > by &gt;.

You can if necessary make it a bean property and use JSTL <c:out> to display it. It by defaut does that job.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top