dcsimg
html hi all i am getting problem during accessing a resource file in struts. /html
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, October 8, 2004 07:18 AM

Using Struts exemples, I got the message error javax.servlet.ServletException: Missing message for key "form1.emailPrompt" my struts-config.xml explains resource file as given below null="true" /> caption.properties file is in web-infclasses directory looks like drum.buttonLabel = Sign Me Up! drum1.title="New Account Registration" form1.emailPrompt=Email Address form.passwordPrompt=Password form.emailError=Illegal Email Address form.passwordError=Illegal Password form.passwordLength=six and jsp page i want to access the key value from property f   More>>


Using Struts exemples, I got the message error
javax.servlet.ServletException: Missing message for key "form1.emailPrompt"



my struts-config.xml explains resource file as given
below



null="true" />


caption.properties file is in web-infclasses directory
looks like



drum.buttonLabel = Sign Me Up!
drum1.title="New Account Registration"
form1.emailPrompt=Email Address
form.passwordPrompt=Password


form.emailError=Illegal Email Address
form.passwordError=Illegal Password
form.passwordLength=six


and jsp page i want to access the key value from property file but it gives error as explained above



i am using tomcat 5.0.16

   <<Less

Re: html hi all i am getting problem during accessing a resource file in struts. /html

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, October 8, 2004 12:39 PM

well, can you get the other keys besides that one? or does it fail to find any of them? (different problems, different solutions)


the caption.properties file needs to be in "WEB-INF/classes" (uppercase). Is it readable, by the user running Tomcat?


also your example doesn't show newlines between the keys; I assume your file really does have one key per line though?
About | Sitemap | Contact