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

  • Home
  • SEARCH
  • 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 8487741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:20:13+00:00 2026-06-10T21:20:13+00:00

I create a form with Struts 2, using the following code : <s:form id=form

  • 0

I create a form with Struts 2, using the following code :

<s:form id="form" onSubmit="getParameters();">

I don’t understand why the generated is the following one :

<form id="form" name="form" action="/Projet/ListAction.action" method="post" onSubmit="return getParameters();">

Here is my struts.xml

 <action name="ListBrochures" class="fr.web.actions.ListAction" method="execute">
    <result name="success">listAction.jsp</result>
  </action>

Why i have an action called ListAction.action. My aim is not to submit the form but to send a Ajax request. So as this action is called before my Ajax call, this bring trouble in my project.
I just want that Struts does not generate the action in my form. I did not specify any action.
Thanks for helping.

  • 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-10T21:20:14+00:00Added an answer on June 10, 2026 at 9:20 pm

    If you look at the documentation (parameter action), if you don’t set any action in your <s:form> tag, the action that struts2 take will be the current action.

    • Form tag documentation.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code to create new form instance of a closed form using form name I
I have a form in struts 1.3 which is dynamically generated one and having
Using Zend_Form, how would I create form elements like this <input type=text name=element[1] value=/>
i want create one simple windows form ,it just contain Editcontrol(textbox),Static Edit(label),Button (Name of
Using Zend_Form, how would I create form elements like this: <input type=text name=element[1] value=
Using Zend_Form, how would I create form elements like this: <input type=text name=element[0][name] value=
I want to create a form using an unordered list ul must have only
I would like to use formtastic to create form but I don't have a
Im using Struts2 and Hibernate, trying to create a simple form to edit an
I am using Twitter Bootstrap to create form elements like below. Normally the 'submit'

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.