<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<style type="text/css">
    #userInfo  {
        margin-top: 90px;
        margin-left: 150px;
        width: 400px;
        display: block;
    }

</style>
<div id="userInfo">
     UserName is : <s:property value="user.username" />
     <br/>
     Email is :    <s:property value="user.email" />
    <s:if test="%{!isInfoEmpty(user.name)}">
     <br/>
    Name is :      <s:property value="user.name" />
    </s:if>
     <s:if test="%{!isInfoEmpty(user.surname)}">
     <br/>
    Surname is :   <s:property value="user.surname" />
    </s:if>
     <s:if test="%{!isInfoEmpty(user.phone)}">
     <br/>
     Phone is :    <s:property value="user.phone" />
    </s:if>
     <br/>
     Status is :   <s:property value="user.userStatus.title" />
     <br/>
     User type is :<s:property value="user.userType.title" />
</div>