怎么在Action中读取表单上输入框的值,急用,在线等!!thx!! 假设你的form是LoginForm,而且有getUsername()方法;String username=((LoginForm) form).getUsername(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 因为没有参数,可以用getParameter()吗?<form method="post" action="Login.do"><input id="username" type="text"><input type="password" id="password"></form>怎么取得username,password的值在Action里 同意 shidu(十度)的说法你因该给你的form定义一个对应的FormBean,这个bean中应该定义对应的getUsername()和getPassword(),然后在action中用 shidu(十度)说的方法取值。 如果没指定form 的name 那么在struts-config.xml中ActionMapping与此formAction相关的配置应有 name="Actionform的名字" ,否则就会出此错。 用request.getParameter()完全可以 filter过滤问题 WEB连接ORACLE出错 java如何获得图片文件的大小,不是宽高是filesize Extjs JsonStore 有没有 root属性 初学JSF 一个刷新的问题~~很痛苦!!!!!!! 如何用jbuilder发布一个JSP网站到tomcat4.1 150分请教一个日期的算法详情看里面~ 为什么刷新页面会将中文变成乱码? apache 整合tomcat 访问报404 找不到页面 java.sql.SQLException: ORA-00600: 内部错误代码,参数: [ttcgcshnd-1], 时间相减的问题
<form method="post" action="Login.do">
<input id="username" type="text">
<input type="password" id="password">
</form>
怎么取得username,password的值在Action里