Solved

Struts form name

Posted on 2004-03-29
5
298 Views
Last Modified: 2013-11-24
I'm new to struts

Can anyone tell me why a form which has no name can be referred to by a name. For eg

.
.
function okClick(){
        if(validateLoginForm(document.loginForm)){
            document.loginForm.action.value = "signinto";
            document.loginForm.submit();
        }
.
.
<html:form action="/loginAction.do">
..
..
..
..
</html:form>

Nowhere I saw the name of form been given.
How does the form get the name of loginForm as shown in Javascript?

Pls help.
0
Comment
Question by:ricjava
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 92

Expert Comment

by:objects
ID: 10710390
perhaps from your struts config file.
Have a look at the generate <form> tag in the html that is created.
0
 

Author Comment

by:ricjava
ID: 10710501
I saw

<form-bean name="loginForm" type="my.com.webportal.common.formbean.LoginForm"/>


in the struts config file

Is it where the form gets its name of loginForm?
0
 
LVL 92

Accepted Solution

by:
objects earned 125 total points
ID: 10710650
yes
0
 
LVL 92

Expert Comment

by:objects
ID: 10711285
0
 

Author Comment

by:ricjava
ID: 10711333
thanks
0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question