下面是我的JSP页面,今天跳转的时候,工程名不见了。我晕!
正常:http://localhost:8089/Kiss20110530/Test_list.do?dispatch=insertUser
错误:http://localhost:8089/Test_list.do?dispatch=insertUser大家帮我看看是哪里不对啊?<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/tag-page" prefix="page" %>
<%@ taglib uri="/tags/tag-button" prefix="button" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<html:form styleId="testList" action="/Test_add" method="post" enctype="multipart/form-data">
<table width="100%" align="center">
<tr>
<td align="center">RECORD_ID:</td>
<td><nested:text property="record_id" styleClass="input" size="45" maxlength="40"/></td>
</tr>
<tr>
<td align="center">CR_PGM_ID:</td>
<td><nested:text property="cr_Pgm_Id" styleClass="input" size="45" maxlength="40"/></td>
</tr>
<tr>
<td align="center">CR_USER_ID:</td>
<td><nested:text property="cr_User_Id" styleClass="input" size="45" maxlength="40"/></td>
</tr>
<tr>
<td align="center">CR_DT:</td>
<td><nested:text property="cr_Dt" styleClass="input" size="45" maxlength="40"/></td>
</tr>
<tr align="center" valign="middle">
<td colspan="2">
<input name="return" type="button" class="button2" value="确定" onClick="btnFunction('testList', 'Test_add.do?dispatch=insertUser')">
<input name="return" type="submit" value="返 回" >
</td>
</tr>
</table>
</html:form>
</body>
</html>
正常:http://localhost:8089/Kiss20110530/Test_list.do?dispatch=insertUser
错误:http://localhost:8089/Test_list.do?dispatch=insertUser大家帮我看看是哪里不对啊?<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/tag-page" prefix="page" %>
<%@ taglib uri="/tags/tag-button" prefix="button" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<html:form styleId="testList" action="/Test_add" method="post" enctype="multipart/form-data">
<table width="100%" align="center">
<tr>
<td align="center">RECORD_ID:</td>
<td><nested:text property="record_id" styleClass="input" size="45" maxlength="40"/></td>
</tr>
<tr>
<td align="center">CR_PGM_ID:</td>
<td><nested:text property="cr_Pgm_Id" styleClass="input" size="45" maxlength="40"/></td>
</tr>
<tr>
<td align="center">CR_USER_ID:</td>
<td><nested:text property="cr_User_Id" styleClass="input" size="45" maxlength="40"/></td>
</tr>
<tr>
<td align="center">CR_DT:</td>
<td><nested:text property="cr_Dt" styleClass="input" size="45" maxlength="40"/></td>
</tr>
<tr align="center" valign="middle">
<td colspan="2">
<input name="return" type="button" class="button2" value="确定" onClick="btnFunction('testList', 'Test_add.do?dispatch=insertUser')">
<input name="return" type="submit" value="返 回" >
</td>
</tr>
</table>
</html:form>
</body>
</html>
解决方案 »
- <jsp:include file=“top.jsp”/>出错
- ConnectException: Connection refused: connect。。。。access denied
- 关于Acegi中URL拦截的问题?URL匹配中只能匹配?之前的?
- 网站架构问题
- 关于struts1.1动态Action Form的设置
- 求解决一个困扰很久的问题
- tomcat 点击start进度条读一半自动退出,求解
- strtus2项目
- mayanwei()请进-7
- 请问:如何在servlet中获得当前时间和当前日期?菜鸟问题,请见谅。
- Openflashchart导出图片过大不显示怎么办?
- 【JSF,ADF】点击导航栏相应按钮,动态改变当前页面的内容
<base href="request.getContextPath()"/>
btnFunction()这个方法名在哪了?