JSP值传递问题

来源:百度知道 编辑:UC知道 时间:2024/06/01 12:50:19
<%@ page language="java" contentType="text/html;charset=gb2312" %>
<jsp:useBean id="right_password" class="com.finace.bean.coin.right_password" scope="request">
</jsp:useBean>
<% String strID=new String();
strID=(String)session.getAttribute("user_id");

String password=new String();
String newpassword1=new String();
String newpassword2=new String();
password=request.getParameter("password");
newpassword1=request.getParameter("newpassword2");
newpassword2=request.getParameter("newpassword2");
right_password.uppassword("123","password","newpassword1");%>

错误提示com.finace.bean.coin.right_password.uppassword(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

穿来的值和BEAN中的参数类型都是STING类,请问是哪出了问题。谢谢
表单代码 <form id="for

你要问的是什么问题啊?

为什么表单的action没有值,你是怎么把页面跳转到返回信息的jsp页面的.

index.jsp中一个表单

<%@ page contentType="text/html; charset=GB2312" %>
//以下是你的代码加了action的值
<form id="form1" name="form1" method="post" action="index2.jsp">
<td >
原 密 码:
</td>
<td >
<input name="password" type="text" maxlength="15" class="tablesy3"/>
</td>
<td >
新 密 码:
</td>
<td >
<input name="newpassword1" type="text" maxlength="15" class="tablesy3"/>
</td>
<td >
确定密码:
</td>
<td >
<input name="newpassword2" type="text" maxlength="15" class="tablesy3"/>
<td >
<input name="submit" type="submit"