struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gustavo Felisberto" <gustavo.felisbe...@wit-software.com>
Subject There is no Action mapped for namespace / and action name SERVICOS/.
Date Fri, 09 Jul 2010 13:45:30 GMT
Hello List,

 

I have a somewhat strange setup where my Struts 2 application is a proxy for
some other system.

In struts.xml I have:

 

 

<constant name="struts.action.extension"
value="action,,html,htm,css,js,png,gif,jpg,jpeg,flv,swf"/>

<action name="*" class="wit.vf.yorn.struts.actions.ProxyAction">

</action>

 

This action does not have any result because it implements
ServletResponseAware and ServletRequestAware. In my code I will analyze the
requested url and redirect to the proper location.

 

My problem is that if I access the system with a url like
http://server/context/SERVICOS/index.html or
http://server/context/SOME_RANDOM_URL/index.html my code gets called and
everything works ok. But if I use http://server/context/SERVICOS/ I get an
error that: There is no Action mapped for namespace / and action name
SERVICOS/.

 

How can I make it so that the requests with no file will get delivered to my
code?

 

Gustavo

 

-- 

Gustavo Felisberto.

WIT-Software S.A. 

Coimbra, Leiria, Lisboa, Porto (Portugal)

San Jose (California)

Phone: +351239801033

Web:  <http://www.wit-software.com> http://www.wit-software.com 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message