WEB

스트러츠 아스키코드 html태그로 입력받기

ndlessrain 2012. 7. 29. 20:16
728x90

<bean:write name='list' property='content'/>

html태그가 있는 내용을 bean write 로 뿌려주게 되면 특수기호가 아스키로 갓다가 다시 html에서 보여지기 때문에 <br>과 같은 태그가 그냥 보여지게 된다.

그래서

<bean:define id='realContent' name='list' property='content'/>
<%=(String)realContent %>

이렇게하면 된다.

728x90