JSP网站移植 - Java / Web 开发
我同学用MyEclipse做的一个网站传来给我的,在他那边能运行。我导入到项目,数据库也附加了(SP4补丁),tomcat也启动了,发布以后,进入页面没问题,但是只要是设计到数据库的页面,全都是空白的,网上查了需要修改xml什么的,我不会,希望大家能帮帮我,我是小白,没碰过网站编写移植发布之类的事~~大家别喷~~~·谢谢大家了
我运行网站首页没问题,进入登陆界面以后输入账号密码就出现这样的代码:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.NullPointerException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.NullPointerException
bean.SelectBean.select(SelectBean.java:55)
action.LoginAction.execute(LoginAction.java:61)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419
相关问答:
我JSP的页面是:
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......
我是个新手,望高手解答
我现在已经安装了mysql,也有mysql的jdbc。但我怎么配置后,才能在MyEclipse里操作mysql呢?请高手说详细点
打开Myeclipse----window---open perspective---MyEclipse database explorer-- ......
怎么样将id传过去啊???是简单的传。。。在地址栏中写id号
LZ 好幽默!不知道你的意思?
是想把ID 传到ACTION ? 通过URl id=?
不够详细 别人不知道怎样帮你
../XXXXX.do?id=XXXX&id2=XXXXX
......