日期:2014-05-18  浏览次数:20794 次

初次接触jsp,求教解决方案
这是一个jsp的中国银行的接口程序,它提供了一个demo,现在运行时出现错误:
type   Exception   report

message  

description   The   server   encountered   an   internal   error   ()   that   prevented   it   from   fulfilling   this   request.

exception  

org.apache.jasper.JasperException:   Unable   to   compile   class   for   JSP

Generated   servlet   error:
Only   a   type   can   be   imported.   com.jetcopg.storeapi.store.StoreAPI   resolves   to   a   package

An   error   occurred   at   line:   29   in   the   jsp   file:   /processDO.jsp
Generated   servlet   error:
StoreAPI   cannot   be   resolved   to   a   type

Generated   servlet   error:
StoreAPI   cannot   be   resolved   to   a   type


org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root   cause  

org.apache.jasper.JasperException:   Unable   to   compile   class   for   JSP

Generated   servlet   error:
Only   a   type   can   be   imported.   com.jetcopg.storeapi.store.StoreAPI   resolves   to   a   package

An   error   occurred   at   line:   29   in   the   jsp   file:   /processDO.jsp
Generated   servlet   error:
StoreAPI   cannot   be   resolved   to   a   type

Generated   servlet   error:
StoreAPI   cannot   be   resolved   to   a   type


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

请问这是什么原因?
第29行是String   IP;这个应该没什么关系吧.

另外它有两个jar文件,我把它们放到tomcat/common/lib里面了,这样对吗?还需要设置什么吗?

在此先谢各位解答了

------解决方案--------------------
我建议先弄个NB点的IDE,比如eclipse
------解决方案--------------------
com.jetcopg.storeapi.store.StoreAPI 有这个类吗

看报错好像是找不到 StoreAPI 或者 StoreAPI 不是一个类
怎么把招商银行的钱存入到杭州招商证券的证券卡中