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 9080713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:08:13+00:00 2026-06-16T20:08:13+00:00

What is the attribute method in the action tag in the struts.xml? I have

  • 0

What is the attribute method in the action tag in the struts.xml? I have seen a lot of usage cases of this attribute but I don’t understand how it changes the behaviour?

For example I see nothing happens when I change the following method attribute or I remove it. I tried execute and input and {1}. Why sometimes I see {1} for this attribute of struts.xml files.

<action name="ShowAddItemPage" method="input" class="action.clerk.ShowAddItemPage">
  <result name="success" type="tiles">addItem</result>
  <result name="generalError" type="tiles">clerkGeneralError</result>
  <result name="input" type="tiles">addItem</result>
</action>
  • 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-06-16T20:08:14+00:00Added an answer on June 16, 2026 at 8:08 pm

    According to this the attribute method in action tag is used to specify the method name that will handle the action-logic when the corresponding action is called.

    The behavior is as: When any action is called, struts.xml is looked up for that action. If method attribute is specified then that method will be executed in the action class, if no method attribute is specified then by default execute() is called.
    And If there is no execute method and no other method specified in the configuration the framework will throw an exception.

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

Sidebar

Related Questions

In a php-script i have a form, method is post, action-attribute is empty, which
This is my Form Tag from The Master Page: <form id=form1 runat=server action=Handler.ashx method=POST
I've attached onsubmit handler in a form tag like this: <form action=file.php method=post onsubmit=
I have a class with an attribute and getter method: public Class MyClass {
Vim is indenting method definitions an extra level after an attribute. This is driving
I want to modify xml attribute using objective c on some action for example,
This really isn't per say an exact problem. But I have been curious, and
In index.php, I have created a form and in the action attribute of the
I have an ASP.NET MVC project with a form. In the Action method that
I have problem, how to create uri in action attribute. I have to use

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.