You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by do...@apache.org on 2005/02/12 20:11:38 UTC
svn commit: r153526 - in
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278: ./
Controller.jpf index.jsp
Author: dolander
Date: Sat Feb 12 11:11:36 2005
New Revision: 153526
URL: http://svn.apache.org/viewcvs?view=rev&rev=153526
Log:
Verification of Jira #278 -- The JSP doesn't compile because ScriptHeader is defined to be empty
Added:
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/Controller.jpf
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/index.jsp
Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/Controller.jpf
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/Controller.jpf?view=auto&rev=153526
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/Controller.jpf (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/Controller.jpf Sat Feb 12 11:11:36 2005
@@ -0,0 +1,31 @@
+package bugs.j278;
+
+import javax.servlet.http.HttpSession;
+import org.apache.beehive.netui.pageflow.FormData;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+import org.apache.beehive.netui.tags.tree.TreeElement;
+
+/**
+ * This is the default controller for a blank web application.
+ */
+@Jpf.Controller
+public class Controller extends PageFlowController
+{
+ private String _action;
+ public String getAction() {
+ return _action;
+ }
+
+ @Jpf.Action(
+ forwards={
+ @Jpf.Forward(name="index", path="index.jsp")
+ }
+ )
+ protected Forward begin()
+ {
+ _action = "begin";
+ return new Forward("index");
+ }
+}
Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/index.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/index.jsp?view=auto&rev=153526
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/index.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j278/index.jsp Sat Feb 12 11:11:36 2005
@@ -0,0 +1,13 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+<netui:html>
+ <head>
+ <netui:base/>
+ </head>
+ <netui:body>
+ <p style="color:green">This will not compile because ScriptHeader
+ is defined to be empty.</p>
+ <netui:scriptHeader>I'm not empty.</netui:scriptHeader>
+ </netui:body>
+</netui:html>