
net.sf.jsptest.html.FormField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsptest-framework Show documentation
Show all versions of jsptest-framework Show documentation
The core framework functionality for JspTest.
The newest version!
package net.sf.jsptest.html;
import org.w3c.dom.Element;
/**
* Representation of a form input field.
*
* @author Lasse Koskela
*/
public class FormField {
private Element element;
/**
* Build an input field from the given HTML element.
*
* @param element
* The HTML input element.
*/
public FormField(Element element) {
this.element = element;
}
/**
* Returns the name of the field.
*/
public String getName() {
return element.getAttribute("NAME");
}
/**
* Returns the value of the field.
*/
public String getValue() {
return element.getAttribute("VALUE");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy