【Java开源代码栏目提醒】:网学会员--在 Java开源代码编辑为广大网友搜集整理了:book$jsp.java绩等信息,祝愿广大网友取得需要的信息,参考学习。
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class book$jsp extends HttpJspBase {
static {
}
public book$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=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/book.jsp";from=(0,48);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/book.jsp";from=(1,58);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/book.jsp";from=(2,58);to=(3,0)]
out.write("\r\n");
// end
//
HTML // begin [file="/book.jsp";from=(3,60);to=(4,0)]
out.write("\r\n");
// end
// HTML // begin [file="/book.jsp";from=(4,62);to=(76,0)]
out.write("\r\n<html>\r\n<head>\r\n <link rel=\"STYLESHEET\" type=\"text/css\" href=\"css/shared.css\">\r\n<title>\r\nbook\r\n</title>\r\n<script language=\"javascript\">\r\nvar selectedTr = null;\r\nfunction setTrColor(colorTr,color)\r\n{\r\n if(colorTr.tagName==\"TR\")\r\n {\r\n for(var i=0;i<colorTr.childNodes.length;i++)\r\n {\r\n colorTr.childNodes(i).style.backgroundColor = color;\r\n colorTr.childNodes(i).children(0).style.backgroundColor = color;\r\n }\r\n }\r\n}\r\nfunction addbook()\r\n{\r\n document.bookActionForm.operation.value = \"add\";\r\n document.bookActionForm.submit();\r\n}\r\nfunction deletebook()\r\n{\r\n\r\n if(selectedTr!=null)\r\n { alert(selectedTr.childNodes(0).children(1).value);\r\n\tif(selectedTr.childNodes(0).children(1).value!=0&&selectedTr.childNodes(0).children(1).value!=null)\r\n {\r\n\t\tdocument.bookActionForm.deleteUID.value = selectedTr.childNodes(0).children(1).value;\r\n\t\tdocument.bookActionForm.operation.value=\"delete\";\r\n\t\tbookRows.removeChild(selectedTr);\r\n \t\tselectedTr = null;\r\n \t\tdocument.bookActionForm.submit();\r\n }else\r\n\t{\r\n\t\tbookRows.removeChild(selectedTr);\r\n\t\tselectedTr = null;\r\n\t}\r\n }\r\n}\r\nfunction savebook()\r\n{\r\n\r\n \tdocument.bookActionForm.operation.value = \"save\";\r\n\tdocument.bookActionForm.submit();\r\n}\r\nfunction onClickedCell()\r\n{\r\n var clickedcell = event.srcElement;\r\n if(selectedTr!=null)\r\n{\r\n setTrColor(selectedTr,\"#FFFFFF\");\r\n}\r\n while(clickedcell.tagName!=\"TR\")\r\n {\r\n clickedcell = clickedcell.parentElement;\r\n }\r\n selectedTr = clickedcell;\r\n setTrColor(selectedTr,\"#FFDDFF\");\r\n}\r\n</script>\r\n</head>\r\n<body bgcolor=\"#ffffff\" >\r\n<h3 align=\"center\">\r\n鍥句功淇℃伅\r\n</h3>\r\n<br>\r\n<hr height=1 />\r\n");
// end
// begin [file="/book.jsp";from=(76,0);to=(76,48)]
/* ---- html:form ---- */
org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = new org.apache.struts.taglib.html.FormTag();
_jspx_th_html_form_0.setPageContext(pageContext);
_jspx_th_html_form_0.setParent(null);
_jspx_th_html_form_0.setMethod("post");
_jspx_th_html_form_0.setAction("bookAction.do");
try {
int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
if (_jspx_eval_html_form_0 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
throw new JspTagException("Since tag handler class org.apache.struts.taglib.html.FormTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
if (_jspx_eval_html_form_0 != javax.