<jsp:useBean id="loginBean" class="javabean.User" scope="application"/>
<html>
<head>
<title>doLogin</title>
</head>
<body>
<jsp:setProperty name="loginBean" property="*" />
<!-- 使用getProperty获取 -->
uid1:<jsp:getProperty name="loginBean" property="uid" />
uname1:<jsp:getProperty name="loginBean" property="uname" /><br>
<!-- 使用传统方式获取 -->
uid2:<%=loginBean.getUid() %>
uname2:<%=loginBean.getUname() %><br>

我也获取不到,老师能获取的我获取不到
哪位大神知道。如果用page, session, request都能获取到。只有application不能获取