| Author |
struts "index.title"
|
Peter Tilm
Greenhorn
Joined: Jun 10, 2003
Posts: 7
|
|
Hello, i'm new to the topic of servlets/web-applications. I just compiled the struts-example with eclipse (successfully). But if i install the WAR-file in tomcat and click the link of the struts-example i receive the following error message: javax.servlet.jsp.JspException: Missing message for key "index.title" org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:297) org.apache.jsp.index_jsp._jspx_meth_bean_message_0(index_jsp.java:163) org.apache.jsp.index_jsp._jspx_meth_html_html_0(index_jsp.java:105) org.apache.jsp.index_jsp._jspService(index_jsp.java:76) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) ---------------------------------- anyone a clue? thanks Peter
|
 |
Anand Ko
Ranch Hand
Joined: Dec 03, 2003
Posts: 79
|
|
In Struts display is done through JSP. I think in JSP, standard bean tld(tag library descriptors) is used. Eg: Display some text corresponding to this key (index.title). <bean:message key="index.title"/> So, this tag is expecting the value for this key "index.title". So just check the key (index.title) in resource bundle provided in the war. Hope i am right?
|
Anand<br />SCJP 1.4, SCWCD 1.4, SCEA 5.0(1/3)
|
 |
Jessica Sant
Sheriff
Joined: Oct 17, 2001
Posts: 4313
|
|
hey folks - I'm moving this to our Frameworks forum where theres lots of other Struts questions. So please continue the conversation there. Thanks!
|
 |
Eric Fletcher
Ranch Hand
Joined: Oct 26, 2000
Posts: 188
|
|
Originally posted by Anand Koppal: In Struts display is done through JSP. I think in JSP, standard bean tld(tag library descriptors) is used. Eg: Display some text corresponding to this key (index.title). <bean:message key="index.title"/> So, this tag is expecting the value for this key "index.title". So just check the key (index.title) in resource bundle provided in the war. Hope i am right?
Yep, you are right. You need a property defined in your resource bundle called "index.title", something like: index.title=Page Title Cheers, E
|
My theory of evolution is that Darwin was adopted. - Steven Wright
|
 |
Peter Tilm
Greenhorn
Joined: Jun 10, 2003
Posts: 7
|
|
there's already a index.title defined. index.title=MailReader Demonstration Application (Struts 1.1-dev) it's located in ApplicationResources.properties. Is it the right place to define it or where do i have to define index.title? thanks, Pete
|
 |
Calvin Yan
Greenhorn
Joined: Jun 25, 2003
Posts: 19
|
|
hi Peter, Did you config the path of properties file correctly? It should be expressed in struts-config.xml file, message-resource node.
|
I will do the best with what God gave me!
|
 |
 |
|
|
subject: struts "index.title"
|
|
|