public test() throws IOException,SQLException
to
public void test() throws IOException,SQLException
HttpServletResponse res;
to
HttpServletResponse res=null;ok now
to
public void test() throws IOException,SQLException
HttpServletResponse res;
to
HttpServletResponse res=null;ok now
解决方案 »
- 程序执行到sqlMap.startTransaction();报空指针
- 谁有用过那个叼:jqGrid 的table页啊,支援一把
- jsfurl的相关问题
- 不同文件夹下的jsp怎么访问
- 快帮帮我吧!
- myeclipse6.6配置问题
- 急求JSP生成多级树形目录的代码,非常感谢!仅有60分了...............
- 下拉框問題
- 求助,遇到一个棘手的问题
- 简单问题
- 配置Tomcat出错java.lang.reflect.InvocationTargetException:java.lang.IllegalArgumentException:addChild:Child name 'jsp' is not un
- 那位高手知道,用tomcat+jsp与mysql连接的必要条件是什么呀,谢谢了
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class yyq
{
public yyq(){}
public test(HttpServletResponse res) throws IOException,SQLException
{
res.sendRedirect("http://www.163.com");
}
}
jsp中
<%
yyq y = new yyq();
y.test(response);
%>