KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > appfuse > webapp > action > Reload


1 package org.appfuse.webapp.action;
2
3 import java.io.IOException JavaDoc;
4 import java.io.Serializable JavaDoc;
5
6 import org.appfuse.webapp.listener.StartupListener;
7
8 /**
9  * JSF Page class to handle reloading options in servlet context.
10  *
11  * @author Matt Raible
12  */

13 public class Reload extends BasePage implements Serializable JavaDoc {
14     private static final long serialVersionUID = 2466200890766730676L;
15
16     public String JavaDoc execute() throws IOException JavaDoc {
17
18         if (log.isDebugEnabled()) {
19             log.debug("Entering 'execute' method");
20         }
21
22         StartupListener.setupContext(getServletContext());
23         addMessage("reload.succeeded");
24
25         return "mainMenu";
26     }
27
28 }
29
Popular Tags