📄 montest.jsp~115~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<title>
montest
</title>
</head>
<jsp:useBean id="montestBeanId" scope="session" class="montnets.montestBean" />
<jsp:setProperty name="montestBeanId" property="*" />
<body>
<h1>
JBuilder Generated JSP
</h1>
<form method="post" name="form1" active = "montest.jsp">
<td>操作符</td>
<td>
<select name="ojp">
<option value = 0>单口短信猫</option>
<option value = 1>双口短信猫</option>
<option value = 2>4口短信猫</option>
<option value = 3>8口短信猫</option>
</select>
</td>
<%
//out.print(request.getParameter("sample"));
/*if (str != null)
{
out.print(request.getParameter("sample"));
}*/
String ls_var = "";
%>
<%!
String str;
public int get_test(String str)
{
// out.print(request.getParameter("sample"));
montnets.mondem mybean = new montnets.mondem();
return mybean.jvInitModem();
}
%>
<%
str = request.getParameter("sample");
//request.getParameter("object");
//if (!request.getParameter("button1").equals(""))
//{
//}
%>
<br>Enter new value : <input name="sample" value="<%=str%>"><br>
<br>Enter new value : <input name="sample1" value="<%=str%>"><br>
<br><br>
<input type="submit" name="button1" value="初始化端口" onclick="get_script('button1')">
<input type="button" name="button2" value="发送信息" onclick="get_script('button2')">
<input type="button" name="button3" value="准备接收" onclick="get_script('button3')">
<input type="button" name="button4" value="停止接收" onclick="get_script('button4')">
<input type="reset" value="Reset">
<br>
Value of Bean property is :<jsp:getProperty name="montestBeanId" property="sample" />
</form>
</body>
<ml>
<script language="javascript">
function get_script(cobject)
{
var str = document.all.sample.value;
document.all.form1.action="montest.jsp?" + cobject;
document.all.form1.submit();
//<%=ls_var%>=str.toString();
//alert("<%=ls_var%>");
alert("<%=get_test("'"+ls_var+"'")%>");
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -