Methods Summary |
---|
public java.lang.String | getDate()
return this.date;
|
public java.lang.String | getEmail()
return this.email;
|
public Entries | getEntries()
return this.entries;
|
public java.lang.String | getName()
return this.name;
|
public boolean | getProcessError()
return this.processError;
|
public void | processRequest(javax.servlet.http.HttpServletRequest request)
// Get the name and e-mail.
this.processError = false;
if (name == null || name.equals("")) setName(request.getParameter ("name"));
if (email == null || email.equals("")) setEmail(request.getParameter ("email"));
if (name == null || email == null ||
name.equals("") || email.equals("")) {
this.processError = true;
return;
}
// Get the date.
String dateR = request.getParameter ("date");
if (dateR == null) date = JspCal.getCurrentDate ();
else if (dateR.equalsIgnoreCase("next")) date = JspCal.getNextDate ();
else if (dateR.equalsIgnoreCase("prev")) date = JspCal.getPrevDate ();
entries = (Entries) table.get (date);
if (entries == null) {
entries = new Entries ();
table.put (date, entries);
}
// If time is provided add the event.
String time = request.getParameter("time");
if (time != null) entries.processRequest (request, time);
|
public void | setEmail(java.lang.String mail)
this.email = mail;
|
public void | setName(java.lang.String nm)
this.name = nm;
|