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

Reply via email to