struts2 在jsp的from表单交付失效,不进入action

struts2 在jsp的from表单提交失效,不进入action
本帖最后由 ProgrammingPower 于 2013-09-22 13:02:17 编辑
from头如下

<form action="/MyApply/startFlow.action" method="post">
我一点提交 浏览器不进入struts2的action 而是在浏览器地址栏显示一行这个
http://localhost:8080/MyApply/itheima/customer/process/startFlow.jsp?courseId=1&username=%E6%9B%B9%E5%AE%87

http://localhost:8080/MyApply/itheima/customer/process/startFlow.jsp是我这个from所在JSP的路径
后面是我提交的两个属性 courseid username  可是怎么一点击提交 不进入action   反而感觉跟GET提交了
直接跑到了浏览器上面了呢? 求大神

代码如下
<form action="/MyApply/startFlow.action" method="post">
    
     <table>
     <tr>
<td width="130px" align="right" height="45px">请选择您的意向课程:</td>
<td>

   <input type="radio" name="courseId" value="1" onBlur="checkCourse()">高数&nbsp;&nbsp;&nbsp;

   <input type="radio" name="courseId" value="3" onBlur="checkCourse()">数据结构&nbsp;&nbsp;&nbsp;

   <input type="radio" name="courseId" value="4" onBlur="checkCourse()">运筹学&nbsp;&nbsp;&nbsp;
<input type="hidden" name="username" value="${sessionScope.user.username}" /> 
   <span id="s1" style="color: red;padding-left: 10px;"></span>
</td>
</tr>
<tr>
<td colspan="2" height="80px;">
<div style="background:url('../../images/customer/pic_button01.gif') no-repeat left top;width:110px; height:42px; padding-left:10px;">
<input type="submit" value="提交" style="outline:0 none; border:0 none; background:url('../../images/customer/pic_button01.gif') no-repeat right top;width:120px; height:42px;font-size:20px;color:#FFF;font-weight: bold;cursor:hand" />
    </div>
</td>
</tr>
</table>
</form>



struts.xml文件内容如下

<package name="jbpm" namespace="/" extends="struts-default">
    <action name="startFlow" class="com.my.apply.action.FlowAction" method="startFlow">
    <result>/my/customer/process/applyIndex.jsp</result>
    <result name="repeat">/repeat.jsp</result>
    </action>

文章评论

struts2 在jsp的from表单交付失效,不进入action
为啥Android手机总会越用越慢?
struts2 在jsp的from表单交付失效,不进入action
60个开发者不容错过的免费资源库
struts2 在jsp的from表单交付失效,不进入action
初级 vs 高级开发者 哪个性价比更高?
struts2 在jsp的from表单交付失效,不进入action
Java 与 .NET 的平台发展之争
struts2 在jsp的from表单交付失效,不进入action
Web开发者需具备的8个好习惯
struts2 在jsp的from表单交付失效,不进入action
如何区分一个程序员是“老手“还是“新手“?
struts2 在jsp的from表单交付失效,不进入action
“肮脏的”IT工作排行榜
struts2 在jsp的from表单交付失效,不进入action
鲜为人知的编程真相
struts2 在jsp的from表单交付失效,不进入action
如何成为一名黑客
struts2 在jsp的from表单交付失效,不进入action
科技史上最臭名昭著的13大罪犯
struts2 在jsp的from表单交付失效,不进入action
写给自己也写给你 自己到底该何去何从
struts2 在jsp的from表单交付失效,不进入action
亲爱的项目经理,我恨你
struts2 在jsp的from表单交付失效,不进入action
“懒”出效率是程序员的美德
struts2 在jsp的from表单交付失效,不进入action
不懂技术不要对懂技术的人说这很容易实现
struts2 在jsp的from表单交付失效,不进入action
Java程序员必看电影
struts2 在jsp的from表单交付失效,不进入action
漫画:程序员的工作
struts2 在jsp的from表单交付失效,不进入action
程序员眼里IE浏览器是什么样的
struts2 在jsp的from表单交付失效,不进入action
当下全球最炙手可热的八位少年创业者
struts2 在jsp的from表单交付失效,不进入action
为什么程序员都是夜猫子
struts2 在jsp的from表单交付失效,不进入action
老程序员的下场
struts2 在jsp的from表单交付失效,不进入action
中美印日四国程序员比较
struts2 在jsp的from表单交付失效,不进入action
程序员必看的十大电影
struts2 在jsp的from表单交付失效,不进入action
程序员都该阅读的书
struts2 在jsp的from表单交付失效,不进入action
总结2014中国互联网十大段子
struts2 在jsp的from表单交付失效,不进入action
团队中“技术大拿”并非越多越好
struts2 在jsp的from表单交付失效,不进入action
Web开发人员为什么越来越懒了?
struts2 在jsp的from表单交付失效,不进入action
一个程序员的时间管理
struts2 在jsp的from表单交付失效,不进入action
每天工作4小时的程序员
struts2 在jsp的from表单交付失效,不进入action
程序员最害怕的5件事 你中招了吗?
struts2 在jsp的from表单交付失效,不进入action
10个帮程序员减压放松的网站
struts2 在jsp的from表单交付失效,不进入action
旅行,写作,编程
struts2 在jsp的from表单交付失效,不进入action
聊聊HTTPS和SSL/TLS协议
struts2 在jsp的from表单交付失效,不进入action
我是如何打败拖延症的
struts2 在jsp的from表单交付失效,不进入action
编程语言是女人
struts2 在jsp的from表单交付失效,不进入action
程序员的样子
struts2 在jsp的from表单交付失效,不进入action
程序员应该关注的一些事儿
struts2 在jsp的from表单交付失效,不进入action
程序员的一天:一寸光阴一寸金
struts2 在jsp的from表单交付失效,不进入action
做程序猿的老婆应该注意的一些事情
struts2 在jsp的from表单交付失效,不进入action
我的丈夫是个程序员
struts2 在jsp的from表单交付失效,不进入action
老美怎么看待阿里赴美上市
struts2 在jsp的from表单交付失效,不进入action
10个调试和排错的小建议
struts2 在jsp的from表单交付失效,不进入action
5款最佳正则表达式编辑调试器
struts2 在jsp的from表单交付失效,不进入action
程序员的鄙视链
struts2 在jsp的from表单交付失效,不进入action
要嫁就嫁程序猿—钱多话少死的早
struts2 在jsp的from表单交付失效,不进入action
看13位CEO、创始人和高管如何提高工作效率