Page flow at login, by group

Hi, I am new to this and am struggling to get the Login Page 101 to redirect to different forms depending on the group the user belongs to.
So far I have defined 3 groups, Branch, Central and Administrators. I have created 3 users BU1, CU1 and AA1 and assigned them to a group. I have subsequently been into the user management screens and checked their assignments are correct. BU1 is in Branch, CU1 is in Central and AA1 is in Administrators.
I have defined 3 additional pages, Page 2, Page 3 and Page 4 as well as the Home Page, page 1.
In the login page 101, I have amended the login process, PL/SQL anomymous block (unconditional) to use the current_user_in_group function to test the user group and set the start page (sp) accordingly.
The tests are not returning true by the looks of it, as sp must be staying 1 and the flow sends me to page 1. If I update the assignment of P_FLOW_PAGE => :APP_ID||':2', then I can force the flow to page 2.
Where am I going wrong please ? I am trying this on a first time installation of Express 10g and Apex 4.02.
DECLARE sp varchar2(1);
BEGIN
sp:='1';
IF(htmldb_util.current_user_in_group(p_group_name=>'Administrators')) THEN sp:='2';
END IF;
IF(htmldb_util.current_user_in_group(p_group_name=>'Branch')) THEN sp:='3';
END IF;
IF(htmldb_util.current_user_in_group(p_group_name=>'Central')) THEN sp:='4';
END IF;
wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':'||sp
END;
Thanks in advance

user3473788 wrote:
Hi, I am new to this and am struggling to get the Login Page 101 to redirect to different forms depending on the group the user belongs to.
So far I have defined 3 groups, Branch, Central and Administrators. I have created 3 users BU1, CU1 and AA1 and assigned them to a group. I have subsequently been into the user management screens and checked their assignments are correct. BU1 is in Branch, CU1 is in Central and AA1 is in Administrators.
I have defined 3 additional pages, Page 2, Page 3 and Page 4 as well as the Home Page, page 1.
In the login page 101, I have amended the login process, PL/SQL anomymous block (unconditional) to use the current_user_in_group function to test the user group and set the start page (sp) accordingly.
The tests are not returning true by the looks of it, as sp must be staying 1 and the flow sends me to page 1. If I update the assignment of P_FLOW_PAGE => :APP_ID||':2', then I can force the flow to page 2.
Where am I going wrong please ? I am trying this on a first time installation of Express 10g and Apex 4.02.
DECLARE sp varchar2(1);
BEGIN
sp:='1';
IF(htmldb_util.current_user_in_group(p_group_name=>'Administrators')) THEN sp:='2';
END IF;
IF(htmldb_util.current_user_in_group(p_group_name=>'Branch')) THEN sp:='3';
END IF;
IF(htmldb_util.current_user_in_group(p_group_name=>'Central')) THEN sp:='4';
END IF;
wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':'||sp
END;
Thanks in advancecurrent user will be 'NOBODY' until authenticated, you will need to test :P101_USERNAME against the group.

