2012/11/5 Srineel Mazumdar <smaz19...@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/

Reply via email to