Hello
I'm building a java webapp (a lightweight CMS) using FCKeditor as the WYSIWYG editor. I'm using Stripes as the Web framework.
My problem is that the editor isn't showing the content I load using the JSTL <c:out> tag.
*****START JSP CODE*****
<%@ include file="/common/taglibs.jsp"%>
<head>
<title>
</title>
<script src="/PortalHUM/javascript/niceforms/niceform.js" type="text/javascript" language="javascript"></script>
</head>
<body>
<div class="barra">
<h1><fmt:message key="noticia2.heading"/></h1>
<s:errors globalErrorsOnly="true"/>
<s:form action="noticia.action" focus="first" class="niceform">
<s:errors/>
<s:wizard-fields/>
<div class="label_container">
<s:label for="noticia.resumen"/>
<!--s:textarea name="noticia.resumen" value="${actionBean.noticia.resumen}"/-->
<!-- FCK:editor
basePath="/FCKeditor/"
id="noticia.resumen"
width="92%"
height="450px"
toolbarSet="Default"
skinPath="/FCKeditor/editor/skins/silver/">
<c:out value="${actionBean.noticia.resumen}"/>
</FCK:editor-->
</div>
<s:submit name="irAlPaso3">
<fmt:message key="siguiente"/>
</s:submit>
<s:submit name="atrasPaso1">
<fmt:message key="atras"/>
</s:submit>
<input type="button" name="cancelar" value="Cancel" onclick="javascript:window.location.href='principal.action?idCategoria=<c:out value="${actionBean.idCategoria}"/>'"/>
</s:form>
</div>
</body>
*****END JSP CODE*****
I'm building a java webapp (a lightweight CMS) using FCKeditor as the WYSIWYG editor. I'm using Stripes as the Web framework.
My problem is that the editor isn't showing the content I load using the JSTL <c:out> tag.
*****START JSP CODE*****
<%@ include file="/common/taglibs.jsp"%>
<head>
<title>
</title>
<script src="/PortalHUM/javascript/niceforms/niceform.js" type="text/javascript" language="javascript"></script>
</head>
<body>
<div class="barra">
<h1><fmt:message key="noticia2.heading"/></h1>
<s:errors globalErrorsOnly="true"/>
<s:form action="noticia.action" focus="first" class="niceform">
<s:errors/>
<s:wizard-fields/>
<div class="label_container">
<s:label for="noticia.resumen"/>
<!--s:textarea name="noticia.resumen" value="${actionBean.noticia.resumen}"/-->
<!-- FCK:editor
basePath="/FCKeditor/"
id="noticia.resumen"
width="92%"
height="450px"
toolbarSet="Default"
skinPath="/FCKeditor/editor/skins/silver/">
<c:out value="${actionBean.noticia.resumen}"/>
</FCK:editor-->
</div>
<s:submit name="irAlPaso3">
<fmt:message key="siguiente"/>
</s:submit>
<s:submit name="atrasPaso1">
<fmt:message key="atras"/>
</s:submit>
<input type="button" name="cancelar" value="Cancel" onclick="javascript:window.location.href='principal.action?idCategoria=<c:out value="${actionBean.idCategoria}"/>'"/>
</s:form>
</div>
</body>
*****END JSP CODE*****