Similar Messages

  • 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
              

  • 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
              

  • Page flow exception

    I have one serious problem when handling exception in page flow. ie.
    my code looks like,
    // Generated by WebLogic Workshop
    // Created on: Mon Dec 01 15:31:45 GMT+05:30 2003
    // By: kshashishekar
    package portlets.validation.validation;
    import com.bea.wlw.netui.pageflow.FormData;
    import com.bea.wlw.netui.pageflow.Forward;
    import com.bea.wlw.netui.pageflow.PageFlowController;
    import com.bea.wlw.netui.tags.html.TreeNode;
    import javax.security.auth.login.FailedLoginException;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.*;
    import com.login.CustomLogin;
    import com.bea.p13n.controls.login.UserLoginControl;
    * @jpf:controller struts-merge="struts-config-portlets-validation-validation2.xml"
    * @jpf:message-resources resources="validation.validator.Message"
    * @jpf:view-properties view-properties::
    * <!-- This data is auto-generated. Hand-editing this section is not recommended.
    -->
    * <view-properties>
    * <pageflow-object id="pageflow:/portlets/validation/validation/validationController.jpf"/>
    * <pageflow-object id="action:begin.do">
    * <property value="280" name="x"/>
    * <property value="60" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action:validate1.do#portlets.validation.validation.validationController.ValidateForm">
    * <property value="220" name="x"/>
    * <property value="200" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action:logout.do#portlets.validation.validation.validationController.ValidateForm">
    * <property value="120" name="x"/>
    * <property value="100" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action-call:@page:validate1Page1.jsp@#@action:validate1.do#portlets.validation.validation.validationController.ValidateForm@">
    * <property value="384,320,320,256" name="elbowsX"/>
    * <property value="172,172,192,192" name="elbowsY"/>
    * <property value="West_1" name="fromPort"/>
    * <property value="East_1" name="toPort"/>
    * </pageflow-object>
    * <pageflow-object id="page:validate1Page1.jsp">
    * <property value="420" name="x"/>
    * <property value="180" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action-call:@page:Result.jsp@#@action:validate1.do#portlets.validation.validation.validationController.ValidateForm@">
    * <property value="156,170,170,184" name="elbowsX"/>
    * <property value="332,332,203,203" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_2" name="toPort"/>
    * </pageflow-object>
    * <pageflow-object id="page:Result.jsp">
    * <property value="120" name="x"/>
    * <property value="340" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="page:/error.jsp">
    * <property value="40" name="x"/>
    * <property value="180" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#validate1Page1.jsp#@action:begin.do@">
    * <property value="316,350,350,384" name="elbowsX"/>
    * <property value="52,52,172,172" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#Result.jsp#@action:validate1.do#portlets.validation.validation.validationController.ValidateForm@">
    * <property value="184,170,170,156" name="elbowsX"/>
    * <property value="192,192,332,332" name="elbowsY"/>
    * <property value="West_1" name="fromPort"/>
    * <property value="East_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#validate1Page1.jsp#@action:logout.do#portlets.validation.validation.validationController.ValidateForm@">
    * <property value="156,270,270,384" name="elbowsX"/>
    * <property value="92,92,172,172" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="control:com.bea.p13n.controls.login.UserLoginControl#myControl">
    * <property value="28" name="x"/>
    * <property value="34" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="formbeanprop:portlets.validation.validation.validationController.ValidateForm#username#java.lang.String"/>
    * <pageflow-object id="formbeanprop:portlets.validation.validation.validationController.ValidateForm#password#java.lang.String"/>
    * <pageflow-object id="formbean:portlets.validation.validation.validationController.ValidateForm"/>
    * </view-properties>
    public class validationController extends PageFlowController
    * This is the control used to generate this pageflow
    * @common:control
    private UserLoginControl myControl;
    // 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="validate1Page1.jsp"
    protected Forward begin()
    return new Forward( "success" );
    * @jpf:action validation-error-page="validate1Page1.jsp"
    * @jpf:forward name="success" path="Result.jsp"
    * @jpf:catch method="exceptionHandler" type="Exception"
    protected Forward validate1(ValidateForm aForm) throws Exception
    com.bea.p13n.usermgmt.profile.ProfileWrapper var = myControl.login( aForm.username,
    aForm.password, getRequest());
    getRequest().setAttribute( "results", var );
    return new Forward("success",aForm);
    * Action encapsulating the control method :logout
    * @jpf:action
    * @jpf:forward name="success" path="validate1Page1.jsp"
    * @jpf:catch message="not authenticated" path="/error.jsp" type="Exception"
    public Forward logout( ValidateForm aForm )
    throws Exception
    myControl.logout( getRequest() );
    return new Forward( "success" );
    * @jpf:exception-handler
    * @jpf:forward name="errorPage" path="/error.jsp"
    protected Forward exceptionHandler( Exception ex, String actionName, String
    message, FormData form )
    String displayMessage = "An exception occurred in the action " + actionName;
    System.out.println ("display message "+displayMessage);
    getRequest().setAttribute( "errorMessage", displayMessage );
    return new Forward( "errorPage" );
    * FormData get and set methods may be overwritten by the Form Bean editor.
    public static class ValidateForm extends org.apache.struts.validator.ValidatorForm
    private String password;
    private String username;
    public void setUsername(String username)
    this.username = username;
    public String getUsername()
    return this.username;
    public void setPassword(String password)
    this.password = password;
    public String getPassword()
    return this.password;
    * added just to test validate (override) method.
    public ActionErrors validate(ActionMapping map, HttpServletRequest req)
    ActionErrors errors = null;
    try {
    errors = super.validate(map,req);
    }catch (Exception e)
    e.printStackTrace();
    if (errors ==null) {
    System.out.println ("errors = "+errors);
    } else
    System.out.println ("errors= "+errors);
    return errors;
    in the above code when we call "validate1" action, it will authenticate successfully
    when we enter valid username and passowrd.
    But when i enter invalid credentials page flow controller should execute "handleException"
    method but at this time i am getting an error
    Page Flow Unhandled Exception
    Exception: java.lang.IllegalArgumentException
    Message: argument type mismatch
    A java.lang.IllegalArgumentException exception was thrown and not handled by any
    Page Flow. See the console for the exception stack trace.
    please help us on how to rectify this error.
    thanks,
    shashi
    [validationController.jpf]

    Hi-
    That may be on the right track, but the /index.jsp page gets displayed in the
    portlet...I am still within the portal framework, so I don't think I am loosing
    the context...
    -Howie
    "Khurram Zafar" <[email protected]> wrote:
    >
    you are most likely redirecting to the /error.jsp page and losing the
    context for
    your portal app. The index.jsp page may be defined as your <welcome-file>
    in your
    web.xml file. The best thing to do is to save the context before visiting
    error.jsp
    and then provide a link in error.jsp to go back. Look at javadoc for
    PageURL for
    obtaining the URL to a portal page, you can then save it in session of
    pass it
    to your error page.
    "Howie Oakes" <[email protected]> wrote:
    Hello-
    I have a page flow portlet that I am testing some exception handling
    on. Right
    now when I catch an exception, I display the global /error.jsp page,
    using the
    @jpf:catch tag. The problem is when I refresh the page after viewing
    the error
    page, the pageflow always pulls up the /index.jsp page at the root of
    the webapp.
    I have to get a new session to see the original page flow.
    This only happens when I am running the Jpf as a portlet...I don't see
    this behavior
    with it stand-alone.
    I am not sure why the index.jsp page is being called...there are noreferences
    to it in my jpf code...
    thanks,
    Howie

  • Communication between multiple page flow portlets

    Hi, I am working on weblogic portal 8.1.
    I've been struggling to communicate between different page flow portlets,
    I have a login page flow portlet and i need to submit login details to indeex page after login action is done.
    I am able to do this by using PageUrl class and RequestDispatcher's forward method using definition label of the index page flow portlet.
    but it is not happening again when i logged out.
    If anybody have worked on it, please let me know the soltution.
    Thanks,
    Vidya sagar

    Not sure whether you tried this option(I tried it works for me).
    configuration has to be done is portlet-2:
    =========================
    Create an custom event namely(messageCustomEvent) and also add an action for it for invoking a portlet method getMessage in Portlet-2.
    //Place this method in Portlet-2
    public void getMessage(ActionRequest request, ActionResponse response,
    Event event) {
    CustomEvent customEvent = (CustomEvent) event;
    String message = (String) customEvent.getPayload();
    response.setRenderParameter("message0", message);
    configuration has to be done is portlet-1:
    =========================
    when click on Login in portlet1, in the pageflow code you fire an custom event as shown below
    PortletBackingContext context =
    PortletBackingContext.getPortletBackingContext(getRequest());
    context.fireCustomEvent("messageCustomEvent", form.getMessage());
    return new Forward("success");
    Thanks & Regards,
    Murali.
    ============

  • Modify unbounded task flow for login process

    I wonder if I can use the unbounded task flow for login process. I have a login page, a home page and a change password page. As per the requirements, I need to show the login page first, if user password is expired, I need to show change password page, after user save the new password, I show the home page. If user password is not expired, then we go to home page directly.
    I have modified the unbound task flow adfc-config.xml. I have created a method call, which references a method in my managed bean to check the redirect page. I have created a router, which would go to change password page or the home page based on different outcomes. But the problem is, every time when I run the application, it always goes to the home page directly, even when the user password is already expired. I have set up break point at the checking redirect page method in my managed bean, looks like it never got called.
    Did I miss any steps here? Please advise. Thanks.

    A method is not a runnable object in your pageflow - so you can't start from it.
    You need to start from a page when your run your project.
    One option - convert your flow to be a bounded flow with the method as a default URL and then run it.
    See - https://blogs.oracle.com/shay/entry/passing_parameters_to_adf_appl

  • Workshop 8.1: Page Flow Action and jsp:include

    Hi everybody.
    Can i use jsp:include to "include" a page flow action ?
    I've tried it, but odd things are happening: The resource got included, but fragments of html source "around" it are been lost.
    Any ideas ?
    Thanks in advance.

    Hi Daniel
    There are 2 ways you can acheive this.
    1) Using something called Pageflowscoped form for this. This will let you use arrays for checkbox group.
    The main part will be that you need to define a member varaible of the form at the pageflow level there by the data will not be lost
    2) Using Request scoped form like you have now but need to modify the getter method to populate the "searchResult" object.
    public List getSearchResult() {
    if( null == searchResult){
    System.out.println(" Pouplate the searchResult here. ");
    searchResult= new ArrayList();
    //populate the default values.
    return this.searchResult;
    More info at:
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conReqScopedVsPageScopedBean.html
    I have a sample with pageflowscoped bean and requestscoped bean that I can send you if you provide your email address.
    Unfortunately we cannot attach files in the newsgroup.
    Thanks
    Vimala

  • Re: Page Flow Question

    John,
    We are looking into this and will get back to you.
    Regards,
    Anurag
    "John Hundley" <[email protected]> wrote in message
    news:3f184486$[email protected]..
    >
    Hi,
    I have developed a Page Flow application that has more than one entrypoint into
    a given set of pages that perform updates to a database. Depending onwhere the
    user entered the pages from I want to return to that page once the personhas
    completed making the updates. I have been toying with the return to pagebut
    that only works to go to the previous page and no further. I was thinkingI could
    set a variable in the globalApp class that would point to the initialentry page
    but I would have to do that in the .jsp and I haven't quite figured outhow to
    access globalApp from a .jsp. Is this the best approach or are therebetter ways
    of doing what I am trying to do? Has anyone done this sort of thing andhave an
    example?
    Thanks,
    John

    Thanks suggestion from Eddie and Gregory! Actually Eddie's suggestion by putting
    everything in a single line did work, however I encountered a even weirder problem:
    I am using a plugin called Chime Pro from MDL, by putting everything in a single
    line, the plugin is able to render picture on the test brower on server machine,
    however, the picture still won't be rendered on the client browser (on another
    PC with plugin installed), the weirdest thing is that when I start the TCPtrace
    utility:http://www.pocketsoap.com/tcptrace/, the plugin start to work.
    I initially think it may due to the port problem, I switched the server port to
    the common 8080, it still won't work.
    Does anyone in this group use Chime Pro plugin? Any suggestion is appreciated.
    Thanks
    Zhenhao
    Eddie O'Neil <[email protected]> wrote:
    Zhenhao--
    Try putting everything on a single line; it looks like the \n's at the
    end of the taglib definitions are putting returns in the output page.
    Eddie
    Zhenhao Qi wrote:
    Hi Eddie,
    Thanks for the hint, by using <netui:content/> tag, I did get rid ofthe HTML
    <span> ...</span> wrap. However, I still got several empty lines beforemy output
    (please see the attached returned-format.txt and the format_wanted.txtand the
    screen shot ), this causes my plugin refuse to render the picture.I think those
    empty line is due to my code below, somehow the WLS output newlineif I have code
    on that line "
    <%@ page contentType="chemical/x-mdl-molfile"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@taglib prefix="netui" uri="netui-tags-html.tld"%>
    <netui-data:callPageFlow method="GetMolbyscode" resultId="jpfMol">
    <netui-data:methodParameter value="{url.Sample_code}"/>
    </netui-data:callPageFlow>
    <netui:content value="{pageContext.jpfMol}" >
    </netui:content>
    I think we are getting close to solve the problem, but this maybe adifficult
    one due to workshop's own setting.
    Thanks!
    zq
    Eddie O'Neil <[email protected]> wrote:
    Zhenhao--
    Try using the <netui:content/> tag; this simply writes the text to
    the output stream and does not wrap it in an HTML <span>...</span>
    as
    the <netui:label/> tag does.
    Let me know if that helps...
    Eddie
    Zhenhao Qi wrote:
    Hi,
    Looks like my workshop debugger is behaving better this afternoon.My apology
    for the previous message, the "call PageFlow" did return the stringI expected,
    However, the format is little off from what I expected, please seethe attached
    return format and the format I wanted.
    I have the following jsp code:
    <%@ page contentType="chemical/x-mdl-molfile"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@taglib prefix="netui" uri="netui-tags-html.tld"%>
    <netui-data:callPageFlow method="GetMolbyscode" resultId="jpfMol">
    <netui-data:methodParameter value="{url.Sample_code}"/>
    </netui-data:callPageFlow>
    <netui:label value="{pageContext.jpfMol}" >
    </netui:label>
    Is there any way inside workshop that I maybe able to tweak code alittle to make
    the format suit my need, this is critical for my plugin to recognizethe format
    to reder some picture.
    Thanks!
    Zq
    "Zhenhao Qi" <[email protected]> wrote:
    Hi Eddie,
    Thanks a lot for the info.! the "{url.Sample_code}" did solve my
    dynamic
    data
    binding problem, however it looks like it did not return any thingwhen
    I use
    the following code:
    <netui-data:callPageFlow method="GetMolbyscode" resultId="jpfMol">
    <netui-data:methodParameter value="{url.Sample_code}"/>
    </netui-data:callPageFlow>
    <netui:label value="{pageContext.jpfMol}" >
    </netui:label>
    The method "GetMolbyscode" in the .jpf as following:
    public String GetMolbyscode(String S_code)
    try {
    java.sql.Clob molfile = structuredb.getmolbyscode(S_code);
    int len = (int)molfile.length();
    String molfil = molfile.getSubString(1, len);
    return molfil;
    catch (SQLException e) {
    System.err.print("Caught Exception : ") ;
    e.printStackTrace() ;
    return null;
    I did use "toggle breakpoint" to step through the excution of "GetMolbyscode",
    I got the expected "molfil". I need to particularly mention that
    the
    returned
    string "molfil" contains several "\n" inside it, I am wondering this
    may cause
    the problem.
    By the way, the "toggle breakpoint" debugging function sometimesdid
    not work,
    I am wondering why.
    Thanks!
    Zq
    Eddie O'Neil <[email protected]> wrote:
    Zhenhao--
    The NetUI tags use data binding expressions to access data. Oneof
    the ways you could do this is to use the "url" binding context,
    which
    provides access to the first parameter that shows up on the URLfor
    each
    parameter key; this is equivalent to your getParameter(...) call.
    Replace your methodParameter with this:
    <netui-data:methodParameter value="{url.Sample_code}"/>
    Hope that helps...
    Eddie
    Zhenhao Qi wrote:
    Hi All,
    I am new to this newsgroup. I am using workshop 8.1 and try to
    call
    dynamically
    the PageFolow method, but it won't work, is there alternatives?
    I have the follwing codes:
    <%
    String S_code = request.getParameter("Sample_code");
    %>
    <netui-data:callPageFlow method="GetMolbyscode" resultId="jpfmol">
    <netui-data:methodParameter value="<%=S_code%>"/>
    </netui-data:callPageFlow>
    However, it give me the error: this attribute does not supportrequest
    time value.
    Thanks!
    zq
    ISISHOST03270216272D 1 1.00000 0.00000 26670
    41 44 0 0 0 999 V2000
    2.7381 -3.0319 0.0000 C 0 0 0 0 0 0 0 00
    3.5627 -3.0960 0.0000 C 0 0 0 0 0 0 0 00
    4.0298 -2.4093 0.0000 C 0 0 0 0 0 0 0 00
    3.6710 -1.6674 0.0000 C 0 0 0 0 0 0 0 00
    2.3818 -2.2873 0.0000 C 0 0 0 0 0 0 0 00
    2.8488 -1.6080 0.0000 C 0 0 0 0 0 0 0 00
    2.3471 -0.9539 0.0000 N 0 0 3 0 0 0 0 00
    1.5699 -1.2290 0.0000 C 0 0 0 0 0 0 0 00
    1.5915 -2.0530 0.0000 C 0 0 0 0 0 0 0 00
    0.8901 -0.7616 0.0000 C 0 0 0 0 0 0 0 00
    0.9549 0.0608 0.0000 O 0 0 0 0 0 0 0 00
    0.1454 -1.1167 0.0000 N 0 0 0 0 0 0 0 00
    -0.5344 -0.6494 0.0000 C 0 0 0 0 0 0 0 00
    -0.4678 0.1701 0.0000 C 0 0 0 0 0 0 0 00
    -1.1469 0.6373 0.0000 C 0 0 0 0 0 0 0 00
    -1.8925 0.2822 0.0000 C 0 0 0 0 0 0 0 00
    -1.9550 -0.5447 0.0000 C 0 0 0 0 0 0 0 00
    -1.2751 -1.0082 0.0000 C 0 0 0 0 0 0 0 00
    -1.0817 1.4597 0.0000 C 0 0 3 0 0 0 0 00
    -0.3368 1.8145 0.0000 C 0 0 0 0 0 0 0 00
    -1.7613 1.9274 0.0000 C 0 0 0 0 0 0 0 00
    -0.3041 1.1839 0.0000 C 0 0 0 0 0 0 0 00
    -1.3358 -1.8310 0.0000 O 0 0 0 0 0 0 0 00
    -2.0787 -2.1898 0.0000 C 0 0 0 0 0 0 0 00
    -2.6984 -0.9024 0.0000 N 0 0 0 0 0 0 0 00
    -3.3799 -0.4375 0.0000 S 0 0 3 0 0 0 0 00
    -4.1233 -0.7952 0.0000 C 0 0 0 0 0 0 0 00
    -2.7549 0.1042 0.0000 O 0 0 0 0 0 0 0 00
    -3.7404 0.3098 0.0000 O 0 0 0 0 0 0 0 00
    4.1342 -0.9847 0.0000 N 0 0 0 0 0 0 0 00
    4.9571 -1.0445 0.0000 C 0 0 0 0 0 0 0 00
    5.4203 -0.3619 0.0000 C 0 0 0 0 0 0 0 00
    5.3167 -1.7870 0.0000 O 0 0 0 0 0 0 0 00
    6.2476 -0.4235 0.0000 C 0 0 0 0 0 0 0 00
    6.7107 0.2583 0.0000 C 0 0 0 0 0 0 0 00
    6.3511 1.0018 0.0000 C 0 0 0 0 0 0 0 00
    5.5239 1.0593 0.0000 N 0 0 0 0 0 0 0 00
    5.0645 0.3766 0.0000 C 0 0 0 0 0 0 0 00
    6.8135 1.6851 0.0000 N 0 0 0 0 0 0 0 00
    7.6364 1.6264 0.0000 C 0 0 0 0 0 0 0 00
    2.5816 -0.1629 0.0000 C 0 0 0 0 0 0 0 00
    9 5 1 0 0 0
    19 20 1 0 0 0
    4 6 1 0 0 0
    19 21 1 0 0 0
    8 10 1 0 0 0
    19 22 1 0 0 0
    5 6 2 0 0 0
    18 23 1 0 0 0
    10 11 2 0 0 0
    23 24 1 0 0 0
    1 2 2 0 0 0
    17 25 1 0 0 0
    10 12 1 0 0 0
    25 26 1 0 0 0
    5 1 1 0 0 0
    26 27 1 0 0 0
    12 13 1 0 0 0
    26 28 2 0 0 0
    2 3 1 0 0 0
    26 29 2 0 0 0
    13 14 2 0 0 0
    4 30 1 0 0 0
    30 31 1 0 0 0
    14 15 1 0 0 0
    31 32 1 0 0 0
    3 4 2 0 0 0
    31 33 2 0 0 0
    15 16 2 0 0 0
    32 34 2 0 0 0
    6 7 1 0 0 0
    34 35 1 0 0 0
    16 17 1 0 0 0
    35 36 2 0 0 0
    7 8 1 0 0 0
    36 37 1 0 0 0
    17 18 2 0 0 0
    37 38 2 0 0 0
    38 32 1 0 0 0
    18 13 1 0 0 0
    36 39 1 0 0 0
    8 9 2 0 0 0
    39 40 1 0 0 0
    15 19 1 0 0 0
    7 41 1 0 0 0
    M END
    </span>------------------------------------------------------------------------

  • Page Flow Diagram

    I need to create a diagram of an application and the page flows. I'll probably use visio. Has any one done anything similar? or does anyone have a script to query the flows schema and return each page with the branches from it. It would be a lot easier to document if I had a printed list of pages rather then flicking back to htmldb for each page and branch.
    While I'm here, is there a way to record the preferences I set regarding number of pages to list and the group selected to always filter unless I change it. It's most annoying to have to refilter and find the page I want each time. Even better would be if I could filter the list of pages based on a selected tab set.

    Use Visio Professional >> Database >> Database Model Diagramm
    goto menue: Database >> Reverse Engineer select your data source >>> select tables and off you go
    Visio does everything for you!
    sick planet

  • 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?

  • 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.

  • Struts Page Flow Editor Unusably Slow

    I find the Struts page flow editor unusably slow.
    Opening a diagram takes ~ 30 s
    Dropping something from the component palette takes 10s
    Just selecting something takes 1-2 seconds.
    Moving objects on the diagram takes so long it looks as if nothing is happening so you end up trying to move things twice.
    All the diagrammers are slow, but this one is appalling.
    My hardware is Pentium M 1.7Ghz 1GB RAM.
    I have plenty of RAM free

    Not many.
    Here is the struts config
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
              "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
         <form-beans>
              <form-bean name="loginForm" type="com.ardeo.emdt.struts.LoginForm"/>
              <form-bean name="patientSearchForm" type="com.ardeo.emdt.struts.PatientSearchForm"/>
              <form-bean name="editPatientDetailsForm" type="com.ardeo.emdt.struts.EditPatientDetailsForm"/>
              <form-bean name="consultationNoteForm" type="com.ardeo.emdt.struts.ConsultationNoteForm"/>
              <form-bean name="userForm" type="com.ardeo.emdt.struts.UserForm"/>
              <form-bean name="editListForm" type="com.ardeo.emdt.struts.ListForm"/>
              <form-bean name="roleForm" type="com.ardeo.emdt.struts.RoleForm"/>
              <form-bean name="noteRolesForm" type="com.ardeo.emdt.struts.NoteRolesForm"/>
         </form-beans>
         <global-exceptions>
              <exception key="persistence.exception" type="com.ardeo.persistence.PersistenceException" handler="com.ardeo.emdt.struts.PersistenceExceptionHandler"/>
         </global-exceptions>
         <global-forwards>
              <forward name="persistenceError" path="/persistenceError.jsp"/>
              <forward name="loginPage" path="/login.jsp"/>
         </global-forwards>
         <action-mappings>
              <action path="/login" type="com.ardeo.emdt.struts.LoginAction" name="loginForm" scope="request" input="/login.jsp">
                   <forward name="success" path="/patientSearch.jsp"/>
              </action>
              <action path="/patientSearch" type="com.ardeo.emdt.struts.PatientSearchAction" name="patientSearchForm" scope="request" input="/patientSearch.jsp">
                   <forward name="singleResult" path="/patientDetails.jsp"/>
                   <forward name="multiResult" path="/patientSearch.jsp"/>
              </action>
              <action path="/editPatientDetails" type="com.ardeo.emdt.struts.EditPatientDetailsAction" name="editPatientDetailsForm" scope="request" input="/patientDetails.jsp">
                   <forward name="success" path="/patientDetails.jsp"/>
              </action>
              <action path="/logout" type="com.ardeo.emdt.struts.LogoutAction" scope="request"/>
              <action path="/editNoteRoles" type="com.ardeo.emdt.struts.EditNoteRolesAction" name="noteRolesForm" scope="request" input="/editRoles.jsp"/>
              <action path="/editUser" type="com.ardeo.emdt.struts.EditUserAction" name="userForm" scope="request" input="/editUsers.jsp"/>
              <action path="/createUser" type="com.ardeo.emdt.struts.CreateUserAction" name="userForm" scope="request" input="/createUsers.jsp"/>
              <action path="/createRole" type="com.ardeo.emdt.struts.CreateRoleAction" name="roleForm" scope="request" input="/createRoles.jsp"/>
              <action path="/updateList" type="com.ardeo.emdt.struts.EditListAction" name="editListForm" scope="request" input="/editList.jsp"/>
              <action path="/createConsultationNote" type="com.ardeo.emdt.struts.CreateConsultationNoteAction" scope="request" input="/consultationNote.jsp"/>
              <action path="/getConsultationNote" type="com.ardeo.emdt.struts.GetConsultationNoteAction" scope="request" input="/consultationNote.jsp">
                   <forward name="failed" path="/patientDetails.jsp"/>
              </action>
              <action path="/deleteConsultationNote" type="com.ardeo.emdt.struts.DeleteConsultationNoteAction" scope="request" input="/getPatientHistory.do">
                   <forward name="failed" path="/getPatientHistory.do"/>
              </action>
              <action path="/getPatientHistory" type="com.ardeo.emdt.struts.GetPatientHistoryAction" scope="request" input="/patientHistory.jsp"/>
              <action path="/getPatientSummary" type="com.ardeo.emdt.struts.GetPatientSummaryAction" scope="request" input="/patientSummary.jsp">
                   <forward name="singleForm" path="/patientSummary.jsp"/>
                   <forward name="duplicateForms" path="/selectSummaryForms.do"/>
              </action>
              <action path="/viewChangelog" type="com.ardeo.emdt.struts.GetChangelogAction" scope="request" input="/changelog.jsp"/>
              <action path="/updateForm" type="com.ardeo.emdt.struts.ConsultationNoteAction" name="consultationNoteForm" scope="request" input="/consultationNote.jsp">
                   <forward name="save" path="/patientDetails.jsp"/>
                   <forward name="cancel" path="/patientDetails.jsp"/>
              </action>
              <action path="/selectSummaryForms" type="com.ardeo.emdt.struts.SelectSummaryFormsAction"/>
         </action-mappings>
         <message-resources parameter="application"/>
    </struts-config>

  • Page flow & deployment issue

    My application works fine when I right click and run the entry page (LoginPage.jspx, or Welcome.jspx). However, the page flow is not working (totally broken) when I deploy the app to a server machine (or even just IntegratedWebLogicServer instance), for example: after you click on the login button, it will not direct to the main.jspx.
    It's really strange, I assume when you right click and run the entry page, it will start IntegratedWebLogicServer (if not started yet), and deploy the application, and render the page. It's exactly the same process as deploying to IntegratedWebLogicServer, and run the entry page in a browser.
    Does anybody have a clue?
    Thanks!

    As Chris rightly hints, the reason that navigation is not working is that you are running a JSPX page whereas you want to be running a task flow activity - the URL is usually the same as Chris indicates (remove ".jspx" from the end), but it doesn't have to be. When you run a JSPX, JDev is doing some behind-the-scenes magic for you and running the URL for the task flow instead of the JSPX; you can see this by looking at the URL when you run from within JDev - use the same URL (ok, with proper host/port) for running it from an external WLS and you should be fine.
    Hope that makes sense.
    John

  • Page Flow Problem

    Hello,
    Im new for jdeveloper. Im ORAforms pl/sql programmer and no deep knowledge about java.
    Im following the sample on https://blogs.oracle.com/shay/entry/for_some_reason_one_common.
    Im trying this sample as forms manage security and before im diving deep to jdeveloper i need to study basic for this new IDE & framework{managed beans,biding..etc}.
    And built it in scratch but i cannot make it navigate to another page after click the button heres the code i dont know how to explain much because im new maybe sharing the code would help.
    My work not complete yet as when password not correct. just want first to navigate the welcome page when return value is GOOD.
    Only need also when return value is BAD just display dialog or error message.
    How to bind the manage bean?
    VERSION : Studio Edition Version 11.1.2.3.0
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <jsp:directive.page contentType="text/html;charset=UTF-8"/>
        <f:view>
            <af:document title="LogInPage.jspx" id="d1">
                <af:form id="f1">
                    <af:panelStretchLayout topHeight="90px" startWidth="100px" id="psl1">
                        <f:facet name="top">
                            <af:panelStretchLayout id="psl4" startWidth="526px" endWidth="326px" topHeight="5px"
                                                   bottomHeight="0px">
                                <f:facet name="bottom"/>
                                <f:facet name="center"/>
                                <f:facet name="start">
                                    <af:image source="/images/njc_banner.PNG" id="i1"/>
                                </f:facet>
                                <f:facet name="end"/>
                                <f:facet name="top"/>
                            </af:panelStretchLayout>
                        </f:facet>
                        <f:facet name="center">
                            <!-- id="af_twocol_left_full_header_Stretched"   -->
                            <af:decorativeBox theme="dark" id="db2">
                                <f:facet name="center">
                                    <af:panelStretchLayout startWidth="334px" id="psl2">
                                        <f:facet name="center">
                                            <af:decorativeBox theme="medium" id="db1">
                                                <f:facet name="center"/>
                                            </af:decorativeBox>
                                        </f:facet>
                                        <f:facet name="start">
                                            <af:decorativeBox id="db3" theme="medium" dimensionsFrom="parent">
                                                <f:facet name="center">
                                                    <af:panelFormLayout id="pfl1" inlineStyle="height:365px;">
                                                        <f:facet name="footer">
                                                            <af:panelBorderLayout id="pbl1"
                                                                                  inlineStyle="width:275px; height:27px;">
                                                                <f:facet name="start">
                                                                    <af:group id="g1">
                                                                        <af:panelBorderLayout id="pbl2"
                                                                                              inlineStyle="height:173px; width:219px;">
                                                                            <f:facet name="right">
                                                                                <af:group id="g3">
                                                                                    <af:spacer width="38" height="16"
                                                                                               id="s2"/>
                                                                                    <af:group id="g2">
                                                                                        <af:commandButton text="Log In"
                                                                                                          id="cb1"
                                                                                                          action="login_action()"/>
                                                                                    </af:group>
                                                                                </af:group>
                                                                            </f:facet>
                                                                        </af:panelBorderLayout>
                                                                    </af:group>
                                                                </f:facet>
                                                            </af:panelBorderLayout>
                                                        </f:facet>
                                                        <af:spacer width="179" height="65" id="s1"/>
                                                        <af:inputText label="Username" id="it1" showRequired="true"
                                                                      requiredMessageDetail="Please Enter Your Username"
                                                                      autoSubmit="true" autoComplete="on" required="true"/>
                                                        <af:inputText label="Password" id="it2" secret="true"
                                                                      showRequired="true"
                                                                      requiredMessageDetail="Please Enter Your Password"
                                                                      autoSubmit="true" required="true"/>
                                                    </af:panelFormLayout>
                                                </f:facet>
                                                <f:facet name="top"/>
                                            </af:decorativeBox>
                                        </f:facet>
                                    </af:panelStretchLayout>
                                </f:facet>
                            </af:decorativeBox>
                        </f:facet>
                    </af:panelStretchLayout>
                </af:form>
            </af:document>
        </f:view>
    </jsp:root>
    My Managed Bean
    package njchis;
    import oracle.adf.view.rich.component.rich.input.RichInputFile;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import java.sql.*;
    import oracle.jdbc.OracleDriver;
    public class GetUserName {
        private RichInputText it1;
        private RichInputText it2;
        private RichCommandButton cb1;
        public void setIt1(RichInputText it1) {
            this.it1 = it1;
        public RichInputText getIt1() {
            return it1;
        public void setIt2(RichInputText it2) {
            this.it2 = it2;
        public RichInputText getIt2() {
            return it2;
        public void setCb1(RichCommandButton cb1) {
            this.cb1 = cb1;
        public RichCommandButton getCb1() {
            return cb1;
        public String login_action() {
            // Add event code here...
            String user = this.getIt1().getValue().toString();
            String pass = this.getIt2().getValue().toString();
            Connection conn;
            try {
                conn = getConnection();
                Statement stmt = conn.createStatement();
                ResultSet rset = stmt.executeQuery ("SELECT 'x' FROM itdept.OFFICE_USERS where OFFICE_EMP_NO = '"+user+"' and OFFICE_PASS = '"+pass+"'");
                if (rset.next())  {
                    conn.close();
                       return "good";                       
                conn.close();
            } catch (SQLException e) {
                System.out.println(e);
            return "bad";
        public static Connection getConnection() throws SQLException {
            String username = "itdept";
            String password = "itdept";
            String thinConn = "jdbc:oracle:thin:@0.0.0.0:1521:XE";
            DriverManager.registerDriver(new OracleDriver());
            Connection conn =
                DriverManager.getConnection(thinConn, username, password);
            conn.setAutoCommit(false);
            return conn;
    PAGE FLOWS
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee">
      <application>
        <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
      </application>
      <navigation-rule>
        <from-view-id>/LogInPage.jspx</from-view-id>
        <navigation-case>
          <from-outcome>good</from-outcome>
          <to-view-id>/Welcome.jspx</to-view-id>
        </navigation-case>
      </navigation-rule>
      <managed-bean>
        <managed-bean-name>GetUserName</managed-bean-name>
        <managed-bean-class>njchis.GetUserName</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
    </faces-config>Edited by: ck on Nov 8, 2012 1:31 AM

    hello,
    thank you for your reply.
    i will try your solution about the message but how about the navigation page to Welcome.jpfx when it returns GOOD?
    I will try first this simple thing before im going to deep on adf. I think adf is MVC thing.Need more study first but before that i need to familiar with all LAYOUT components and the IDE itself.
    thank you.
    Edited by: ck on Nov 8, 2012 9:56 AM

  • Pages in page flow, adfc-config cannot be protected by ADF security

    Hi,
    I found the pages in the page flows other than adfc-config can be protected by ADF security. For example, there is a page named welcome.jspx in adfc-config, I grant view permission only to authenticated-role. After deployed to Weblogic, I can visit the page without login. Is it a bug?
    Regards,

    Cheney,
    did you read the documentation ? http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/adding_security.htm#CHDBJEAJ
    Pages in unbounded task flows must be protected itself.
    Frank

Maybe you are looking for