?? _0002fmontest_0002ejspmontest_jsp_19.java
字號:
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.util.Vector;
import org.apache.jasper.runtime.*;
import java.beans.*;
import org.apache.jasper.JasperException;
public class _0002fmontest_0002ejspmontest_jsp_19 extends HttpJspBase {
// begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(7,0);to=(7,79)]
// end
// begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(17,3);to=(23,0)]
public int get_test()
{
montnets.mondem mybean = new montnets.mondem();
return mybean.jvInitModem();
}
// end
static {
}
public _0002fmontest_0002ejspmontest_jsp_19( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws JasperException {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws 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) {
_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="E:\\javaweb\\montnets\\montest.jsp";from=(0,48);to=(7,0)]
out.write("\r\n<html>\r\n<head>\r\n<title>\r\nmontest\r\n</title>\r\n</head>\r\n"); // end
// begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(7,0);to=(7,79)]
montnets.montestBean montestBeanId = null;
boolean _jspx_specialmontestBeanId = false;
synchronized (session) {
montestBeanId= (montnets.montestBean)
pageContext.getAttribute("montestBeanId",PageContext.SESSION_SCOPE);
if ( montestBeanId == null ) {
_jspx_specialmontestBeanId = true;
try {
montestBeanId = (montnets.montestBean) Beans.instantiate(this.getClass().getClassLoader(), "montnets.montestBean");
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"montnets.montestBean");
}
pageContext.setAttribute("montestBeanId", montestBeanId, PageContext.SESSION_SCOPE);
}
}
if(_jspx_specialmontestBeanId == true) {
// end
// begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(7,0);to=(7,79)]
}
// end
// HTML // begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(7,79);to=(8,0)]
out.write("\r\n"); // end
// begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(8,0);to=(8,53)]
JspRuntimeLibrary.introspect(pageContext.findAttribute("montestBeanId"), request);
// end
// HTML // begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(8,53);to=(17,0)]
out.write("\r\n<body>\r\n<h1>\r\nJBuilder Generated JSP\r\n</h1>\r\n<form method=\"post\" >\r\n<br>Enter new value : <input name=\"sample\"><br>\r\n<br>Enter new value : <input name=\"sample1\"><br>\r\n<br><br>\r\n"); // end
// HTML // begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(23,2);to=(27,8)]
out.write("\r\n<script language=\"javascript\">\r\nfunction get_script()\r\n{\r\n alert(\""); // end
// begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(27,11);to=(27,21)]
out.print(get_test());
// end
// HTML // begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(27,23);to=(45,27)]
out.write("\");\r\n}\r\n</script>\r\n<td>操作符</td>\r\n<td>\r\n<select name=\"ojp\">\r\n<option value = \"單口短信貓\"></option>\r\n<option value = \"雙口短信貓\"></option>\r\n<option value = \"4口短信貓\"></option>\r\n<option value = \"8口短信貓\"></option>\r\n</select>\r\n</td>\r\n<input type=\"button\" name=\"button1\" value=\"初始化端口\" onclick=\"get_script()\">\r\n<input type=\"button\" name=\"button2\" value=\"發送信息\" onclick=\"get_script()\">\r\n<input type=\"button\" name=\"button3\" value=\"準備接收\" onclick=\"get_script()\">\r\n<input type=\"button\" name=\"button4\" value=\"停止接收\" onclick=\"get_script()\">\r\n<input type=\"reset\" value=\"Reset\">\r\n<br>\r\nValue of Bean property is :"); // end
// begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(45,27);to=(45,85)]
out.print(JspRuntimeLibrary.toString((((montnets.montestBean)pageContext.findAttribute("montestBeanId")).getSample())));
// end
// HTML // begin [file="E:\\javaweb\\montnets\\montest.jsp";from=(45,85);to=(49,0)]
out.write("\r\n</form>\r\n</body>\r\n</html>\r\n"); // end
} catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clearBuffer();
pageContext.handlePageException(ex);
} finally {
out.flush();
_jspxFactory.releasePageContext(pageContext);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -