Hii sir ,
Can you send me anyone example code of struts2 for my understanding for me . ________________________________ From: Lukasz Lenart <lukaszlen...@apache.org> Sent: Thursday, October 13, 2022 6:26 PM To: Struts Users Mailing List <user@struts.apache.org> Subject: Re: Can anyone help to run my first' code in struts2 czw., 13 paź 2022 o 14:43 Hitesh Fulchand Jaiswar <hitesh.jais...@csinfocomm.com> napisał(a): > > Hii sir , > > > This url I am seeing In my program > http://localhost:8080/Struts2Example/ You are missing support for default namespace "/" and as far as I see you do not have neither <welcome-file-list> [1] defined in your web.xml nor <default-action-ref/> [2] in struts.xml I suggest adding adding a package supporting default namespace with redirect to /User/Welcome action <package name="default" namespace="/" extends="struts-default"> <default-action-ref name="index"> <action name="index"> <result name="actionRedirect">/User/Welcome</result> </action> </package> <package name="user" namespace="/User" extends="struts-default"> ... [1] https://www.w3schools.blog/welcome-file-list-in-web-xml [2] https://struts.apache.org/core-developers/action-configuration#action-default Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org