78 lines
2.3 KiB
Plaintext
78 lines
2.3 KiB
Plaintext
// ------------------------------------------------------------------------------
|
|
// Generated by WebLogic Workshop
|
|
//
|
|
// Created on: Fri May 09 14:33:27 MDT 2003
|
|
// By: dolander
|
|
// -----------------------------------------------------------------------------
|
|
package controlTests.callingPageFlow;
|
|
import org.apache.beehive.netui.pageflow.Forward;
|
|
import org.apache.beehive.netui.pageflow.PageFlowController;
|
|
import org.apache.beehive.netui.pageflow.annotations.Jpf;
|
|
|
|
/**
|
|
* @jpf:controller
|
|
* @jpf:view-properties view-properties::
|
|
* <view-properties>
|
|
* <pageflow-object id="action:begin.do">
|
|
* <property value="80" name="x"/>
|
|
* <property value="100" name="y"/>
|
|
* </pageflow-object>
|
|
* <pageflow-object id="page:index.jsp">
|
|
* <property value="240" name="x"/>
|
|
* <property value="100" name="y"/>
|
|
* </pageflow-object>
|
|
* </view-properties>
|
|
* ::
|
|
*/
|
|
@Jpf.Controller(
|
|
)
|
|
@Jpf.ViewProperties(
|
|
value = {
|
|
"<view-properties>",
|
|
" <pageflow-object id='action:begin.do'>",
|
|
" <property value='80' name='x'/>",
|
|
" <property value='100' name='y'/>",
|
|
" </pageflow-object>",
|
|
" <pageflow-object id='page:index.jsp'>",
|
|
" <property value='240' name='x'/>",
|
|
" <property value='100' name='y'/>",
|
|
" </pageflow-object>",
|
|
"</view-properties>"
|
|
})
|
|
public class Controller extends PageFlowController
|
|
{
|
|
|
|
|
|
public String callableMethod(String str) {
|
|
return "Calling callableMethod(String) '" + str + "'";
|
|
}
|
|
|
|
public String callableMethod(int i) {
|
|
return "Calling callableMethod(int) '" + i + "'";
|
|
}
|
|
|
|
// Uncomment this declaration to access Global.app.
|
|
//
|
|
// protected global.Global globalApp;
|
|
//
|
|
|
|
// For an example of page flow exception handling see the example "catch" and "exception-handler"
|
|
// annotations in {project}/WEB-INF/src/global/Global.app
|
|
|
|
/**
|
|
* This method represents the point of entry into the pageflow
|
|
* @jpf:action
|
|
* @jpf:forward name="success" path="index.jsp"
|
|
*/
|
|
@Jpf.Action(
|
|
forwards = {
|
|
@Jpf.Forward(
|
|
name = "success",
|
|
path = "index.jsp")
|
|
})
|
|
protected Forward begin()
|
|
{
|
|
return new Forward( "success" );
|
|
}
|
|
}
|