You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Antonio Weber <an...@akt-infosys.de> on 2001/09/04 15:08:20 UTC

Confused about everything ...

Hi !!

I get an ServletException on my bea with this message 

Cannot retrieve mapping for action /LookupAction
Must I add in the web-xml the class as an servlet ??
I don't think so but no I'm so confused ...

In my struts-config.xml is this entry:

<action path="/LookupAction" type="lookup.servlets.LookupAction"
name="LookupActionForm"  input="/lookup/lookups.jsp"></action>
   

in my web.xml I have for the <servlet-name>action
a *.do mapping...
the form-tag looks like this:

<form action="/LookupAction.do" ...

where is my fault ? whats going wrong ?
Please help me !!!!

Re: Confused about everything ...

Posted by Ted Husted <hu...@apache.org>.
The one other thing to check is for something like this in your web.xml
where the Struts servlet is loaded

    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>

If your struts-config.xml is modelled after most of the examples, it
probably has this in it

    <action
        path="/admin/Reload"
        type="org.apache.struts.actions.ReloadAction"/>

if so, try /admin/reload.do and see if you get an OK on the screen. Then
try the other URI again.

You might also try (this part of) the application under Tomcat or Resin,
to be sure it is not a WegLogic deployment issue.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


Antonio Weber wrote:
> 
> Hi !!
> 
> I get an ServletException on my bea with this message
> 
> Cannot retrieve mapping for action /LookupAction
> Must I add in the web-xml the class as an servlet ??
> I don't think so but no I'm so confused ...
> 
> In my struts-config.xml is this entry:
> 
> <action path="/LookupAction" type="lookup.servlets.LookupAction"
> name="LookupActionForm"  input="/lookup/lookups.jsp"></action>
> 
> 
> in my web.xml I have for the <servlet-name>action
> a *.do mapping...
> the form-tag looks like this:
> 
> <form action="/LookupAction.do" ...
> 
> where is my fault ? whats going wrong ?
> Please help me !!!!