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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:13:49+00:00 2026-05-23T09:13:49+00:00

In Struts say we define some form with the name TaskForm in struts-config.xml .

  • 0

In Struts say we define some form with the name TaskForm in struts-config.xml.

In one of the javascript function, I can see the statement:

document.TaskForm(some form name in struts-config.xml).action = action

My question here is how come we are able to execute document.taskform at client side?

I mean statements like document.getElementByid("") are defined in browser side but not sure about document.taskform?

  • 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-23T09:13:49+00:00Added an answer on May 23, 2026 at 9:13 am

    You can’t access Struts ActionForms using JavaScript!

    What you are seeing is JavaScript interaction with the HTML client side <form> tag (something like this tutorial presents)

    The HTML <form> tag happens to have the same attribute name and action value as the ones from the <form-bean> and <action> tags of struts-config.xml.
    This is no coincidence!

    ActionForms are the server side object representation of a client side HTML <form> tag and Struts server tags generate HTML which is then sent to the client.

    The HTML <form> tag usually contains the name of the bean specified in <form-bean> of struts-config.xml tag, while the action attribute of the <form> is the one specified in the corresponding <action> of struts-config.xml.

    Some names and values are preserved to maintain clarity of the code. This makes things homogeneous. But we are NOT talking about the same thing!

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

Sidebar

Related Questions

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>
Say I have a struts.properties file with a defined value uploads.directory . How can
In Struts 1 you could have, in struts-config.xml, a declaration like: <action path=/first forward=/second.do>
Can I say that the Struts 2 Interceptors could be the typical example for
How can an encapsulate non-database actions into transactions? For example, say I have some
when they say the action controller in the struts framework is multi threaded, does
Let's say I have sj:autocompleter like this : <sj:autocompleter id=idDistributor name=idDistributor list=%{idDistributorList} label=ID Distributor
In one of my Struts action I've got the following code in a method:
I am using a MVC framework which is a bit like struts. So, say
i am learning struts2 from the book struts-2 in action. they say that for

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.