You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anjib Mulepati <an...@hotmail.com> on 2012/03/21 20:47:24 UTC
{S 1.3.8} action error
I am getting error
javax.servlet.jsp.JspException: Cannot find global ActionForward
for name Login.do
I have following configuration.
index.jsp
<logic:forward name="Login.do" />
struts-config
<action path="/Login"
type="org.apache.struts.actions.ForwardAction"
parameter="loginPage"
scope="request" />
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S 1.3.8] action error
Posted by Łukasz Lenart <lu...@googlemail.com>.
2012/3/22 Anjib Mulepati <an...@hotmail.com>:
> In struts-config.xml I put global forwarding as
> <global-forwards>
> <forward name="Login.do" path="loginPage" />
> </global-forwards>
Login not Login.do, path should be /Login.do
Could you show how did you configure action Login ?
Regards
--
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S 1.3.8] action error
Posted by Anjib Mulepati <an...@hotmail.com>.
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<an...@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: {S 1.3.8} action error
Posted by Łukasz Lenart <lu...@googlemail.com>.
2012/3/21 Anjib Mulepati <an...@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
--
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org