Hii  Lukasz,

Yeah know 404 errors Is your java code is not finding a your code .

But I try  to solve this issue so many time but same issue accrues.


This my struts.xml


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd";>

<struts>

                <package name="user" namespace="/User" extends="struts-default">
                                <action name="Login">
                                                <result>pages/login.jsp</result>
                                </action>
                                <action name="Welcome" 
class="com.hit.user.action">
                                                <result 
name="SUCCESS">pages/welcome_user.jsp</result>
                                </action>
                </package>

</struts>


This is my web.xml

<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd"; >

<web-app>
                <display-name>Struts 2 Web Application</display-name>

                <filter>
                                <filter-name>struts2</filter-name>
                                <filter-class>
                
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
                </filter-class>
                </filter>

                <filter-mapping>
                                <filter-name>struts2</filter-name>
                                <url-pattern>/*</url-pattern>
                </filter-mapping>

</web-app>

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Lukasz Lenart<mailto:lukaszlen...@apache.org>
Sent: Thursday, October 13, 2022 4:22 PM
To: Struts Users Mailing List<mailto:user@struts.apache.org>
Subject: Re: Can anyone help to run my first' code in struts2

czw., 13 paź 2022 o 12:03 Hitesh Fulchand Jaiswar
<hitesh.jais...@csinfocomm.com> napisał(a):
> Can anyone help to run my first' code in struts2
> My code is perfect but it's not working properly i don't know why can you 
> help me .  Error is 404

404 means an http resource was not found (a common http error code,
not related to Struts), so please share struts.xml and web.xml and
what request do you perform


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