Hi All!

I solved this problem myself.

Being new to struts, I was attempting to use /action instead of *.do as
the URL pattern.

Thanks all, anyway!

Kunal

-----Original Message-----
From: Kunal H. Parikh [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 11 January 2004 12:27
To: 'Struts Users Mailing List'
Subject: Application Module Configuration

Hi All!

I am attempting to setup an application module named "my-module" as
follows. However, whenever I send a request as 
http://127.0.0.1/my-app/my-module/action/index/
I get a 404 page returned.

Now, when I send a request to the default module, i.e.
http://127.0.0.1/my-app/action/index/
the appropriate jsp page is displayed.

Also, when I just do http://127.0.0.1/my-app/my-module/action/, I still
get a 404 error, whilst, from my understanding, I should get a 400
error.

The following is the additional configuration I have added for my new
application module.

=============== web.xml ===============
...
<servlet>
        <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <init-param>
                <param-name>config/my-module</param-name>
        
<param-value>/WEB-INF/struts-config-my-module.xml</param-value>
        </init-param>
...
</servlet>
...
=============== web.xml ===============

Is there anything else that I need to do ?

Thanks in advance (TIA),

Kunal



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to