Re: Issue with localization: Messages not picked up from properties file

2010-04-27 Thread Wes Wannemacher
Kartik,

First off, your first mapping doesn't "forward" it dispatches to the
login.jsp page. If the validation file you have created is picked up
when the user hits that url, then you are going to see the validation
errors. Second, in your form tag, I would remove the '.action' from
the action attribute. Also, to make your page flow better, i would
change the mapping as follows -


          /login.jsp
          /login_success.jsp
          /login.jsp


Then, change your form tag so that it looks like this -

 wrote:
> 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..
>
> 
>    
>    
>    
>  
>
> My action xml mappings are given below. The first action is a forward action
> to the login page.
>
> 
>          /login.jsp
>  
> 
>          /login.jsp
>          /login_success.jsp
>          /login.jsp
> 
>
> 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
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Issue with localization: Messages not picked up from properties file

2010-04-21 Thread Kartik Kumar
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..





  

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


  /login.jsp
 

  /login.jsp
  /login_success.jsp
  /login.jsp


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