Solved

Struts form name

Posted on 2004-03-29
5
290 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
  • 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now