You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joseph Terranova <kn...@yahoo.com> on 2001/01/11 23:02:03 UTC
Struts Example, error using
Hello,
I'm using the 20010105 build of Struts running under JRun v3.00.3694 and cannot run the web
example code...
Here's the error I receive:
500 Internal Server Error
/struts-example/:
javax.servlet.ServletException: Compilation error occured:
allaire.jrun.scripting.DefaultCFE:
Errors reported by compiler:C:/Program
Files/Allaire/JRun/servers/default/struts-example/WEB-INF/jsp/jrun__index2ejspa.java:44:1:44:27:
Error: No match was found for method "setLocale(java.lang.String)".
at allaire.jrun.scripting.JavaCompilerService.compile(JavaCompilerService.java:122)
at allaire.jrun.jsp.JSPServlet.compilePage(JSPServlet.java:452)
at allaire.jrun.jsp.JSPServlet.createServlet(JSPServlet.java:393)
at allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:201)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:168)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
at allaire.jrun.file.FileServlet.service(FileServlet.java:144)
at allaire.jrun.servlet.JRunServletPool.service(JRunServletPool.java:83)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
at allaire.jrun.WorkerThread.run(WorkerThread.java:74)
Here's what the line of code looks like in jrun__index2ejspa.java:
html__6_1.setLocale("true");
The setLocale method is defined in the HtmlTag tag handler as:
public void setLocale(boolean locale) {
this.locale = locale;
}
If I change the tag in index.jsp from
<form:html locale="true">
to
<form:html locale=true>
I receive the same error, but the line of code in jrun__index2ejspa.java now looks like this:
html__6_1.setLocale("ttruet");
If I change the tag in index.jsp to
<form:html>
the page loads without error...
So, setLocale expects a boolean but a string is being passed in. Thoughts? Input is greatly
appreciated!
Joe
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/