aspose file tools*
The moose likes Struts and the fly likes LookupDispatchAction - Missing message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "LookupDispatchAction - Missing message" Watch "LookupDispatchAction - Missing message" New topic
Author

LookupDispatchAction - Missing message

hal arres
Ranch Hand

Joined: Jan 10, 2003
Posts: 30
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

Joined: Jul 04, 2003
Posts: 1312
make sure ApplicationResourcesde.properties file in de.prop.res package ???


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
hal arres
Ranch Hand

Joined: Jan 10, 2003
Posts: 30
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

Joined: Jul 12, 2004
Posts: 995
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


    blog - InfoQ.com
    hal arres
    Ranch Hand

    Joined: Jan 10, 2003
    Posts: 30
    Thank you,

    I found it
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: LookupDispatchAction - Missing message
     
    Similar Threads
    Problems with multiple-bottons on one form
    LookupDispatchAction with link, Please Help Me!!!
    LookupDispatchAction - Request does not contain handler parameter name
    LookupDispatchAction + html:cancel
    LookupDispatchAction Query