I am making use of the Struts2 property tag to get the user name like this.
<div class="MyStyle">
<p> Hi! <s:property value="#session.firstName"/></p>
</div>
Now I want this div to take the style defined in class MyStyle, but it wont take any style. What can be done regarding this?
EDIT:
I am using bootstrap css. The class ="MyStyle"
was just to make the question simple. The html source code generated for the page looks like this
<ul class="nav navbar-nav navbar-right"> <li> Hi! Akash </li> <li><a href="/Project/logout.action"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul>