Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6033969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:33:39+00:00 2026-05-23T05:33:39+00:00

struts.xml <struts> <!– Configuration for the default package. –> <package name=default extends=struts-default> <action name=HelloWorld

  • 0

struts.xml

  <struts>
<!-- Configuration for the default package. -->
<package name="default"  extends="struts-default">
     <action name="HelloWorld" class="vaannila.HelloWorld">
  <result name="SUCCESS">/success.jsp</result>
 </action>
 </package>
</struts>

web.xml

 <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>

index.jsp

  <%@taglib uri="/struts-tags" prefix="s" %>
  <html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Hello World</title>
  </head>
   <body>
    <s:form action="HelloWorld" >
        <s:textfield name="userName" label="User Name" />
        <s:submit />
    </s:form>
</body>

success.jsp

HelloWorld.java

   package vaannila;


public class HelloWorld {

private String message;

private String userName;

public HelloWorld() {
}


  public String execute()  {



    setMessage("Hello " + getUserName());
    return "SUCCESS";
}

public String getMessage() {
    return message;
}


public void setMessage(String message) {
    this.message = message;
}


public String getUserName() {
    return userName;
}


public void setUserName(String userName) {
    this.userName = userName;
}}

error message i am getting is

HTTP Status 404 – There is no Action mapped for action name HelloWorld.

i am using netbeans ide 6.8

struts.xml ,web.xml file is in WEB-INF directory .
Source Package->vannilla->HelloWorld is the action location of action class.

can anyone help me

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:33:40+00:00Added an answer on May 23, 2026 at 5:33 am

    it seems problem in web.xml file try to change filter class to filter dispatcher then try.. i hope it will work fine.

    struts2

       <filter-class>org.apache.struts2.dispatcher.FilterDispatcher </filter-class>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Have following in my struts.xml file <action name=ProductVerification class=com.frontend.ProductVerification> <result name=success>/jsp/product_verification.jsp</result> <result name=input>/jsp/product_verification.jsp</result>
I have this configuration in struts.xml <action name=updateAction class=it.myApp.action.ajax.UpdateActionAction> <result name=success type=json/> <result name=error
I've below entries in struts.xml <action name=download method=download class=com.pqr.myaction> <result name=error type=redirectAction>callme</result> </action> <action
If I have the following struts.xml config: <action name=input> <result>/jsp/input.jsp</result> </action> <action name=result> <result>/jsp/result.jsp</result>
<action name=userLogin class=com.cc.ad.web.common.UserLoginAction> <result name=error>/user-login.jsp</result> <result name=redirect type=redirect>${retUrl}</result> <result name=customerRedirect type=redirect>${customerRedirect}</result> <result name=supplierRedirect type=redirect>${supplierRedirect}</result>
I am using <s:form action=someAction> my struts.xml contains <action name=someAction class=com.test.testaction.getValue method=getValuedemo> <result name=success
I have some code within struts.xml like: <action name=viewApplicationPDF class=com.xxx.abc.web.action.XApplicationPDFAction> <result name=success>/WEB-INF/templates/xApplication.jsp</result> </action> I
I have the following action declared in my struts.xml: <action path=/updateAccountInfo type=org.myCompany.UpdateAccountAction name=myAccountForm scope=session
I have a jsp page and struts 2 Action class . When I submit
This is my struts.xml <struts> <include file=example.xml/> <constant name=struts.devMode value=true /> <package name=register namespace=/register

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.