登录成功后不显示用户名呢?

来源:2-2 SSH-案例:登录功能代码实现

慕粉1602472105

2017-03-13 11:22

<%@ 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>


写回答 关注

1回答

  • 零谟02
    2017-03-14 11:51:44

    <%@ 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>

基于SSH实现员工管理系统之案例实现篇

SSH框架整合案例之实现篇,手把手带你实现员工管理系统

50209 学习 · 346 问题

查看课程

相似问题