急!!!jsp中怎样使用纯真IP数据库QQwry.dat

xwqlitchi 2008-03-18 03:52:26
我的网站是jsp+mysql的
在网上搜到的
java读取纯真IP数据库QQwry.dat的源代码,网址是:http://blog.csdn.net/swazn_yj/archive/2007/05/16/1611020.aspx
我想在jsp中使用,就是在首页,获取客户ip 地址,然后显示对应所在地区,写入数据库
我现在有java的源码,我把java的直接写入网站代码中调试,报错,不知道应该怎样使用,怎么修改?
请高手说的详细一些!
下面是我调试中的错误,请高人指出,谢谢了!
...全文
956 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
老紫竹 2008-10-18
  • 打赏
  • 举报
回复
我一般导出为文本文件,然后自己处理。
yk789 2008-10-18
  • 打赏
  • 举报
回复
难道你可以直接在jsp里定义一个类?
还是我有点孤陋寡闻了?
yuanwei0221 2008-10-18
  • 打赏
  • 举报
回复
不知道问题是否解决?
我也想使用,可是老是报:java.lang.NoClassDefFoundError异常
xwqlitchi 2008-03-21
  • 打赏
  • 举报
回复
非常感谢,你发的这个介绍的很详细,我先看下,有不懂的再来问。^_^
自然80 2008-03-20
  • 打赏
  • 举报
回复
http://lumaqq.linuxsir.org/article/qqwry_format_detail.html
xwqlitchi 2008-03-20
  • 打赏
  • 举报
回复
没人看呀,谢谢大家了~~~
xwqlitchi 2008-03-20
  • 打赏
  • 举报
回复
没人看吗,哎~~~
xwqlitchi 2008-03-18
  • 打赏
  • 举报
回复
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

An error occurred at line: 42 in the jsp file: /index1.jsp
Generated servlet error:
D:\jakarta-tomcat-5.0.28\work\Catalina\localhost\anine\org\apache\jsp\index1_jsp.java:163: illegal start of expression
public class IPSeeker {
^


An error occurred at line: 42 in the jsp file: /index1.jsp
Generated servlet error:
D:\jakarta-tomcat-5.0.28\work\Catalina\localhost\anine\org\apache\jsp\index1_jsp.java:163: ';' expected
public class IPSeeker {
^
2 errors



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.

zhou1862324 2008-03-18
  • 打赏
  • 举报
回复
cuowu zai na ?

81,115

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