Hi, I want to use FCKeditor with Struts2. I am able to load editor with my custom Toolbar but I submit my fwhen orm, its values are not reaching to action class and page is reloading to itself...
Here is my code....I know there are people here who have already integrated FCKEditor with Struts2 so please help me in identifying issue...
Please let me know if you need further information...
<s:form namespace="/" action="article" method="post" id="submitArticle">
<s:select list="channelList" name="channelId" id="channelId" listKey="channelId" listValue="channelName" headerKey="-1" cssClass="textbox1" headerValue="--Select Channel --" />
<s:select list="categoryList" name="categoryId" listKey="categoryId" listValue="categoryName" headerKey="-1" cssClass="textbox1" headerValue="--Select Category --" />
<s:textfield name="title" cssClass="textbox1" size="83" />
<FCK:editor instanceName="articleDesc" toolbarSet="PublishArticle" height="400">
<jsp:body>
<FCK:config SkinPath="${pageContext.request.contextPath}/fckeditor/editor/skins/silver/" AutoDetectLanguage="true" />
<FCK:config CustomConfigurationsPath="${pageContext.request.contextPath}/script/write4smile.config.js" />
</jsp:body>
</FCK:editor>
<s:textfield name="dedicated" cssClass="textbox1" size="83" />
<s:submit name="method:publish" cssClass="btn" value="%{getText('article.publish')}" />
</s:form>
Here is my code....I know there are people here who have already integrated FCKEditor with Struts2 so please help me in identifying issue...
Please let me know if you need further information...
<s:form namespace="/" action="article" method="post" id="submitArticle">
<s:select list="channelList" name="channelId" id="channelId" listKey="channelId" listValue="channelName" headerKey="-1" cssClass="textbox1" headerValue="--Select Channel --" />
<s:select list="categoryList" name="categoryId" listKey="categoryId" listValue="categoryName" headerKey="-1" cssClass="textbox1" headerValue="--Select Category --" />
<s:textfield name="title" cssClass="textbox1" size="83" />
<FCK:editor instanceName="articleDesc" toolbarSet="PublishArticle" height="400">
<jsp:body>
<FCK:config SkinPath="${pageContext.request.contextPath}/fckeditor/editor/skins/silver/" AutoDetectLanguage="true" />
<FCK:config CustomConfigurationsPath="${pageContext.request.contextPath}/script/write4smile.config.js" />
</jsp:body>
</FCK:editor>
<s:textfield name="dedicated" cssClass="textbox1" size="83" />
<s:submit name="method:publish" cssClass="btn" value="%{getText('article.publish')}" />
</s:form>
Re: FCKEditor with Struts2
If you see the same site again, there must be wrong with your s:form tag. Try Firebug to see where the fck value is POSTed.