Workshop 8.1 - jsp:include an Page Flow action resource

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

Similar Messages

  • 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

  • Including a page flow in header

    Hi all,
    I want to include a page flow in header section of a portal.
    I tried with JSP:include tag , but I'm getting message unable to find action .
    Is it possible ?
    thanks,
    sathish

    Sathish-
    Through the use of custom and standard controls, I have incorporated authentication
    and user management in my jsps. There is a netui tag that you can utilize to
    reference a control. I have found the easiest way to add a control is to drag
    it from my tree onto the JSP.
    As for getting pageFlow into my header, I haven't tried yet.
    Eric
    "Sathish Venkatesan" <[email protected]> wrote:
    >
    Eric,
    I have checked with support. This functionality is not supported in the
    current
    release.
    I want to try a different approach.
    I want to use a custom java control in jsp ?
    Did you had a chance to try it out and had any luck ?
    thanks,
    sathish
    "Eric Ballou" <[email protected]> wrote:
    Sathish-
    Have you tried a global pageflow? Also, did you include the netui tags
    in the
    pageflow? I personally have thought about doing the same, but I was
    concerned
    about using the jsp:include as some session information doesn't always
    transfer
    or call properly in an include. One idea may be to use a reference/render
    to
    a portlet. Those are just approach ideas I haven't tried, but may soon.
    Hope
    that at least gives you a starting point.
    Eric
    "Sathish Venkatesan" <[email protected]> wrote:
    Hi all,
    I want to include a page flow in header section of a portal.
    I tried with JSP:include tag , but I'm getting message unable to find
    action .
    Is it possible ?
    thanks,
    sathish

  • ADF Page Flow Action - Page Refresh

    Hello,
    BACKGROUND
    I'm working on a POC development environment using Oracle technologies. I'm using a Windows XP SP3 machine with JDeveloper 11.1.1.5 and WebLogic 10.3. What I have currently setup is:
    - Work in Jdeveloper 11.1.1.5 to edit code sources etc
    - Build project and EAR using Ant
    - Deploy EAR to WebLogic 10.3 using WLST
    The JDeveloper project was created as a WebCenter Portal Application however I don't use any of the portal features nor are there any included in the project (we might use this in the future). It's a basic vanilla ADF application at the moment with a few JSPs, a placeholder data control and 1 bounded and unbounded task flows.
    PROBLEM
    The package builds and deploys fine and I can view a landing page ok. The problem is when I try and click a button or link that goes to another page in the Page Flow the page just seems to refresh. I can see that a request is hitting the server but it would seem the framework isn't invoking the action.
    EXTRA INFO / DEBUG
    The weird thing is, if I right click a page in JDeveloper and run it in the integrated weblogic the application works fine. I thought it might be my build process so I tried right clicking and exporting an EAR file from JDeveloper and deploying that into my WebLogic but that one fails with the same refresh problem as my Ant generated one.
    I have done a file and directory comparison of the EAR and it all is the same. This lead me to believe it might be my WebLogic server/domain, so I deployed my Ant generated EAR manually into the integrated JDeveloper weblogic in which the auto deploy application is working. This however still fails with the refresh problem. It must be something to do with my EAR but I can't for the life of me figure it out as it all looks the same!
    I do get a few warnings when deploying, hopefully these can help:
    ####<11/10/2011 11:00:19 AM EST> <Warning> <J2EE> <OVLD630422KV1S> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <3fe29258d1efb468:5549c41:132efedbfd7:-8000-0000000000000100> <1318291219078> <BEA-160140> <Unresolved optional package references (in META-INF/MANIFEST.MF): [Extension-Name: oracle.apps.common.resource, referenced from: C:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\oracle.webcenter.framework\l81aqz]. Make sure the referenced optional package has been deployed as a library.>
    ####<11/10/2011 11:00:21 AM EST> <Warning> <J2EE> <OVLD630422KV1S> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <3fe29258d1efb468:5549c41:132efedbfd7:-8000-0000000000000100> <1318291221031> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application MyApp-0.1 is not versioned.>
    ####<11/10/2011 11:00:36 AM EST> <Warning> <Default> <OVLD630422KV1S> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <3fe29258d1efb468:5549c41:132efedbfd7:-8000-0000000000000104> <1318291236562> <J2EE JMX-46238> <Cannot map nonserializable type "interface oracle.adf.mbean.share.config.runtime.resourcebundle.BundleListType" to Open MBean Type for mbean interface oracle.adf.mbean.share.config.runtime.resourcebundle.AdfResourceBundleConfigMXBean, attribute BundleList.>
    Cheers,
    Ross

    Oh! I see now yes that seems to have fixed it. It seems that if you create a page as .jsp and .jspx they are slightly different too.
    .jspx has this around the content of the page
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    </jsp:root>
    The .jsp does not. So when you hit the .jsp page (e.g. test.jsp) in the browser without the extension (e.g. url:port/myapp/faces/test) you get a 404 not found.
    Hitting one that was created as a .jspx page with the extra XML stuff in the file works ok when you drop the extension.
    So just for clarification, should you use .jspx for 'pages' and .jsp for fragments of a page?

  • Jsp:include pointing to an action on oc4j 9.0.2

    I have set "<jsp:include page="action.do" flush="true">".
    The action is an action forward and goes to a jsp.
    But i get the following error running on oc4j 9.0.2 java.lang.IllegalStateException: Response has already been committed.
    I have tested it on oc4j 9.0.3 and it works, but i´d like to know if there´s a way to solve it on oc4j 9.0.2
    Thanks

    I added -Xcheck:jni and -Xcheck:nabounds to the command line and got this one now :
    500 Internal Server Error
    Error parsing JSP page /westflo-fsweb/main/header.jsp
    Error creating jsp-page instance: java.lang.ClassFormatError: __jspPage8_main_header_jsp (Method "pushBody" has illegal signature "()Ljavax/servonInfo.classjavax/servlet/j")
    My whole command line is :
    /usr/java130_wei/bin/java -ms128m -mx256m -Xcheck:jni -Xcheck:nabounds -Xnoclassgc -verbosegc -Duser.dir=/usr/oc4j/j2ee/home -Denvironment=DEV2GMSFS -Dwestflo.dir=/website/DEV2/GMSFS/oc4j_instance2/westflo/westflo/ -Ddeployment.dir=/website/DEV2/GMSFS/oc4j_instance2/pie/gms/ -Demissionrc.dir=/website/DEV2/GMSFS/oc4j_instance2/emissionrc/emissionrc-web/ -jar /usr/oc4j/j2ee/home/oc4j.jar -out /website/DEV2/GMSFS/oc4j_instance2/oc4j_config/log/server.log -err /website/DEV2/GMSFS/oc4j_instance2/oc4j_config/log/oc4j.err -config /website/DEV2/GMSFS/oc4j_instance2/oc4j_config/config/server.xml

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

  • How to link 2 page flow controllers in Workshop

    Hello there,
    I have been playing with rowSet controls and page flows in WorkShop for a few days now and I can see that the creation of both of these is straight forward.
    The question that I have is ... having created the page flow for a given rowSet control, say, "customersController.jpf" -- how can I click on a given row and pass a parameter to, say, "ordersControler.jpf" and have ordersController.jpf query the database based on the parameter passed to it?
    At this point I have these 2 page flows which work okay in isolation. So, we have:
    /customers/customersController.jpf    [custid, name, address, etc]
    /orders/ordersController.jpf    [orderid, date, total, etc]
    I have already managed to pass the custid parameter when clicking on the custid field for a given customer on the customersController.jpf page.
    URL looks something like this:
    http://localhost:7001/myApp/customers/showOrders.do?_autoscope__rowId=customersControllerGridName%7ECUSTID%7E1004
    "showOrders.do" is, of course, an action that calls ordersController.jpf.
    We can see that the customer id (CUSTID) parameter is being passed (1004). Now, how can I modify ordersController.jpf and orders.jcx so that only the orders for customer 1004 are returned by ordersController.jpf? By default, all the order in the database are returned.
    Thanks a million,
    Manuel
    Message was edited by:
    manu_moreno

    Hi manu_moreno,
    You should create an Event handler.
    On the Property Editor, click on the "Event Handler" option.
    On "Add Handler..." you should select "Handle Page Flow Event". This way you can trigger a Page Flow action everytime an action in another portlet is called.
    The parameters I suggest you put on the Session.
    Hope this Helps,
    Pedro Oguri

  • How to moidfy ant file to compile page flow files only

    Hello,
    Our existing application is compiled with standard ANT task and running on weblogic server. Now I try to change the jsp part using page flow and weblogic workshop.
    I think I still need to create an application and a project that contains the page flow files. How can I modify the the ANT file and compile the page flow files only, then these files can be packed with other files into a WAR file?
    Thank you for the help in advance.
    Zhong

    Hi,
    You can go through this weblog Handling Of Non-HTML Documents by Brian. It would be useful to you.
    /people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
    Regards,
    Ravikiran.C

  • Exiting a page flow

    Hi guys, and thanks a lot for answering my previous questions.
    Now i am wondering; is there a way to explicitly exit a page flow?
    Regards,
    Håvard Nesvold

    Sathish-
    Through the use of custom and standard controls, I have incorporated authentication
    and user management in my jsps. There is a netui tag that you can utilize to
    reference a control. I have found the easiest way to add a control is to drag
    it from my tree onto the JSP.
    As for getting pageFlow into my header, I haven't tried yet.
    Eric
    "Sathish Venkatesan" <[email protected]> wrote:
    >
    Eric,
    I have checked with support. This functionality is not supported in the
    current
    release.
    I want to try a different approach.
    I want to use a custom java control in jsp ?
    Did you had a chance to try it out and had any luck ?
    thanks,
    sathish
    "Eric Ballou" <[email protected]> wrote:
    Sathish-
    Have you tried a global pageflow? Also, did you include the netui tags
    in the
    pageflow? I personally have thought about doing the same, but I was
    concerned
    about using the jsp:include as some session information doesn't always
    transfer
    or call properly in an include. One idea may be to use a reference/render
    to
    a portlet. Those are just approach ideas I haven't tried, but may soon.
    Hope
    that at least gives you a starting point.
    Eric
    "Sathish Venkatesan" <[email protected]> wrote:
    Hi all,
    I want to include a page flow in header section of a portal.
    I tried with JSP:include tag , but I'm getting message unable to find
    action .
    Is it possible ?
    thanks,
    sathish

  • 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

  • 3 level jsp include

    I did a "framework" jsp file, because I have a bunch of pages, that need to look the same, except for the content.
    "framework" pseudo code:
    DoStuff
    *include file X;*
    DoSomOtherStuff
    *include file Y;*file X depends on the jsp including this framework, example:
    myFirstPage.jsp:
    X = "myFirstPartX.jsp";
    Y= "myNextPartY.jsp";
    <%@ include file="framework.jsp" %>Ok, so what type of include can I use in the framework to include X and Y files?
    I didn't find any way to create constants in MyFirstPage.jsp that I could use in the include directive so I have to use the jsp:include taglib, where X and Y are variables.
    Super, my only problem with the jsp:include is:
    - it is more resource consuming isn't it?
    - I cannot access variables I declared in myFirstPage.jsp
    - a can only pass objects to myFirstPartX.jsp and myNextPartY.jsp via the request.setAttribute
    It's seems like a trivial problem, being able to use a different include directive based upon the top level page (macros, constants?), is there no better solution than a jsp:include ?

    JohnnyTheHun wrote:
    - it is more resource consuming isn't it?
    - I cannot access variables I declared in myFirstPage.jsp
    - a can only pass objects to myFirstPartX.jsp and myNextPartY.jsp via the request.setAttribute1. compare to static include, dynamic will more consuming.
    2. if you need to pass string type information you can use jsp:param
    <jsp:include page="x.jsp">
       <jsp:param name="param1" value="value1"/>
       <jsp:param name="param2" value="value2"/>
    </jsp:include>
    <jsp:include page="y.jsp">
       <jsp:param name="param1" value="value1"/>
       <jsp:param name="param2" value="value2"/>
    </jsp:include>
    ...3. for object type information & continous sharing information(main.jsp > x.jsp > main.jsp > y.jsp > main.jsp), u can use request attribute. request attribute is designed for foward & include purpose.
    Edited by: j_shadinata on Feb 5, 2008 10:37 PM

  • jsp:include is not working on weblogic

    I have a problem I write the following code
    html>
    <head>
    <script LANGUAGE="javascript" SRC="js/tab.js"></script>
    <LINK href="stylesheets/global.css" type=text/css rel=stylesheet>
    <title>JobSpinner Status</title>
    </head>
    <body class="bodymargin" onload="setpage(1)">
    <jsp:include flush="true" page="JobSpinnerTab.jsp"></jsp:include>
    <form id="loginForm" action="/jobspinner/JobStatus.faces" method="post">
    <input type="hidden" name="loginForm" value="loginForm" />
    <nobr>
    It is working fine on four to five PC we have checked .
    But the problem is that it is not working on a particular weblogic Server 8.1 SP2 .
    Can someone help me .
    Regs
    Amit Verma

    Are other JSP tags working on the page?
    eg
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    Java version = <%= System.getProperty("java.vm.version") %><br>
    Java home = <%= System.getProperty("java.home") %><br>Your page might be being interpreted as HTML rather than passed through the JSP engine.

  • Page Flow - Null request attributes

    Hi.
    I am using the netui:anchor and netui:paramter tags to add attributes to the request
    object. However in the pageflow when I try to get them from the request using
    this.getRequest().getParameter("xxx") - it seems to be NULL.
    Any clues?
    Girish

    Hey Richard -
    I solved this problem using the outerrequest and the scopedrequestutil classes.
    However, I still have the page flow caching issue that many folks seem to be posting
    on the newsgroups.
    Thanks
    Girish
    "Richard Feit" <[email protected]> wrote:
    Hello Girish,
    This should work. Can you post a JSP fragment and a page flow action
    that
    demonstrates the problem?
    Thanks,
    Rich
    "Girish Venkat" <[email protected]> wrote in message
    news:3fe87514$[email protected]..
    Hi.
    I am using the netui:anchor and netui:paramter tags to add attributesto
    the request
    object. However in the pageflow when I try to get them from the requestusing
    this.getRequest().getParameter("xxx") - it seems to be NULL.
    Any clues?
    Girish

  • Java page flow jpf forward to dynamic url

    How to forward to a dyamic url from a page flow action method

    use new Forward (URI uri,
    boolean doRedirect)
    with redirect as false
    Edit : If the path isnt within your webapp you will have to do a redirect (you can use the constructor with the URL form)
    regards
    deepak
    Edited by: deepshet on Sep 2, 2009 3:38 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
              

