登錄成功后不顯示用戶名呢?
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!doctype html>
<html>
<head>
<style type="text/css">
.div1{ margin-top:50px; margin-left:600px; font-size:14px; color:white}
</style>
</head>
<body bgcolor="#0099FF">
<div class="div1">
歡迎您:<a><s:property value="#session.existEmployee.username"/></a>
</div>
</body>
</html>
2017-03-14
<%@ page language="java" contentType="text/html; charset=UTF-8"
?? ?pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
.div1 {
?? ?margin-top: 30px;
?? ?margin-left: 600px;
?? ?font-size: 14px;
?? ?color: white
}
</style>
</head>
<body bgcolor="#0099FF">
?? ?<div class="div1" align="right">
?? ??? ?歡迎您:
?? ??? ?<s:property value="#session.existEmployee.username" />
?? ?</div>
</body>
</html>