-
September 27th, 2013, 04:58 AM
#1
struts2 message resources not loaded
Hello to all,
I have a problem with loading a resource file for a written action to struts 2.
Basically I put together action and resource files with the same name, but this does not load.
Below is the structure of the site:
src/package/LoginAction.java
src/package/LoginAction.properties
Jsp
<s:form action="login.action" method="post" validate="true">
<%-- <s:i18n name="LoginAction"> --%>
<s:textfield name="username" key="label.username" size="20" />
<sassword name="password" key="label.password" size="20" />
<s:submit method="execute" key="label.login" align="center" />
<%-- </s:i18n> --%>
</s:form>
The messages do not appear, either by using the tag "s:i18n" that without
Where am I doing wrong?
In the classpath I also have a global.properties mapped in struts.xml that is properly loaded.
Thanks to all
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|