what is in struts <global-forwards>?

Hi guys,

I am now recoding my web app with struts framwork because i cant solve the problem of recursive loop at front controller. Anyway here is my question about struts:

In my struts-config.xml i have the following line:

<global-forwards>

<forward name="main" path="/index.jsp"/>

<forward name="fancialDisplay" path="/display.jsp">

</global-forwards>

<action-mappings>

<!-- <action path="/Welcome" forward="/welcomeStruts.jsp"/> -->

<action path="/financial" type="com.core.servlet.Financial" />

<action path="/financialProcess" forward="com.core.servlet.FinancialProcessor" />

</action-mappings>

Logically, the display.jsp can be only used to display the output of financial servlet's methods. However, acording to this config, user can request the display.jsp page without going through the financial servlet. Is there anyway to enforce the application flow in this config file?

Hope to get some help

Thai

Message was edited by:

lnthai2002

[1358 byte] By [lnthai2002a] at [2007-11-27 8:29:46]
# 1

Try this.

Instead of global forwards. forward specific to the action

<action path="/financial""

type="com.core.servlet.Financial"

name="actionForm">

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

</action>

HTH

R@njita at 2007-7-12 20:20:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...