02/03/2009, 15:04
|
| | | Fecha de Ingreso: febrero-2009
Mensajes: 40
Antigüedad: 15 años, 9 meses Puntos: 3 | |
Respuesta: Duda sobre Struts y Java Page Flows Por ejemplo tengo este archivo llamado Controller.jpf:
-----------------------------------------------------------------------
import com.bea.wlw.netui.pageflow.PageFlowController;
import com.bea.wlw.netui.pageflow.Forward;
/**
* This is the default controller for a blank web application.
*
* @jpf:controller
* @jpf:view-properties view-properties::
* <!-- This data is auto-generated. Hand-editing this section is not recommended. -->
* <view-properties>
* <pageflow-object id="pageflow:/Controller.jpf"/>
* <pageflow-object id="action:begin.do">
* <property name="x" value="60"/>
* <property name="y" value="60"/>
* </pageflow-object>
* <pageflow-object id="action:cerrarSesion.do">
* <property value="320" name="x"/>
* <property value="60" name="y"/>
* </pageflow-object>
* <pageflow-object id="page:index.jsp">
* <property name="x" value="200"/>
* <property name="y" value="60"/>
* </pageflow-object>
* <pageflow-object id="page:clientes_info.html">
* <property value="220" name="x"/>
* <property value="160" name="y"/>
* </pageflow-object>
* <pageflow-object id="page:error.jsp">
* <property name="x" value="340"/>
* <property name="y" value="160"/>
* </pageflow-object>
* <pageflow-object id="page:footer.html">
* <property value="440" name="x"/>
* <property value="160" name="y"/>
* </pageflow-object>
* <pageflow-object id="action-call:@page:funcion.html@#@action:cerrarSesion.do@" >
* <property value="484,420,420,356" name="elbowsX"/>
* <property value="52,52,52,52" name="elbowsY"/>
* <property value="West_1" name="fromPort"/>
* <property value="East_1" name="toPort"/>
* </pageflow-object>
* <pageflow-object id="page:funcion.html">
* <property value="520" name="x"/>
* <property value="60" name="y"/>
* </pageflow-object>
* <pageflow-object id="page:header.html">
* <property value="640" name="x"/>
* <property value="160" name="y"/>
* </pageflow-object>
* <pageflow-object id="page:indexC.jsp">
* <property value="400" name="x"/>
* <property value="260" name="y"/>
* </pageflow-object>
* <pageflow-object id="page:indexSV.jsp">
* <property value="500" name="x"/>
* <property value="260" name="y"/>
* </pageflow-object>
* <pageflow-object id="page:login.html">
* <property value="100" name="x"/>
* <property value="260" name="y"/>
* </pageflow-object>
* <pageflow-object id="page:menu.html">
* <property value="200" name="x"/>
* <property value="260" name="y"/>
* </pageflow-object>
* <pageflow-object id="page:menu1.html">
* <property value="300" name="x"/>
* <property value="260" name="y"/>
* </pageflow-object>
* <pageflow-object id="forward:path#index#index.jsp#@action:begin.do@ ">
* <property name="elbowsY" value="52,52,52,52"/>
* <property name="elbowsX" value="96,130,130,164"/>
* <property name="toPort" value="West_1"/>
* <property name="fromPort" value="East_1"/>
* <property name="label" value="index"/>
* </pageflow-object>
* <pageflow-object id="forward:path#index#index.jsp#@action:cerrarSes ion.do@">
* <property value="284,260,260,236" name="elbowsX"/>
* <property value="52,52,52,52" name="elbowsY"/>
* <property value="West_1" name="fromPort"/>
* <property value="East_1" name="toPort"/>
* <property value="index" name="label"/>
* </pageflow-object>
* </view-properties>
* ::
*/
public class Controller extends PageFlowController
{
/**
* @jpf:action
* @jpf:forward name="index" path="index.jsp"
*/
protected Forward begin()
{
return new Forward("index");
}
/**
* @jpf:action
* @jpf:forward name="index" path="index.jsp"
*/
protected Forward cerrarSesion()
{
//getSession().invalidate();
weblogic.servlet.security.ServletAuthentication.in validateAll(this.getRequest());
//this.getSession().invalidate();
return new Forward("index");
}
}
---------------------------------------------------------------
Que es esto y como lo uso para crear mi aplicacion en struts? |