HashMap<String, Object> res = new HashMap<String, Object>();
res.putAll(vars);
res.put("name", assuree.getName());
+ try {
+ res.put("maxpoints", assuree.getMaxAssurePoints());
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
res.put("dob", sdf.format(assuree.getDob()));
templ.output(out, l, res);
}
</tr>
<tr>
<td class="DataTD"><?=_Points?></td>
- <td class="DataTD"><input type="text" name="points"><br/>(Max. 12394)</td>
+ <td class="DataTD"><input type="text" name="points"><br/>(Max. <?=$maxpoints?>)</td>
</tr>
<tr>
<td class="DataTD" colspan="2">
package org.cacert.gigi.pages.wot;
import java.io.IOException;
+import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public AssurePage() {
super("Assure someone");
+ t = new Template(new InputStreamReader(
+ AssuranceForm.class.getResourceAsStream("AssureeSearch.templ")));
}