KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > GuestbookAction


1 package example;
2
3 import java.util.*;
4 import org.apache.struts.action.*;
5
6 /**
7  * Defines utility methods for this application.
8  */

9 public class GuestbookAction extends Action {
10     
11     ArrayList getGuestbook() {
12         return (ArrayList) servlet.getServletContext()
13                 .getAttribute(GuestbookActionServlet.GUESTBOOK_KEY);
14     }
15 }
16
Popular Tags