login.jsp请问结构有问题吗
<%@ page language="java"%>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<html>
<head>
<title>login</title>
</head>
<body>
<%
String submit[]=request.getParameterValues("submit");
if(submit[0]equals"apply")
{
<p>
apply
</p>
}
if(submit[0]equals"login")
{
<p>
login
</p> }
if(submit[0]equals"state")
{
<p>
state
</p> }
%>
</body>
</html>
解决方案 »
- html里动态合并单元格?在线的哦!
- jfreechart饼图如何能在中间部份显示所有数据的统计结果
- hql不能左连接查询?
- Servlet中访问Hibernate时为什么找不到类?
- tomcat与iis整合后无法显示jsp和servlet
- WebSphere 问题,急问!!!
- 小问题,给100!
- 为什么在JCreator中编辑Jsp文件,<% %>之间无法正确显示中文呢?
- Unable to show problem report: freemarker.template.TemplateModelException: Metho
- JDK Linux 安装
- 谁知道那有VISUALAGE最高版本下载?一定给分
- ********请问哪里有《Enterprise JAVABEANS》的电子版可以下载********
hello.html
<script language="javascript">
function sned(strTemp)
{
window.navigate("login.jsp?strType="+strTemp)
}
<FORM action="test.jsp" method="post">
<input type="button" name="button1" value="apply" onclick="send(1)">
<input type="button" name="button2" value="jobsubmittable" onclick="send(2)">
<input type="button" name="button3" value="statelookup" onclick="send(3)">
</FORM>login.jsp请问结构有问题吗
<%@ page language="java"%>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<html>
<head>
<title>login</title>
</head>
<body>
<%
String strTemp=request.getParameterValues("strTemp");
if (strTemp.equals("1"))
{
out.println("apply");
}if (strTemp.equals("2"))
{
out.println("login");
if (strTemp.equals("3"))
{
out.println("state");
} }%>
</body>
</html>
an:可以