Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LookupDispatchAction - Missing message

 
hal arres
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using LookupDispatchAction but I got the following Exception and I can't find the bug. I hope someone of you can help me.

This ist the Exception:
javax.servlet.ServletException: Missing message for key "button.back"
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:845)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:778)
org.apache.jsp.search_jsp._jspService(search_jsp.java:101)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


This is the code:


I hope someone of you can help me.

mfg arres
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make sure ApplicationResourcesde.properties file in de.prop.res package ???
 
hal arres
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I checked it and it is in the package.
It is in the directory ".../classes/de/prop/res/"

When I move the file to the drectory ".../classes/" the Exception doesn't occur. Why got I an Exception when the property-file is in an package?
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Questions:
  • in the 1st case (the resource is in a package like directory) shouldn't you use instead de/prop/res/ApplicationResource
  • in the 2nd case (the resource is in the root class directory): the name of the resource is indeed de.prop.re.ApplicationResource or just ApplicationResource?


  • I hope this 2 questions will help you find out the solution

    ./pope
     
    hal arres
    Ranch Hand
    Posts: 30
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you,

    I found it
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic