struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Issue with running Struts2 project
Date Mon, 05 Nov 2012 19:27:43 GMT
2012/11/5 Srineel Mazumdar <smaz19584@gmail.com>

> Hi,
>
> Also I would like to add :
>
> The url now I am using is
>
> http://localhost:8081/NewPetstore/shop/index.action.
>
> Now the error is coming as : *There is no Action mapped for namespace /shop
> and action name index*
> *
> *
> *In struts.xml : *
> *
> *
> <package name="newpetstore" extends="struts-default" namespace="/shop">
> *
> *
> <action name ="index" class ="com.home.practice.shop.DoNothingAction">
> <result name="success">/WEB-INF/jsp/struts/index.jsp<result/>
> </action>
>
> Seems I am making a silly mistake somewhere but I am unable to figure in
> out. Please help.
>

Take a look on that [1] as you can see class should be named as spring id
which is doNothingAction

[1] http://struts.apache.org/2.x/docs/spring-and-struts-2.html


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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