Child: [r25] (diff)

Download this file

Form.java    36 lines (29 with data), 901 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* SPDXVersion: SPDX-1.1
* Creator: Person: Nuno Brito (nuno.brito@triplecheck.de)
* Creator: Organization: TripleCheck (http://triplecheck.de)
* Created: 2014-01-20T00:00:00Z
* LicenseName: NOASSERTION
* FileName: Form.java
* FileType: SOURCE
* FileCopyrightText: <text> Copyright (c) 2014 Nuno Brito, TripleCheck </text>
* FileComment: <text> Code related to HTML forms, such as buttons and other
* dialog boxes.</text>
*/
package www;
/**
*
* @author Nuno Brito, 21st of December 2013 in Darsmtadt, Germany
*/
public class Form {
public static String doButton(String title, String action){
String result = "<form action=\""
+ action
+ "\" method=\"post\">"
+ "<input value=\""
+ title
+ "\" name=\"SubmitButton\" type=\"submit\">"
+ "</form>";
return result;
}
}