因为输入了汉字,要进行转换,需要采用转换后的值给javabean的成员变量赋值,应该怎么写呢?例如:
比如:
<%
            productName=request.getParameter("productName");
            byte  b[]=productName.getBytes("ISO-8859-1");
            productName=new String(b);
%><jsp:useBean id="ProductBean" class="org.netbeans.Web.ProductBean" scope="page">
     
    <jsp:setProperty name="ProductBean"  property="productName"  value or param(这里应该怎么写才能得到上面变量的数据,而不是表单中传过来的缺省值哟) }" />
                       
 </jsp:useBean>