Maybe you are looking for

  • Operation could not be completed?

    I keep getting this error Operation could not be completed, not enough space on disk cs2 xp pro 3 gig ram 20 gig open on c drive 296 gig open on G drive c drive set as first scratch g set as second current file is 16 x 20 at 300 dpi hmm what else....

  • Crash windows when edit a picture with PSE7 .....

    We test the PSE7 and run correctly at my PC. We install same product at final user PC and when show how is the edition, we select a picture and Windows (XP with SP2) crash.... What can I to do??? Help, thanks... More information, attach file... Messa

  • Bill of lading in delivery in WM

    Hi All - Hope everybody is doing well. I have a question on bill of lading. At what stage during the delivery creation against STO, we will generate the bill of lading and packing list? the scenario is we will create the delivery against STO from oth

  • Number series

    Dear expert, i created posting period fro years 2013-14 and 2014-15. Client create some invoice in 2013-14 that due date is in 2014-15. Now system not provide option for update periods indicator for posting periods  or old number series. How we can s

  • Oracle Portal, OWA_UTIL.redirect_url and Max Length URL

    I have a question relating to the max length of a URL that can be used within Internet Explorer 5.5 and Oracle Portal (3.0.9.8.5) On IAS 9i version 1.0.2.2.2 My portal page submits to a procedure that carries out some basic DML and then uses the OWA_