public CreateOrgForm(HttpServletRequest hsr) {
super(hsr);
- try {
- cs = new CountrySelector("C", false);
- } catch (GigiApiException e) {
- throw new Error(e); // should not happen
- }
+ cs = new CountrySelector("C", false);
}
public CreateOrgForm(HttpServletRequest hsr, Organisation t) {
isEdit = true;
result = t;
o = t.getName();
- try {
- cs = new CountrySelector("C", false, t.getState());
- } catch (GigiApiException e) {
- throw new Error(e);
- }
+
+ cs = new CountrySelector("C", false, t.getState());
+
st = t.getProvince();
l = t.getCity();
email = t.getContactEmail();
}
@Override
- public boolean submit(PrintWriter out, HttpServletRequest req) throws GigiApiException {
+ public boolean submit(HttpServletRequest req) throws GigiApiException {
String action = req.getParameter("action");
if (action == null) {
return false;