session注册是否只能注册字符串型?我用整形就注册不进?在线
zzgl 2003-08-12 01:58:25 以下是代码,先取出数据。
<%@ page session="true"%>
String UName = rs.getString("UName");
int UType = rs.getInt("UType");
都可以显示。
out.println(UName);
out.println(UType);
注册
session.setAttribute("SUName", UName);
session.setAttribute("SUType", UType);
SUName注册进去了, UType注册就出现错误。
救救兄弟。
QQ:4757010