?? adm_0005faddbook_0002ejsp_jsp.java
字號:
package admin;
import bookshop.book.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class adm_0005faddbook_0002ejsp_jsp extends HttpJspBase {
// begin [file="/admin/adm_addbook.jsp";from=(7,0);to=(7,77)]
// end
// begin [file="/admin/adm_addbook.jsp";from=(8,0);to=(8,67)]
// end
static {
}
public adm_0005faddbook_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="/admin/adm_addbook.jsp";from=(0,88);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/admin/adm_addbook.jsp";from=(1,26);to=(2,0)]
out.write("\r\n");
// end
// begin [file="/admin/adm_addbook.jsp";from=(2,2);to=(5,2)]
if (session.getAttribute("admin")==null || session.getAttribute("admin")==""){
response.sendRedirect("error.htm");
}
// end
// HTML // begin [file="/admin/adm_addbook.jsp";from=(5,4);to=(6,0)]
out.write("\r\n");
// end
// HTML // begin [file="/admin/adm_addbook.jsp";from=(6,35);to=(7,0)]
out.write("\r\n");
// end
// begin [file="/admin/adm_addbook.jsp";from=(7,0);to=(7,77)]
bookshop.run.op_bookclass classlist = null;
boolean _jspx_specialclasslist = false;
synchronized (pageContext) {
classlist= (bookshop.run.op_bookclass)
pageContext.getAttribute("classlist",PageContext.PAGE_SCOPE);
if ( classlist == null ) {
_jspx_specialclasslist = true;
try {
classlist = (bookshop.run.op_bookclass) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "bookshop.run.op_bookclass");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"bookshop.run.op_bookclass", exc);
}
pageContext.setAttribute("classlist", classlist, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialclasslist == true) {
// end
// begin [file="/admin/adm_addbook.jsp";from=(7,0);to=(7,77)]
}
// end
// HTML // begin [file="/admin/adm_addbook.jsp";from=(7,77);to=(8,0)]
out.write("\r\n");
// end
// begin [file="/admin/adm_addbook.jsp";from=(8,0);to=(8,67)]
bookshop.run.op_book book = null;
boolean _jspx_specialbook = false;
synchronized (pageContext) {
book= (bookshop.run.op_book)
pageContext.getAttribute("book",PageContext.PAGE_SCOPE);
if ( book == null ) {
_jspx_specialbook = true;
try {
book = (bookshop.run.op_book) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "bookshop.run.op_book");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"bookshop.run.op_book", exc);
}
pageContext.setAttribute("book", book, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialbook == true) {
// end
// begin [file="/admin/adm_addbook.jsp";from=(8,0);to=(8,67)]
}
// end
// HTML // begin [file="/admin/adm_addbook.jsp";from=(8,67);to=(9,0)]
out.write("\r\n");
// end
// begin [file="/admin/adm_addbook.jsp";from=(9,2);to=(23,0)]
String mesg = "";
String submit = request.getParameter("Submit");
if (submit!=null && !submit.equals("")){
if(book.getRequest(request)){
if(book.insert()){
mesg = "鏂板浘涔﹁祫鏂欐彁浜ゆ垚鍔燂紒";
} else {
mesg = "鏁版嵁搴撴搷浣滃け璐
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -