📄 order_0005fdetail_0002ejsp_jsp.java
字号:
package manage;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class order_0005fdetail_0002ejsp_jsp extends HttpJspBase {
// begin [file="/manage/order_detail.jsp";from=(1,0);to=(1,60)]
// end
// begin [file="/manage/order_detail.jsp";from=(2,0);to=(2,58)]
// end
static {
}
public order_0005fdetail_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/manage/order_detail.jsp";from=(0,100);to=(1,0)]
out.write("\r\n");
// end
// begin [file="/manage/order_detail.jsp";from=(1,0);to=(1,60)]
beans.connDB connDB = null;
boolean _jspx_specialconnDB = false;
synchronized (pageContext) {
connDB= (beans.connDB)
pageContext.getAttribute("connDB",PageContext.PAGE_SCOPE);
if ( connDB == null ) {
_jspx_specialconnDB = true;
try {
connDB = (beans.connDB) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "beans.connDB");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"beans.connDB", exc);
}
pageContext.setAttribute("connDB", connDB, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialconnDB == true) {
// end
// begin [file="/manage/order_detail.jsp";from=(1,0);to=(1,60)]
}
// end
// HTML // begin [file="/manage/order_detail.jsp";from=(1,60);to=(2,0)]
out.write("\r\n");
// end
// begin [file="/manage/order_detail.jsp";from=(2,0);to=(2,58)]
beans.chStr chStr = null;
boolean _jspx_specialchStr = false;
synchronized (pageContext) {
chStr= (beans.chStr)
pageContext.getAttribute("chStr",PageContext.PAGE_SCOPE);
if ( chStr == null ) {
_jspx_specialchStr = true;
try {
chStr = (beans.chStr) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "beans.chStr");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"beans.chStr", exc);
}
pageContext.setAttribute("chStr", chStr, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialchStr == true) {
// end
// begin [file="/manage/order_detail.jsp";from=(2,0);to=(2,58)]
}
// end
// HTML // begin [file="/manage/order_detail.jsp";from=(2,58);to=(3,0)]
out.write("\r\n");
// end
// begin [file="/manage/order_detail.jsp";from=(3,0);to=(3,30)]
{
String _jspx_qStr = "";
JspRuntimeLibrary.include(request, response, "safe.jsp" + _jspx_qStr, out, false);
if ("true".equals(request.getAttribute("javax.servlet.forward.seen")))
return;
}
// end
// HTML // begin [file="/manage/order_detail.jsp";from=(3,30);to=(4,0)]
out.write("\r\n");
// end
// begin [file="/manage/order_detail.jsp";from=(4,2);to=(38,0)]
if (request.getParameter("ID")!=null){
int ID=Integer.parseInt(request.getParameter("ID"));
ResultSet rs_main=connDB.executeQuery("select * from tb_order where orderID="+ID);
int orderID=0;
String username="";
String Truename="";
String address="";
String postcode="";
String tel="";
String email="";
String bz="";
String ISBN="";
String bookname="";
String publisher="";
float price=0;
int number=0;
float rebate=0;
String time="";
if(rs_main.next()){
orderID=rs_main.getInt("orderID");
username=rs_main.getString("username");
Truename=rs_main.getString("Truename");
address=rs_main.getString("address");
postcode=rs_main.getString("postcode");
tel=rs_main.getString("tel");
email=rs_main.getString("email");
rebate=rs_main.getFloat("rebate");
time=rs_main.getString("OrderDate");
bz=rs_main.getString("bz");
if (bz.equals("")){
bz="鏃
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -