Backingfile:prerender() and action method in page flow

I am using backing file in a pageflow based portlet in WLP8.1sp5, and implemented its prerender method. After navigating to the middle of this pageflow, the session became expired after 15 mins of inactivity (this is expected). However, when a user click an action button in the browser which sent the request to the stale session, I expected my backing file prerender is invoked and I can check for expired session and route user to a timeout page. But this didn't happen. Instead, I see an ugly error page complaining that action couldn't be found in the pageflow. Of course, the session is no longer there.
My questions are:
1. Why WLP framework behave this way? Why backing wasn't called prior to action method of the pageflow?
2. In WLP (8.1sp5), is there a pattern to handle expired session and render/display a "session timed out" page.
Thanks in advance!

I tried it. However, I encountered two problems:
1. I placed the backing file at desktop level. And the page backing contexts I got back are null:
try {   
DesktopBackingContext ctx = DesktopBackingContext.getDesktopBackingContext(request);
BookBackingContext bbc = ctx.getBookBackingContext();
List children = bbc.getPageBackingContexts();
for (Iterator i = children.iterator(); i.hasNext();)
PageBackingContext pbc = (PageBackingContext) i.next();
String label = pbc.getLabel();
boolean bv = lableInArrayList(label, al);
pbc.setVisible(bv);
pbc.setActive(bv);
} catch (Exception e) {
where list "children" is returned as null, thus the null pointer exception when I tried to get an iterator.
How come?
2. When using SPNEGO single sign on, there is no straightforward and sure way to tell whether the request is (a) first time hit (i.e. session is new) or (b) is a hit after the session expires (i.e. the session is new again but I lost all pageflow state etc.). I could use request.getQueryString() as an indicator for (b) because the query string wouldn't be null vs. first hit http://.../abc.portal (without any query string). My question is: is this method request.getQueryString() a reliable way to indicate (b)?
Thanks in advance!

Similar Messages

  • How to isolate navigation and action methods?

    Hi,
    I have 3 pages and I want to implement the following navigation:
    Page 1 <--> Page 2 <--> Page 3
    Page 1 <--> Page 3
    Page 3 has 2 buttons ('OK' and 'Cancel'), both lead to the previous page (Page 1 or Page 2).
    I just see one way to do this :
    <navigation-rule>
              <from-view-id>/page3.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>ok_page2</from-outcome>
                   <to-view-id>/page2.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>cancel-page2</from-outcome>
                   <to-view-id>/page2.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>ok_page1</from-outcome>
                   <to-view-id>/page1.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>cancel-page1</from-outcome>
                   <to-view-id>/page1.jsp</to-view-id>
              </navigation-case>
    </navigation-rule>and actions methods have to check where we come from to return the right outcome.
    Basiclly I don't want to bind page implementation to navigation rules.
    I'd prefer something like that :
    <navigation-rule>
              <from-view-id>/page1.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>action1</from-outcome>
                   <to-view-id>/page2.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>action2</from-outcome>
                   <to-view-id>/page3.jsp_alias1</to-view-id>
              </navigation-case>
    </navigation-rule>
    <navigation-rule>
              <from-view-id>/page2.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>action</from-outcome>
                   <to-view-id>/page3.jsp_alias2</to-view-id>
              </navigation-case>
    </navigation-rule>
    <navigation-rule>
              <from-view-id>/page3.jsp_alias2</from-view-id>
              <navigation-case>
                   <from-outcome>ok</from-outcome>
                   <to-view-id>/page2.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>cancel</from-outcome>
                   <to-view-id>/page2.jsp</to-view-id>
              </navigation-case>
    </navigation-rule>
    <navigation-rule>
              <from-view-id>/page3.jsp_alias1</from-view-id>
              <navigation-case>
                   <from-outcome>ok</from-outcome>
                   <to-view-id>/page1.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>cancel</from-outcome>
                   <to-view-id>/page1.jsp</to-view-id>
              </navigation-case>
    </navigation-rule>Where '/page3.jsp_alias1' and '/page3.jsp_alias2 refer to /page3.jsp.
    How to do that?
    Thanks.
    Edited by: Keeg on Jul 21, 2009 6:27 AM

    But this is what I want to avoid.Page 3 or backing bean has to be aware of the previous page.....
    Am I wrong?
    Another way?
    Edited by: Keeg on Jul 22, 2009 2:28 AM

  • How do I drag and drop an action onto a task flow?

    In How to pass View Object bind variable from ADF page John states that
    You should also consider dragging-and-dropping the executeWithParams operation on your task flow and wiring it to occur before your page instead of putting it in the page definition of the page itself - this way it is more clear what is happening, and is the recommended approach for 11g apps. When you drag-and-drop the operation, you can use the dialog to bind the parameter to your page-flow-scoped variable by supplying the proper EL there.
    How can I drag and drop the executeWithParams method onto a task flow. I am using 11.1.1.5.0 on LINUX?
    I'm presuming I a need a method action in my page flow.
    I have the following action defined in my page def file:
    <action IterBinding="localizedCustomerHierarchyViewIterator"
    id="executeQueryWithParamsForLocalizedCustomerHierarchyView"
    InstanceName="BusinessRulesAMDataControl.LocalizedCustomerHierarchyView"
    DataControl="BusinessRulesAMDataControl" RequiresUpdateModel="true"
    Action="executeWithParams">
    <NamedData NDName="RootEntityId"
    NDValue="#{pageFlowScope.recommendationRule.customerEntityId"
    NDType="java.lang.Long" NDOption="3"/>
    <NamedData NDName="Language"
    NDValue="#{pageFlowScope.recommendationRule.language}"
    NDType="java.lang.String" NDOption="3"/>
    </action>

    In summary, it appears you need the following artifacts in order to initialize a view object from parameters before rendering a .jsff view that relies on that view
    1) a method-call in task flow.xml file:
    <method-call id="executeWithParamsLocalizedCustomerHierarchyView">
    <method id="__5">#{bindings.executeWithParamsLocalizedCustomerHierarchyView.execute}</method>
    <outcome id="__12">
    <fixed-outcome id="__9">initializedLocalizedCustomerHierarchy</fixed-outcome>
    </outcome>
    </method-call>
    2) a control flow rule in the task flow .xml file whose source is (1) and whose destination is the view for which you want to intiialize a view object that supports an iterator that is bound to a list, tree, etc.
    3) an entry for the execute action in the databindings.cpx file
    <page path="/WEB-INF/[email protected]calizedCustomerHierarchyView"
    usageId="oracle_apps_br_view_RecommendationRulePFPageDef"/>
    4) the page def must be defined in the databindings.cpx file
    5) the page def needs to define action and iterator and list (or otherwise) that is used in UI.
    <iterator id="localizedCustomerHierarchyViewIterator"
    Binds="LocalizedCustomerHierarchyView"
    DataControl="BusinessRulesAMDataControl" RangeSize="25" Refresh="never">
    <sortCriteria>
    <sort attribute="Level" ascending="true"/>
    </sortCriteria>
    </iterator>
    <action IterBinding="localizedCustomerHierarchyViewIterator"
    id="executeWithParamsLocalizedCustomerHierarchyView"
    InstanceName="BusinessRulesAMDataControl.LocalizedCustomerHierarchyView"
    DataControl="BusinessRulesAMDataControl" RequiresUpdateModel="true"
    Action="executeWithParams">
    <NamedData NDName="RootEntityId"
    NDValue="#{pageFlowScope.recommendationRule.customerEntityId}"
    NDType="java.lang.Long"/>
    <NamedData NDName="Language"
    NDValue="#{pageFlowScope.recommendationRule.language}"
    NDType="java.lang.String"/>
    </action>
    <list ListOperMode="navigation"
    IterBinding="localizedCustomerHierarchyViewIterator"
    id="customerLocalizedEntityHierarchyList">
    <AttrNames>
    <Item Value="EntityName"/>
    </AttrNames>
    </list>
    6) a backing bean that provides the functions to initialize the parameters for execution
    The easiest way to get most of this is to drag the ExecuteWithParams from within the view in the datacontrols panel right onto the task flow diagram. The downside is that you are left with some pretty poorly named artifacts...
    Did I miss anything?
    -Klaus
    Edited by: klaus gross on Sep 29, 2011 1:00 PM

  • Page flow actions are called twice from each UI's action=...

    Odd observation: my nothing fancy login / pw change / logged in / jsps and pageflow are having the actions in the .jpf called twice for each jsp form action=.
    What can cause this?
    For example: the login jsp form action=loginAction, the corresponding method in the .jpf is called twice when the user clicks the login button on the login UI. The same behavior is observed for all the other actions in this page flow too.
    This has been a real problem for the pw change UI. Until I figured this out, pw change always returned invalid pw due to the second call to the action. :))
    tnx curt

    I have narrowed it down even more. What is happening is that you select the first item in the list it throws a validation error. I found this by adding and inline message. The weird thing is that if you select any other item in the list but the first everything flows as normal.
    This is a list of dates bound to a date type column in a database.
    Any Idea's why selecting the first item in a list would throw the validation message?

  • Nested Page Flows and Pop Ups - Workshop 8.1

    Hi, everybody.
    I'm facing the following problem:
    I've a "main" page flow within some page flow-scoped data and forms. Now i need to open/execute another page flow (a "secondary" one) inside a pop up window. The tricky is i cannot "lose" the data in the first page flow. I will navigate to main page, fill some data, open the pop up, execute some queries, close the pop up and continue previous navigation.
    If i don't use a "nested" page flow for my pop up, i loose the page flow-scoped data from my main page flow (a new page flow is created).
    If i use a nested page flow, the following scene does not work:
    - Go to main page (create main page flow);
    - Fill some data;
    - Open pop up (create nested page flow);
    - Perform some queries (execute actions inside nested page flow);
    - Close pop up window;
    - Fill some data;
    - Submit main page;
    - Execute form validation using Struts Validator.
    When i execute the last step and there are errors in the submitted form, netui data binding tags fail. I believe that the engine "thinks" that it should use nested page flow (and form) instead of the main page flow (and form).
    I've found a workaround for this situation: When the pop up is closed, the main page execute a "dummy refresh action" in the main page flow.
    Is this the correct behaviour ? Is there another way of do it ?
    Thanks in advance.

    Hi Vimala.
    I cannot lose page flow data because i have other kind of data (beside a form) inside my page flow: Options values, previous search result list, ...
    Can i close the pop up window without call "return-action" ? How should i proceed if i don't need/have a "return-action" ?
    How should i proceed if i should to specify the forward of a "return-action" as a request parameter/attribute ?
    Thanks.

  • ADF Menu Model and page flows

    Hi! I created two Unbounded task flows. One task flow for ADF sub_menu (adfc-paraugs-config.xml) and second task flow for ADF root_menu (adfc-config.xml) (see http://my.jetscreenshot.com/2677/20100708-nite-111kb).
    How can I map records between two unboundes task flows? For example in adfc-config.xml page flow I have Search page (meklesana.jspx) and I want to find records in this search page and then select one record and navigate to other page flow (adfc-paraugs-config.xml) jspx page (pasesDati.jspx) You can see page flow in link above. I want to find records in meklesana.jspx and show them in pasesDati.jspx. What to do and what are Your solutions?
    I can say that in meklesana.jspx page I had used Page Fragment element to create Search page.
    Best Regards

    Hi ADFboy! And how can I create sub menu in one task flow?
    I used this tutorial: http://www.oracle.com/technology/products/jdev/11/cuecards111/adf_set_43/ccset43_ALL.html
    PLZ can You check this out and say what I'm doing wrong?
    Best regards!

  • EmptyStackException when exit from nested page flow on SP2

    I have tried to call a nested page flow (TestNestedController.jpf) from page flow
    and using redirect="true". After exit from nested page flow, it supposes that
    return to the action testNestedDone() in page flow(TestPageController). It works
    on SP1, but it fails on SP2.
    Please suggest any solutions for this issues.
    public class TestPageController extends PageFlowController
    // 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="page.jsp"
    protected Forward begin()
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="/test/testNested/TestNestedController.jpf"
    redirect="true"
    protected Forward goToNested()
    System.out.println("go to nested redirect = true");
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    protected Forward testNestedDone()
    return new Forward("success");

    The error message like this:
    Empty nesting stack for returned action BackToPrevious from Page Flow /xxxx/viewMemberController.jpf.
    com.bea.wlw.netui.pageflow.EmptyNestingStackException: Empty nesting stack for
    returned action BackToPrevious from page flow /xxxx/viewMember/viewMemberController.jpf.
    at com.bea.wlw.netui.pageflow.FlowController.forwardTo(FlowController.java:1103)
    "patrick" <[email protected]> wrote:
    >
    I have tried to call a nested page flow (TestNestedController.jpf) from
    page flow
    and using redirect="true". After exit from nested page flow, it supposes
    that
    return to the action testNestedDone() in page flow(TestPageController).
    It works
    on SP1, but it fails on SP2.
    Please suggest any solutions for this issues.
    public class TestPageController extends PageFlowController
    // 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="page.jsp"
    protected Forward begin()
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="/test/testNested/TestNestedController.jpf"
    redirect="true"
    protected Forward goToNested()
    System.out.println("go to nested redirect = true");
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    protected Forward testNestedDone()
    return new Forward("success");

  • Page Flow - Help please

    Dear All,
    I am new to Portal application development by using Weblogic 8.1 I have read the
    docs and I did simple page flow example. But when i start looking the requirement,
    it is having basic login screen contains Home page of website. Once the user login
    for example employee or manager, it should show the user specific content. In
    this case the functionality of both user are altogether different. So I have created
    Three portal
    1.Login Portal -- Login screen
    2.Empolyee Portal -- Employee Functionality
    3.Manager Portal -- Manager Functionality
    I would like to know how to link these three pages by using page flow or provide
    me any document. Document provided by weblogic is not sufficient.... please help
    me...
    Regards
    Neels

    Prashaht thanks
    What package do I have to import in the Java Class/JSP for the ScopedServlet utils
    to work. I tried it but it kept giving error message saying the method could not
    be found indicating I do not have the right package imported in the program.
    Please help
    "Prashanth " <[email protected]> wrote:
    >
    Here you go :
    HttpServletRequest outerRequest = ScopedServletUtils.getOuterRequest(request);
    Once you have outerRequest object, you can retrive the values much like
    normal
    request object.
    Hope,this helps.
    Prashanth Bhat.
    "pete" <[email protected]> wrote:
    I have a JsP which has a netui:form with some text fields. This jspcalls
    a action
    (actionABC) in a .jpf file. The jpf files then forwards it to a jsp.
    What I want
    to do is set some values in the request object in the .jpf file(which
    will be
    from the 1st jsp) and then call the 2nd jsp from the jpf. the 2nd jpf
    should then
    read the request object get the values out and display them. I do not
    want to
    use the (netui-datasource) tag, I specifically want to use the request
    object.
    A sample code will be highly appreciated.

  • How to write custom prerender or init  method?

    some ide provide override prerender() and init() methods,i can use this methods,
    i use differnt ide but i didnt find prerender and init methods ,so i try to write these but i couldnt.
    i did ;
    1) write phaselistener
    2) and extends my beans with phaselistener
    public class phases implements PhaseListener {
    public phases() {
    public void init() {
    System.out.println("/******************phase****init*****************************");
    public void afterPhase(PhaseEvent phaseEvent) {
    public void beforePhase(PhaseEvent event) {
    if (event.getPhaseId()==PhaseId.RESTORE_VIEW) {/// this mean is page init
    init();
    protected boolean isPostBack() {
    if (getFacesContext().getRenderResponse())
    return false;
    else
    return true;
    and my bean is ;
    public class login extends phases {
    @Override
    public void init() {
    System.out.println("/**********************init*****************************");
    but nothing (didnt enter the init method);;
    pls How can i do this?
    Edited by: ermanbas on Jun 13, 2009 9:16 PM
    Edited by: ermanbas on Jun 13, 2009 9:17 PM

    That's why it sucks to be tied up to an ide feature. Do not extend your beans from a phaselistener. You need sth like;
    http://cagataycivici.wordpress.com/2006/06/06/managed_beans_aware_of_the/
    Edited by: CagatayCivici on Jun 16, 2009 4:06 PM

  • No header/footer in page flow JSP

    good morning group
    i have a jsp in a popup which is part of a page flow, and therefore, the html header & footer is displayed. is there a way to suppress the rendering of the header&footer stuff ?
    many thanx in advance :-)
    best wishes
    -ToM-

    "Mindy" <[email protected]> wrote in message
              news:402a4528$[email protected]..
              >
              > Is there a way to get the NT login name of a user in the page flows and
              jsp? We
              > want to authenticate a user belongs to a group before giving him access to
              a site
              > so the first thing in the begin method in page flow will be to get his
              login name
              > and then we have another module which validates the user belongs to a
              particular
              > group.
              Two possibilities spring to mind, NTRealm which is a security realm for
              weblogic that works with NTLM, I have no personal experience with it however
              you can search edocs for more info about it. Another alternative is jCIFS
              which includes an NTLM authentication handler for HTTP. I have used this in
              a previous life and it works great. You can view more info about it here
              http://jcifs.samba.org/src/docs/httpclient.html.
              Gerald
              

  • Is there a way to RECREATE the Page Flow Overview in BEA Workshop 4WL?

    BEA Workshop foe weblogic makes JSP development a lot simpler, and the auto generated Page Flow Overview is a nice feature - as long as your page flows are relatively small and simple. It doesn't take much to completlly confuse the tool though and you end up with a workflow with all sorts of flow lines cris-crossing each other - often I which I could just reach in and move a single jsp or action item and the whole mess would straighten out.
    Is there a way to reposition individual elements of the Page Flow Overview or failing that to have it Recreate itself (in hopes that it will straighten out the mess itself).
    Also is there a way to manually edit the flow - adding notes and/or objects and flow lines?

    There is no explicit "refresh" button for the Page Flow Overview (PFO), however clicking the "Show Link Labels" button on the toolbar will cause the graph to be redrawn.
    That said, in my experience replotting the graph nearly always arrives at the same layout. While the layout algorithm does a pretty good job with large graphs generally, some very highly connected graphs can be pretty tough to read right off the bat.
    For various reasons we've moved away from having users manually tweak the layout to deal with this situation. However, we added some highlighting functionality to help make graphs easier to read even if the layout appears tangled.
    If you click the Graph Tracing button on the PFO toolbar you can select a given node and see all directly connected nodes highlighted. If some of the directly connected nodes are far away on the canvas, park the PFO next to the Page Flow Editor view and you'll be able to see a more regular arrangement of the same nodes.
    When you're more interested in following a specific path than seeing the whole immediate neighborhood, you can hit the slash key repeatedly to cycle through highlighting all the links connected to the selected node.
    Finally, you can ctrl-click to multi-select links of interest if you want to trace a given path all the way through the flow. If you were doing this for documentation purposes you can print the graph in this state, or click the Export to Image button, to make a copy of the highlighted path.
    WRT your other question about editing the flow - the Page Flow Editor is intended to complement the PFO as a means of efficiently editing the flow. Select a node in the PFO and you be able to add/modify connections to that node viat the Page Flow Editor.
    There is no provision to add notes or other objects to the flow (though the exported image files can of course be annotated in a graphics editor for documentation purposes).
    I hope that helps.

  • Multiple entry points into a Page Flow

    Is it possible to define multiple entry points into a PageFlow ? That is, can I forward to an arbitrary Action inside a PageFlow (other then the standard begin) ?
    If so, is there sample code illustrating this ?
    Thank you
    Cristian

    The flow view should show the action from the anchor.
    "Cristian" <[email protected]> wrote in message
    news:405892c9$[email protected]..
    >
    John,
    That answers my questions.
    One more thing though :
    When using an anchor to forward from a jsp to an action in a pageflow,
    the 'Flow View' does not show the corresponding link. Is that normal ?
    Thank you
    Cristian
    "John Rohrlich" <[email protected]> wrote:
    Cristian,
    Yes the samples implicitly go to begin because jumping into the middle
    of
    some flow can lead to code that is difficult to follow and to debug.
    If
    there are pieces of a page flow that are useful in multiple contexts
    you
    might want to make them independent page flows or nested page flows
    You can go from a jsp to an action in another page flow using an anchor
    and
    setting the href attribute, for example
    <netui:anchor
    href="/WebApp/anotherPageFlow/someAction.do">continue</netui:anchor>
    notice that you set href= rather than action= because you are going
    outside
    of the local page flow.
    If you want to go from an action in one page flow to an action in another
    page flow of the same application you can do this
    * @jpf:forward name="success" path="/anotherPageFlow/someAction.do"
    If you want to pass a form to the action you can do that also. You just
    follow the last example and add the form to the forward, for example
    return new Forward("success", someForm);
    I hope that covers it - john
    "Cristian" <[email protected]> wrote in message
    news:405787a2$[email protected]..
    I need to go from either an action or a jsp in one page flow to ajsp/action in another page flow, passing around a session scoped action
    form.
    What is the syntax for the forwarding path ?
    All the samples I found implicitly
    forward to the 'begin()' action in the destination jpf.
    How do I tell it to go to
    another action/jsp in the target jpf ?
    Thanks
    Cristian

  • Replacing page flow factory

    Hello,
    We are using Portal 8.1 SP6
    I have seen an interesting way to implement dependency injection in NanoWAR (PicoContainer).
    They have implemented their own the struts processorClass, which is responsible to resolve the dependencies for the struts Action classes, and there they inject dependencies.
    The dependencies key is the URL to an action.
    Since a page flow is somehow a struts action, I was looking for a way to replace the processor class by my own one. Have a look at the .pageflow-struts-generated directory and you will see that Portal has defined following line:
    processorClass="com.bea.wlw.netui.pageflow.PageFlowRequestProcessor"
    Has anybody any idea about how to replace that class?
    If this is not possible, is there a way replace Portal's page flow factory by my own one?
    Thanks,
    Yves Bossel
    Edited by ybossel at 05/29/2007 7:13 AM

    Hello,
    After some research Workshop documentation I have found the com.bea.wlw.netui.pageflow.FlowControllerFactory class.
    That class is responsible to resolve the page flow class and to create new page flow instances.
    If I could specify the FlowControllerFactory, it would be possible to inject the dependencies into the page flows, just after they get instantiated.
    The idea is to declare a decorator for the FlowControllerFactory that injects the dependencies (setter injection) after the decorated FlowControllerFactory has created a page flow.
    Note that I would prefer to use constructor injection. But this is a good start.
    I would appreciate any idea about how to replace the FlowControllerFactory.
    Thanks in advance,
    Yves

  • Page Flows - opening new windows - losing context values

    Hi.. Anyone face this -?
    I have a page flow that gets some data from the database and displays it in a grid. The page has a print button that should open a popup with a printable version of the grid. I am storing the rowset in the page flow as an instance variable. Now when I click on print, I call an action in the page flow that opens a new JSP in another window. The JSP is expecting the grid from the page flow context. However, it seems like in the new window, a new version of the controller is getting instantiated, with the rowset being null.
    How would I get around this?
    Thanks
    Kunal

    I've had success with the following so far--think it works around the instance label limitation:
    * Popup window action. Redirect set to true to unwrap request from portal.
    * @jpf:action
    * @jpf:forward path="/portlets/full/path/to/this/action/displayNumber.do" name="jumpout" redirect="true"
    * @jpf:forward path="Number.jsp" name="success"
    protected Forward displayNumber() throws Exception
         String s = this.getRequest().getParameter("jpfScopeID");
         if(s==null || s.equals("")){
              Forward fwd = new Forward("jumpout");
              pageFlowVar x = "test";
              PortletBackingContext ctx = PortletBackingContext.getPortletBackingContext(this.getRequest());
              fwd.addQueryParam("jpfScopeID", ctx.getInstanceLabel());
              return fwd;
         } else {
              Forward fwd = new Forward( "success" );
              fwd.addPageInput("pageInput", x);
              return fwd;
    }

  • Troubleshooting page flow apps (evalguide, in particular)

    What facilities are there for troubleshooting pageflow problems? I'm looking at
    the Avitek evalguide application, and I'm finding that a link goes to a completely
    different page than the manual (and the code, seemingly) indicates. Are there
    any useful diagnostics I can turn on at the pageflow level, and perhaps at the
    webapp api level? I imagine there should be some diagnostics available at the
    Struts level, so I'll have to remind myself how to increase the output of that
    (unless someone remembers).
    I've already eliminated what I think are the obvious issues, like checking the
    security-constraints settings in the web.xml or any filters. I can't find anything
    that helps me there.

    "Mindy" <[email protected]> wrote in message
              news:402a4528$[email protected]..
              >
              > Is there a way to get the NT login name of a user in the page flows and
              jsp? We
              > want to authenticate a user belongs to a group before giving him access to
              a site
              > so the first thing in the begin method in page flow will be to get his
              login name
              > and then we have another module which validates the user belongs to a
              particular
              > group.
              Two possibilities spring to mind, NTRealm which is a security realm for
              weblogic that works with NTLM, I have no personal experience with it however
              you can search edocs for more info about it. Another alternative is jCIFS
              which includes an NTLM authentication handler for HTTP. I have used this in
              a previous life and it works great. You can view more info about it here
              http://jcifs.samba.org/src/docs/httpclient.html.
              Gerald
              

Maybe you are looking for