You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Timothy Stewart <Ti...@ingenix.com> on 2003/10/15 23:56:10 UTC

javax.servlet.ServletException: Missing message for key "index.ti tle"

I am trying to view the struts-example/index.jsp

when the page loads I get the
javax.servlet.ServletException: Missing message for key "index.title" 

I found the entry in ApplicationResources.properties that defines
index.title.
I verified that the ApplicationResources.properties is in the war

I check the documentation for the example and it says

If you check the application's web.xml, you will see how these objects are
loaded. The message resource is loaded by the application parameter to the
ActionServlet. When the ActionServlet initializes, it parses the
ApplicationResources.properties in the package folder into the default
message resource. If you change a message in the resource, and then reload
the application, it will appear throughout the application.

I looked at the web.xml and found no mention of the
ApplicationResources.properties.

  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml,
/WEB-INF/struts-config-registration.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>

I looked at the javadoc for the ActionServlet,  it mentions nothing about
the resource parameter for the ActionServlet.  

How does the Struts framework find these resources? Why is mine failing?

Thanks,
Timmy






This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

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


Re: javax.servlet.ServletException: Missing message for key "index.title"

Posted by Martin Gainty <mg...@hotmail.com>.
 <!--============================================================
   ACTION SERVLET
   =============================================================-->

   <servlet>
     <servlet-name>action</servlet-name>
     <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
     <init-param>
       <param-name>application</param-name>
       <param-value>resources.properties.messages</param-value>
     </init-param>
     <init-param>

-Martin Gainty

*Everything has a price..*

----- Original Message ----- 
From: "Timothy Stewart" <Ti...@ingenix.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, October 15, 2003 5:56 PM
Subject: javax.servlet.ServletException: Missing message for key
"index.title"


> I am trying to view the struts-example/index.jsp
>
> when the page loads I get the
> javax.servlet.ServletException: Missing message for key "index.title"
>
> I found the entry in ApplicationResources.properties that defines
> index.title.
> I verified that the ApplicationResources.properties is in the war
>
> I check the documentation for the example and it says
>
> If you check the application's web.xml, you will see how these objects are
> loaded. The message resource is loaded by the application parameter to the
> ActionServlet. When the ActionServlet initializes, it parses the
> ApplicationResources.properties in the package folder into the default
> message resource. If you change a message in the resource, and then reload
> the application, it will appear throughout the application.
>
> I looked at the web.xml and found no mention of the
> ApplicationResources.properties.
>
>   <servlet>
>     <servlet-name>action</servlet-name>
>     <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>     <init-param>
>       <param-name>config</param-name>
>       <param-value>/WEB-INF/struts-config.xml,
> /WEB-INF/struts-config-registration.xml</param-value>
>     </init-param>
>     <load-on-startup>1</load-on-startup>
>   </servlet>
>
> I looked at the javadoc for the ActionServlet,  it mentions nothing about
> the resource parameter for the ActionServlet.
>
> How does the Struts framework find these resources? Why is mine failing?
>
> Thanks,
> Timmy
>
>
>
>
>
>
> This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity to
> which it is addressed. If the reader of this e-mail is not the intended
> recipient or his or her authorized agent, the reader is hereby notified
that
> any dissemination, distribution or copying of this e-mail is prohibited.
If
> you have received this e-mail in error, please notify the sender by
replying
> to this message and delete this e-mail immediately.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

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


Re: javax.servlet.ServletException: Missing message for key "index.title"

Posted by Barry Volpe <st...@childrencare.com>.
Have not looked at the struts-example in awhile but
here is the entry for the web.xml file:


<init-param>
 <param-name>application</param-name>
  <param-value>ApplicationResources</param-value>
  </init-param>


Barry

----- Original Message ----- 
From: "Timothy Stewart" <Ti...@ingenix.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, October 15, 2003 2:56 PM
Subject: javax.servlet.ServletException: Missing message for key
"index.title"


> I am trying to view the struts-example/index.jsp
>
> when the page loads I get the
> javax.servlet.ServletException: Missing message for key "index.title"
>
> I found the entry in ApplicationResources.properties that defines
> index.title.
> I verified that the ApplicationResources.properties is in the war
>
> I check the documentation for the example and it says
>
> If you check the application's web.xml, you will see how these objects are
> loaded. The message resource is loaded by the application parameter to the
> ActionServlet. When the ActionServlet initializes, it parses the
> ApplicationResources.properties in the package folder into the default
> message resource. If you change a message in the resource, and then reload
> the application, it will appear throughout the application.
>
> I looked at the web.xml and found no mention of the
> ApplicationResources.properties.
>
>   <servlet>
>     <servlet-name>action</servlet-name>
>     <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>     <init-param>
>       <param-name>config</param-name>
>       <param-value>/WEB-INF/struts-config.xml,
> /WEB-INF/struts-config-registration.xml</param-value>
>     </init-param>
>     <load-on-startup>1</load-on-startup>
>   </servlet>
>
> I looked at the javadoc for the ActionServlet,  it mentions nothing about
> the resource parameter for the ActionServlet.
>
> How does the Struts framework find these resources? Why is mine failing?
>
> Thanks,
> Timmy
>
>
>
>
>
>
> This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity to
> which it is addressed. If the reader of this e-mail is not the intended
> recipient or his or her authorized agent, the reader is hereby notified
that
> any dissemination, distribution or copying of this e-mail is prohibited.
If
> you have received this e-mail in error, please notify the sender by
replying
> to this message and delete this e-mail immediately.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>



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