Hi All,

In my package structure, I have package.properties file with the following
key value pair:

username=User Name
password=Password

In my simple login page: the form elements are defined with  a key look up..

<s:form action="login.action" method="POST" validate="true">
    <s:textfield name="username" key="username" />
    <s:password name="password" key="password"></s:password>
    <s:submit value="Login" name="login" />
  </s:form>

My action xml mappings are given below. The first action is a forward action
to the login page.

<action name = "login_input">
          <result>/login.jsp</result>
 </action>
<action name = "login" class="LoginAction" method="authenticate">
          <result name="input">/login.jsp</result>
          <result name="success">/login_success.jsp</result>
          <result name="error">/login.jsp</result>
</action>

When I try to load the login page like this:
http://localhost:8080/myApp/login_input.action, I don't see the messages
picked up from the package.properties. I see the localized messages if I
submit the application and when the validation fails.

What can I do to resolve the issue?

Thanks,

Kartik

http

Reply via email to