版主和各位高手请帮忙

03-03-17 nameisaj

public class Ht{

public static String aa;}

1.jsp中赋值

<%

Ht.aa="USERNAMEdsfadsf";

%>

然后在

2.jsp中调用

<%=Ht.aa%>

为什么aa的值是USERNAMEdsfadsf???

难道aa的变量是不会消失的???

nameisaj
2003-03-17 14:18

怎么我的代码不能发表呢??

1.jsp

Ht.aa="USERNAMEdsfadsf";

2.jsp

out.print(Ht.aa);