3
这是一个非常简单的问题,但我是一个新手...连接一个JSP页面到另一个jsp页面
我有两个文件:login.jsp的和report.jsp 它们都在同一个WebContent文件夹。
我想在report.jsp该按钮时,会带我去的login.jsp
页面的JSP部分看起来像一个链接:
Connection conn = (Connection)session.getAttribute("conn"); //retrieves the connection from the session
String lot_id = request.getParameter("lotnum");
session.setAttribute("lot_id",lot_id);
out.print("Report on Lot Number: ");
out.print(request.getParameter("lotnum")+"<br>");
//<a href="login.jsp">Click here to go to login page</a>
// this is supposed to be an anchor tag linking this page to login.jsp, and where I am getting my error...
Statement sql = conn.createStatement(); //create statement using the connection
//... ... code for the rest of the page goes here...
谢谢你,
非常感谢
我有多傻。当然... out.print可以发送html代码...谢谢! – user3044023