result.jsp
来自「一个jsp的课程设计:电子商务网站」· JSP 代码 · 共 65 行
JSP
65 行
<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><%--The taglib directive below imports the JSTL library. If you uncomment it,you must also add the JSTL library to the project. The Add Library... actionon Libraries node in Projects view can be used to add the JSTL 1.1 library.--%><%--<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> --%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><% String to=request.getParameter("total"); String ok=request.getParameter("ok"); if(to==null){ response.sendRedirect("index.jsp"); } HttpSession s=request.getSession(true); String error=(String)s.getAttribute("error");%><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> <style type="text/css"><!--body,td,th { font-size: 9pt;}body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}.border{ border:1px solid #999999;}--></style> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="419" align="center" valign="middle"><table width="52%" border="0" cellpadding="0" cellspacing="0" class="border"> <tr> <td height="174" align="center" valign="middle"> <%if(ok.equals("true")){%> <p>恭喜您,您的购买信息已经存入数据库,请等待!</p> <p>总价格:<%=to%></p> <%}else{%> <p><%=error%></p> <%}%> <p><a href="index.jsp">继续购物</a></p> </td> </tr> </table></td> </tr></table> </body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?