Hello,
I set-up the fckeditor sucessfully, but I need to use a value that is in a java variable with the fckeditor
When I do this:
<FCK:editor instanceName="EditorDefault">
<jsp:attribute name="value">some text</jsp:attribute>
</FCK:editor>
It works fine, but When I do this:
<FCK:editor instanceName="EditorDefault">
<jsp:attribute name="value"><%=java_variable%></jsp:attribute>
</FCK:editor>
The application broke
How can I use the editor with java variables?
Thank You
I set-up the fckeditor sucessfully, but I need to use a value that is in a java variable with the fckeditor
When I do this:
<FCK:editor instanceName="EditorDefault">
<jsp:attribute name="value">some text</jsp:attribute>
</FCK:editor>
It works fine, but When I do this:
<FCK:editor instanceName="EditorDefault">
<jsp:attribute name="value"><%=java_variable%></jsp:attribute>
</FCK:editor>
The application broke
How can I use the editor with java variables?
Thank You
Re: Using scriptlets for fckeditor content
What is the stack trace?
I just tried to reproduce with a simple example:
Works as expected. You maybe suffer from http://dev.fckeditor.net/ticket/2372
Re: Using scriptlets for fckeditor content
This code works fine:
<% String fcktext = "XXX";%>
<FCK:editor instanceName="EditorDefault" value="<%=fcktext%>">
</FCK:editor>
This code generates the error below;
<% String fcktext = "XXX";%>
<FCK:editor instanceName="EditorDefault">
<jsp:attribute name="value"><%=fcktext%>
</jsp:attribute>
</FCK:editor>
HTTP Error Code: 500
Error Message:
JSPG0049E: /UPGHRU.jsp failed to compile :
JSPG0091E: An error occurred at line: 461 in the file: /UPGHRU.jsp
JSPG0093E: Generated servlet error from file: /UPGHRU.jsp
D:\Appl\IBM\Rational\SDP\6.0\runtimes\base_v6\profiles\default\temp\localhostNode01\server1\upEAR\up.war\_UPGHRU.java:712: cannot resolve symbol
symbol : variable fcktext
location: class com.ibm._jsp._UPGHRU
out.print(fcktext);
^
1 error
Root Cause:
com.ibm.ws.jsp.JspCoreException: JSPG0049E: /UPGHRU.jsp failed to compile :
JSPG0091E: An error occurred at line: 461 in the file: /UPGHRU.jsp
JSPG0093E: Generated servlet error from file: /UPGHRU.jsp
D:\Appl\IBM\Rational\SDP\6.0\runtimes\base_v6\profiles\default\temp\localhostNode01\server1\upEAR\up.war\_UPGHRU.java:712: cannot resolve symbol
symbol : variable fcktext
location: class com.ibm._jsp._UPGHRU
out.print(fcktext);
^
1 error
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp(JSPExtensionServletWrapper.java:368)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper._checkForTranslation(JSPExtensionServletWrapper.java:329)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java:237)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:144)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:294)
at com.ibm.hpt.gateway.ServletSupport21.callPage(ServletSupport21.java)
at com.ibm.hpt.gateway.GatewayRequestHandler.callPage(GatewayRequestHandler.java)
at com.ibm.hpt.gateway.GatewayRequestHandler.servePage(GatewayRequestHandler.java)
at com.ibm.hpt.gateway.GatewayRequestHandler.invokeServerAndProcessResults(GatewayRequestHandler.java)
at com.ibm.hpt.gateway.GatewayRequestHandler.processInput(GatewayRequestHandler.java)
at com.ibm.hpt.gateway.GatewayRequestHandler.performTask(GatewayRequestHandler.java)
at com.ibm.hpt.gateway.GatewayServlet.serveApplicationPage(GatewayServlet.java)
at com.ibm.hpt.gateway.GatewayServlet.performTask(GatewayServlet.java)
at com.ibm.hpt.gateway.GatewayServlet.doPost(GatewayServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:673)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:89)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1878)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1462)
But the first code solved my problem, Thank you !
Luciano
Re: Using scriptlets for fckeditor content
This is the same problem as you have: viewtopic.php?f=6&t=10469&p=27670#p27668
he found a solution for.