-package org.cacert.gigi;
+package org.cacert.gigi.pages;
import java.io.IOException;
import javax.servlet.ServletResponse;
public abstract class Page {
+ private String title;
+
+ public Page(String title) {
+ this.title = title;
+ }
+
public void doGet(ServletRequest req, ServletResponse resp)
throws IOException {
resp.setContentType("text/html");
throws IOException {
doGet(req, resp);
}
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
}