I still couldn't get this right may be because I am using tiles. What I am looking for is when my application start I want to load the login page. So for this I have tile definition for login page
<definition name="loginPage" extends=".frontLayout" >
<put name="title"  value=":: Login Page ::" />
<put name="header" value="/new_pages/header.jsp" />
<put name="content"   value="/new_pages/login.jsp" />
<put name="footer" value="/new_pages/footer.jsp" />
</definition>

I have index.jsp as welcome file in web.xml
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

In index.jsp file I have
<logic:forward name="Login.do" />

In struts-config.xml I put global forwarding as
<global-forwards>
<forward name="Login.do" path="loginPage" />
</global-forwards>

Now when I start my application I am getting 404 error.

So does that mean path can't be tile and must be jsp page?
If so then how can I solve this?

On 3/21/2012 3:53 PM, Łukasz Lenart wrote:
2012/3/21 Anjib Mulepati<anji...@hotmail.com>:
index.jsp
<logic:forward name="Login.do" />
You must specify global-forward [1] and use its name like toMduleB [2]
not Login.do

<global-forwards>
     <forward       name="toModuleB"
         contextRelative="true"
                    path="/moduleB/index.do"
                redirect="true"/>
    ...
</global-forwards>

[1] 
http://struts.apache.org/1.x/userGuide/configuration.html#module_config-switching
[2] http://struts.apache.org/1.x/struts-taglib/tagreference.html#logic:forward


Regards


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

Reply via email to