eclipse下的奇怪的jsp编译问题。

eclipse下的奇怪的jsp编译问题。,第1张

错误的完整信息:

2006-10-8 22:15:50 orgapachejaspercompilerCompiler generateClass

严重: Javac exception

Unable to find a javac compiler;

comsuntoolsjavacMain is not on the classpath

Perhaps JAVA_HOME does not point to the JDK

at orgapachetoolsanttaskdefscompilersCompilerAdapterFactorygetCompiler(CompilerAdapterFactoryjava:106)

at orgapachetoolsanttaskdefsJavaccompile(Javacjava:935)

at orgapachetoolsanttaskdefsJavacexecute(Javacjava:764)

at orgapachejaspercompilerCompilergenerateClass(Compilerjava:382)

at orgapachejaspercompilerCompilercompile(Compilerjava:472)

at orgapachejaspercompilerCompilercompile(Compilerjava:451)

at orgapachejaspercompilerCompilercompile(Compilerjava:439)

at orgapachejasperJspCompilationContextcompile(JspCompilationContextjava:511)

at orgapachejasperservletJspServletWrapperservice(JspServletWrapperjava:295)

at orgapachejasperservletJspServletserviceJspFile(JspServletjava:292)

at orgapachejasperservletJspServletservice(JspServletjava:236)

at javaxservlet>

四大域对象详解

JSP中隐式对象的名称

范围名称

具体的类型

pageContext page javaxservletjspPageContext

request request javaxservletServletRequest (显示完数据就没有用了)

session

session

javaxservlet>

这个是Struts2 OGNL表达式

OGNL要结合struts标签来使用。由于比较灵活,也容易把人给弄晕,尤其是“%”、“#”、“$”这三个符号的使用。

“#”符号有三种用途:

(1)、访问非根对象(struts中值栈为根对象)如OGNL上下文和Action上下文,#相当于ActionContextgetContext();下表有几个ActionContext中有用的属性:

parameters

包含当前>

用Servlet进行修改。具体方法如下:

1、在Servlet中获取>

以上就是关于eclipse下的奇怪的jsp编译问题。全部的内容,包括:eclipse下的奇怪的jsp编译问题。、tomcat报错,在线等各位大神解答... 信息如下...、Servlet四大域对象、Jsp四大隐式对象、Jsp九大内置对象、十一大EL隐式对象区别和联系等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/9484885.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-28
下一篇 2023-04-28

发表评论

登录后才能评论

评论列表(0条)

保存