X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2FPage.java;fp=src%2Forg%2Fcacert%2Fgigi%2FPage.java;h=18eb2944083e858331d2fd375ddb6edd862ff450;hp=77ffbb673f516c9ee89cb0271252a1f7220b4650;hb=6aa2a2b2b90e9f05386f7fe1bcc831a6a574a0f6;hpb=f00a29a230689e952d413818073fff0644e04786 diff --git a/src/org/cacert/gigi/Page.java b/src/org/cacert/gigi/pages/Page.java similarity index 62% rename from src/org/cacert/gigi/Page.java rename to src/org/cacert/gigi/pages/Page.java index 77ffbb67..18eb2944 100644 --- a/src/org/cacert/gigi/Page.java +++ b/src/org/cacert/gigi/pages/Page.java @@ -1,4 +1,4 @@ -package org.cacert.gigi; +package org.cacert.gigi.pages; import java.io.IOException; @@ -6,6 +6,12 @@ import javax.servlet.ServletRequest; 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"); @@ -15,4 +21,12 @@ public abstract class Page { throws IOException { doGet(req, resp); } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } }