This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form page issue with validation message

 
Joseph Smithern
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Struts login that works great with my Tomcat 5.5 container.

The only issue I have is when a bad username is entered it gives me this message:
???en_US.Not valid User Name.???

It should only show this without the bolded part:
Not valid User Name.

I can get rid of the ???en_US...??? part when the username is valid on the action success page using this Strut bean element:


Please advise How I can do the same for my login form when someone enters an invalid username?

I cant seem to put in a <bean:message key="errors.name.required" /> in the form page. Here is what I have on my form page:


My ApplicationResources file:


Please advise.
[ November 26, 2006: Message edited by: Joseph Smithern ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even though you haven't shown it to us, I suspect the problem is in what you put in the validation.xml file. make sure the value you put as arg0 is a key that exists in your ApplicationResources.properties file. Example:


In this example prompt.username must exist as a key in the ApplicationResources.properties file.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic