I have created a struts2 login page, wherein I have all basic components necessary for login. I'm using struts2 text tag for a label. Below is my login page code snippet.
<body>
<h2>Demo - Login</h2>
<s:actionerror />
<s:form action="login.action" method="post">
<s:textfield name="username" key="label_username" size="20" />
<s:password name="password" key="label_password" size="20" />
<s:submit name="signIn" key="label_login" align="center" />
<s:text name="name_msg"/>
<s:submit name="signUp" key="label_signUp"></s:submit>
</s:form>
</body>
I always see that text(New to Demo ?) is displayed after heading, as shown in below Image. There text is read from MessageBundle. I tried by giving some direct text value, despite of referring to resource bundle, even though same result. Where I was wrong.