1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.fridaymvc.actions;
18
19 import net.sf.fridaymvc.Parameters;
20 import net.sf.fridaymvc.RunData;
21
22 /***
23 * @author <a href="mailto:arto.pastinen@ofw.fi">Arto Pastinen</a>
24 * @version $Id: SetPanel.java,v 1.1 2004/11/23 20:35:58 artsi Exp $
25 *
26 * @@ net.sf.fridaymvc.metadata.commons.ActionAttribute(name="setpanel")
27 * @@ net.sf.fridaymvc.metadata.commons.RegExpValidatorAttribute("uid", "uid", "//p{ASCII}+")
28 * @@ net.sf.fridaymvc.metadata.commons.RegExpValidatorAttribute("viewname", "viewname", "//p{ASCII}+")
29 */
30
31 public class SetPanel extends AbstractAction {
32
33
34
35 public void service() throws Exception {
36 Parameters p = RunData.getInstance().getParameters();
37
38 String uid = p.getString("uid");
39 String viewName = p.getString("viewname");
40
41 RunData.getInstance().getViewMapping().put(uid, viewName);
42 }
43 }