You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kunal H. Parikh" <ku...@carsales.com.au> on 2004/01/11 02:27:03 UTC

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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


SOLVED --> RE: Application Module Configuration

Posted by "Kunal H. Parikh" <ku...@carsales.com.au>.
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:kunalp@carsales.com.au] 
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org