Struts - Can anyone tell me what this URL is doing?

Hi

In a Struts framework, we normally have a class being mapped in the action tag, for example, in the struts-config.xml, we can have the following

<action-mappings>

<action

path="/mapping10"

type="mypackage.MyMappingAction10"

name="MappingForm10"

scope="request"

validate="false"

input="/Error.jsp">

<forward name="success" path="/MappingOut10.jsp" />

</action>

</action-mappings>

that means, if we type something like

http://...../mapping/maping10.do

it would go to the MyMappingAction10 execute method and do whatever it's supposed to do.

But the other day I come across a URL path which looks something like this....

http://...../mypackage/route.logging.do

I have been trying to figure out how/why it can get executed because normally, as you can see from the above example, it's only forward10.do (something.do) but in this case, it's route.logging.do (something.something.do) how can I actually find out what program (class) this actually maps to? How does this work?

I understand that my information might not be sufficient, but I would still appreciate anyone could offer me some pointers to find out what's happening. Thx.

Sheep

[1299 byte] By [SheepSheepa] at [2007-11-27 7:56:43]
# 1
Push..
SheepSheepa at 2007-7-12 19:38:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

From what you have given in the code, with struts the only place the requets to /mapping10.do can end up is MappingOut10.jsp.

You are saying it ends up somewhere else?

Easiest way to find it would be to do a global search through your code for the text "route.logging.do" It must be specified somewhere.

It is possible your action is creating an ActionForward on the fly rather than using the one in the action mapping - so check the MyMappingAction10 class execute method to see what it returns, and where it gets that return value from.

Is there a global actionForward defined for the route.logging maybe?

Hope this helps,

evnafets

evnafetsa at 2007-7-12 19:38:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...