Refreshing records in jsp uix jdev9i

I have a project where when you first bring up my customer.jsp it diplays the first 4 records and lets me pick other records in groups of 4. If I do a specific search and bring up one customer and then move to other jsp pages to get the phone info, etc. When I return to my origional customer.jsp page, it still displays the last customer i searched on. How do I get the customer.jsp page to show my groups of 4 everytime I return to it??
Any help or suggestions would be great, thanks

The search changes the WHERE clause of the view object your are using to display your results. In order to clear out the search, you need to clear any search criteria you have setup. This should be the same as running the search page without any criteria.

Similar Messages

  • Missing "Add Records" and "Refresh Records" options for data sets post domain re-import

    We recently had to re-install the Endeca server and as part of which had to export and re-import the data domains. Everything went fine except for the fact that newly re-imported data sets showcase just the "Manage Attributes" and the "Delete Data Set" options for an administrator login in. The previously available options to "Add Records" and "Refresh Records" beyond manage attributes/Delete Data Set are missing.
    Thoughts? Is there a security setting to enable these?

    So are you talking about the Add Records and Reload Records options for a data set in Studio?
    There are no separate security settings for these options. If a user is an application administrator (is able to edit the application), then they should have access to these options.
    The options are only available for data domains created using the Provisioning Service (created by uploading a file or from the JDBC or BI Server data source from the Data Source Library).
    I don't know if the process of exporting and re-importing the data domains (not sure how you did that) could somehow cause the data sets to no longer know that they were created by the Provisioning Service, in which case those options would not be enabled.

  • JSP-UIX runtime error in 10g

    When migrate from 9.0.4 to 9.0.5 my JSP-UIX project, and try to execute them, sends me the following error:
    Exception Details
    java.lang.NoSuchMethodError: java.lang.String java.net.URLEncoder.encode(java.lang.String, java.lang.String)
         java.lang.String oracle.jbo.http.HttpSessionCookieHelperImpl.readCookieValue(javax.servlet.http.HttpServletRequest, java.lang.String)
              HttpSessionCookieHelperImpl.java:44
         java.lang.String oracle.jbo.http.HttpSessionCookieImpl.readValue(java.lang.Object)
              HttpSessionCookieImpl.java:189
         void oracle.jbo.http.HttpSessionCookieImpl.(java.lang.String, java.lang.String, oracle.jbo.common.ampool.ApplicationPool, java.security.Principal, javax.servlet.http.HttpServletRequest)
              HttpSessionCookieImpl.java:101
         oracle.jbo.common.ampool.SessionCookie oracle.jbo.http.HttpSessionCookieFactory.createSessionCookie(java.lang.String, java.lang.String, oracle.jbo.common.ampool.ApplicationPool, java.util.Properties)
              HttpSessionCookieFactory.java:103
         oracle.jbo.common.ampool.SessionCookie oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(java.lang.String, java.lang.String, java.util.Properties)
              ApplicationPoolImpl.java:418
         oracle.jbo.common.ampool.SessionCookie oracle.jbo.http.HttpContainer.findSessionCookie(javax.servlet.http.HttpSession, java.lang.String, java.lang.String, java.util.Properties)
              HttpContainer.java:651
         int oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag()
              ApplicationModuleTag.java:152
         void RhAccesoUsuarioView_Browse._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RhAccesoUsuarioView_Browse.jsp:9
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpJsp.java:139
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              JspPageTable.java:349
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:509
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:413
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind.server.http.ResourceFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ResourceFilterChain.java:65
         void oracle.security.jazn.oc4j.JAZNFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:604
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:317
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:790
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:270
         void com.evermind.server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:112
         void com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run()
              ReleasableResourcePooledExecutor.java:192
         void java.lang.Thread.run()
              Thread.java:484
    Now, how can i fix this? In the previous version works fine.

    Invoke your Project Properties, click on the Libraries option and ensure your J2SE version is 1.4.2, not 1.3.1.
    Steve

  • Refresh record matching step - HOW!!!!!!

    Import status is telling me to "Refresh record matching step", but my refresh record matching button (next to the save button) is greyed out!  I'm just trying to import the simplist of Excel files with straight mapping of 4 basic text fields to a newly created empty table in a repository.
    Message was edited by: Brian Vanderwiel
    ...Still stuck on this one - it's driving me crazy - I decided to add more details here in initial post:
    1) In console, I created a new repository.  Within that new repository, I created a new flat table called Company Code with four fields: BUKRS (text 4, unique/diplay), BUTXT (text 25, display), ORT01 (text 25, display), LAND1 (text 3)
    2) The repository is loaded in the console
    3) I exported test data from T001 table into an Excel file to be loaded.  Example of data:
    BUKRS     BUTXT             ORT01             LAND1
    0001     SAP A.G.     Walldorf     DE
    1001     Company xxxxx     PARIS, TX     US
    4) In Import manager, I selected the Excel file as the source, and the Company Code table as the target.  The source preview showed the Excel file contents correctly.
    5) On the Partition Field/Value tab, it shows BUTXT, LAND1, ORT01 as Available fields, and Partition by: BUKRS.  I did not change this.
    6) On the Map Fields/Values tab, I choose Automap.  A green zig-zag now appears next to the four source fields and the four target fields.  Each source field is mapped to it's correct target field.  In the Value Conversion and Mapping area, the Source values window shows all the values from the Excel file with a converted value and no destination value.  The status bar message shows "53 of 53 values converted".  The Destination values window shows a value of <NULL> for BUKRS, BUTXT, and ORT01, and nothing for LAND1.  The buttons in the middle are grayed out, and the Map checkbox is not checked.
    7) This the point at which the "Import Status" is telling me to "Refresh Record Matching Step".  The Match Records tab shows the four "Mapped Destination Fields", no "Matching Fields", and the Add/Remove/Combine/Split buttons are grayed out no matter what I click on.  The entire "Record Matching" box below is blank.
    ...I read through much of the Help and did not find where I have gone wrong.
    Points will of course be rewarded where appropriate.

    Hi Brian,
    Please make sure if you have done value conversion and map the key fild properly and take care of following steps
    1)In match records Tab(next to map fields) just see if you have added a field to your right hand window pane.this combination would actually uniquely identify your records.Atleast select one field there.
    2)In import status tab strip First check what message it is giving.If in right hand side window pane it shows that there are records it has matched and you are doing this for first time then choose 'CREATE' or if you want you can choose REPLACE but that only when you have created the records once.
    Hope this helps
    Please mark helpful answers
    Regards
    Vinay

  • Example Wanted:  JSP UIX data binding

    Hullo! I'm trying to display an active tree using 9.0.3 JSP UIX. I was successful in straight UIX (thanks to the examples), but can't figure out how do get the databinding correct in JSP/UIX. Does anyone have an example using <uix:tree>, or failing that how about anything substantial in JSP/UIX?
    The uiXML/UIX download examples are great, and the online documentation is extensive though I find it hard to follow... but for the JSP side there just aren't any working examples!
    Thanks so much.
    Heather

    Thank you very much for the response.
    It got me looking in the right direction, and now I have something working!
    Sincerely,
    Heather
    btw In case anyone else is ever in a similar position, here is an implementation of the above example, with some really silly data plugged in.
    jsp" contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ page import = "oracle.cabo.ui.data.tree.*" %>
    <%@ page import = "oracle.cabo.ui.data.*" %>
    <%@ page import = "oracle.cabo.ui.*" %>
    <%@ page import = "oracle.cabo.ui.data.*" %>
    <%-- user interface begins here --%>
    <HTML>
    <HEAD>
    <TITLE>Browse Page</TITLE>
    <uix:styleSheet/>
    </HEAD>
    <BODY>
    <uix:pageLayout>
    <%-- Main page contents go here --%>
    <uix:contents>
    <uix:header text="Tree Demo"/>
    <uix:spacer height="15" />
    <%
    SimpleTreeData shop = new SimpleTreeData();
    shop.setText("Shop");
    shop.setDescription("Spend some money!");
    shop.setDestination( "http://bali.us.oracle.com");
    shop.setDestinationText( "More Information");
    shop.setExpandable(UIConstants.EXPANDABLE_EXPANDED);
    SimpleTreeData books = new SimpleTreeData();
    books.setText("Books");
    books.setDescription("books have pages!");
    books.setDestination( "http://bali.us.oracle.com");
    books.setDestinationText( "More Information");
    books.setExpandable(UIConstants.EXPANDABLE_EXPANDED);
    SimpleTreeData art = new SimpleTreeData();
    art.setText("Art");
    art.setDescription("picasso et al!");
    art.setDestination( "http://bali.us.oracle.com");
    art.setDestinationText( "More Information");
    SimpleTreeData[] bookCategories = { art, art };
    books.addChildren( bookCategories );
    SimpleTreeData[] categories = { books, books };
    shop.addChildren(categories);
    ListDataObjectList treeData = new ListDataObjectList();
    treeData.addItem(shop);
    request.setAttribute("treeData", treeData);
    ClientStateTreeDataProxy proxy =
    new ClientStateTreeDataProxy("",
    request.getParameter(UIConstants.STATE_PARAM),
    request.getParameter(UIConstants.NODE_PARAM),
    request.getParameter(UIConstants.SELECTION_PARAM));
    request.setAttribute("treeProxy", proxy);
    %>
    <uix:tree id="myId" nodesBinding="treeData@servletRequest"
    proxyBinding="treeProxy@servletRequest">
    <uix:nodeStamp>
    <uix:flowLayout>
    <uix:contents>
    <uix:link destinationBinding="destination" textBinding="text" />
    </uix:contents>
    </uix:flowLayout>
    </uix:nodeStamp>
    </uix:tree>
    </uix:contents>
    </uix:pageLayout>
    </BODY>
    </HTML>
    <jbo:ReleasePageResources />

  • Highlight records in jsp

    Hi all
    In would like to highlight some records in my jsp page based on some condition checking.
    please assist me how to highlight some particular records in jsp.
    thanks in advance.

    Have 2 different CSS classes, one that represents the normal record and one that represents the highlighted one. Something like:
    .normal {
         background-color: White;
    .highlight {
         background-color: Yellow;
         font-weight: bold;
    }Now when you construct your records, apply your logic to see which css class should be applied. For example to set every alternate row as a highlighted row you can do something like this:
    <c:forEach items="records" var="record" varStatus="vs">
    <tr class="${((vs.index % 2 == 0)?"normal":"highlight")}">
          <td>${record}</td>
    </tr>
    </c:forEach>

  • Display error message without refreshing the entire jsp

    Hi,
    I want to display the server side error messages in the jsp without refreshing the entire jsp. How can this be achieved?
    I think there is some way with use of AJAX. If yes can you please elaborate on the same as to how to do this.
    Regards,
    Shwetha

    In the project it's presented:
    1) how the servlet can send JSON data depending on the request's parameter
    2) how to obtain this data on the client side and show in on the page using jQuery without refreshing the whole site
    What You need to do is just to send the error (as JSON data) insetad of the values that are passed now and display this error on the page.

  • Error JBO-25002 in JSP-UIX

    Hi:
    I know is a old error, but i don't have idea how to resolve. I ran a JSP-UIX application and when i ran for the first time all is fine, but, for the second time the error appears. I have verified my View definition in my package and it's fine, also i have verified my Application Module and seems fine.
    I run in Local Mode and using JDeveloper 903 Production.
    Here the error code:
    Error creating the ORB :
    oracle.jbo.NoDefException: JBO-25002: Definition CatalogoVista.RhEntidadfederativaView of type View Definition not found
         java.lang.Object oracle.jbo.mom.DefinitionManager.findDefinitionObject(java.lang.String, int, java.lang.Class, boolean, boolean)
              DefinitionManager.java:319
         java.lang.Object oracle.jbo.mom.DefinitionManager.findDefinitionObject(java.lang.String, int, java.lang.Class, boolean)
              DefinitionManager.java:260
         java.lang.Object oracle.jbo.server.MetaObjectManager.findMetaObject(java.lang.String, int, java.lang.Class, boolean)
              MetaObjectManager.java:648
         oracle.jbo.server.ViewDefImpl oracle.jbo.server.ViewDefImpl.findDefObject(java.lang.String)
              ViewDefImpl.java:363
         oracle.jbo.ViewObject oracle.jbo.server.ApplicationModuleImpl.createViewObject(java.lang.String, java.lang.String)
              ApplicationModuleImpl.java:2493
         void oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(oracle.jbo.server.ApplicationModuleImpl)
              ApplicationModuleDefImpl.java:357
         void oracle.jbo.server.ApplicationModuleImpl.resetState(boolean, boolean)
              ApplicationModuleImpl.java:3201
         void oracle.jbo.server.ApplicationModuleImpl.resetState(boolean)
              ApplicationModuleImpl.java:3145
         void oracle.jbo.common.ampool.ApplicationPoolImpl.resetApplicationModule(oracle.jbo.common.ampool.SessionCookie, boolean, boolean)
              ApplicationPoolImpl.java:1224
         void oracle.jbo.common.ampool.ApplicationPoolImpl.resetApplicationModule(oracle.jbo.common.ampool.SessionCookie, boolean)
              ApplicationPoolImpl.java:1089
         void oracle.jbo.common.ampool.ApplicationPoolImpl.removeSessionCookie(oracle.jbo.common.ampool.SessionCookie)
              ApplicationPoolImpl.java:566
         void oracle.jbo.common.ampool.SessionCookieImpl.timeout()
              SessionCookieImpl.java:494
         void oracle.jbo.http.HttpSessionCookieImpl.timeout(oracle.jbo.http.BindingEvent)
              HttpSessionCookieImpl.java:160
         void oracle.jbo.http.HttpContainer.fireTimeout(java.lang.Object, java.util.Properties)
              HttpContainer.java:416
         void oracle.jbo.http.HttpContainer.timeout(java.util.Properties)
              HttpContainer.java:202
         void oracle.jbo.http.HttpContainer.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)
              HttpContainer.java:237
         void com.evermind.server.http.EvermindHttpSession.destroy(boolean)
              EvermindHttpSession.java:289
         void com.evermind.server.http.EvermindHttpSession.invalidate()
              EvermindHttpSession.java:234
         void com.evermind.server.http.HttpApplication.destroySessions()
              HttpApplication.java:5550
         void com.evermind.server.http.HttpApplication.destroy()
              HttpApplication.java:5499
         void com.evermind.server.http.HttpApplicationDestroyer.run()
              HttpApplicationDestroyer.java:19
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484
    THXS
    MARCO H

    Dhiraj:
    Can you elabaorate a little more on what you mean by re running the application?I run the JSP inside JDeveloper 903.
    The error appears only in the log Windows, not in the page. I've note when running for the first time the application, the log error no appears. When i running for the second time and so, the error appears in the log window.
    I'm not sure, but the problem appeared when i migrated to JDeveloper 903 from 902. I the probem is not serious because i can't see my page and seems works fine.
    I gave the complete windows log with the error (sorry in my first post cut the fisrt lines and maybe could be important for you).
    <code>
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    D:\JDeveloper 903 Prod\jdk\bin\javaw.exe -ojvm -classpath D:\JDeveloper 903 Prod\j2ee\home\oc4j.jar -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config D:\JDeveloper 903 Prod\jdev\system9.0.3.1035\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Embedded OC4J startup time: 8132 ms.
    Target URL -- http://192.168.0.6:8988/Espacio-NOMUIXJSP-context-root/RhEmpresaView_Browse.jsp
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    BC4J HTTP Container was timed out
    The session cookie for the application, AppJSP, was timed out
    Embedded OC4J startup time: 50 ms.
    Target URL -- http://192.168.0.6:8988/Espacio-NOMUIXJSP-context-root/RhEmpresaView_Browse.jsp
    ApplicationServer: appName = bc4j
    ApplicationServer: appName = current-workspace-app
    ApplicationServer: appName = soap
    oracle.jbo.NoDefException: JBO-25002: Definition CatalogoVista.RhFormuladetView of type View Definition not found
         java.lang.Object oracle.jbo.mom.DefinitionManager.findDefinitionObject(java.lang.String, int, java.lang.Class, boolean, boolean)
              DefinitionManager.java:319
         java.lang.Object oracle.jbo.mom.DefinitionManager.findDefinitionObject(java.lang.String, int, java.lang.Class, boolean)
              DefinitionManager.java:260
         java.lang.Object oracle.jbo.server.MetaObjectManager.findMetaObject(java.lang.String, int, java.lang.Class, boolean)
              MetaObjectManager.java:648
         oracle.jbo.server.ViewDefImpl oracle.jbo.server.ViewDefImpl.findDefObject(java.lang.String)
              ViewDefImpl.java:363
         oracle.jbo.ViewObject oracle.jbo.server.ApplicationModuleImpl.createViewObject(java.lang.String, java.lang.String)
              ApplicationModuleImpl.java:2493
         void oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(oracle.jbo.server.ApplicationModuleImpl)
              ApplicationModuleDefImpl.java:357
         void oracle.jbo.server.ApplicationModuleImpl.resetState(boolean, boolean)
              ApplicationModuleImpl.java:3201
         void oracle.jbo.server.ApplicationModuleImpl.resetState(boolean)
              ApplicationModuleImpl.java:3145
         void oracle.jbo.common.ampool.ApplicationPoolImpl.resetApplicationModule(oracle.jbo.common.ampool.SessionCookie, boolean, boolean)
              ApplicationPoolImpl.java:1224
         void oracle.jbo.common.ampool.ApplicationPoolImpl.resetApplicationModule(oracle.jbo.common.ampool.SessionCookie, boolean)
              ApplicationPoolImpl.java:1089
         void oracle.jbo.common.ampool.ApplicationPoolImpl.removeSessionCookie(oracle.jbo.common.ampool.SessionCookie)
              ApplicationPoolImpl.java:566
         void oracle.jbo.common.ampool.SessionCookieImpl.timeout()
              SessionCookieImpl.java:494
         void oracle.jbo.http.HttpSessionCookieImpl.timeout(oracle.jbo.http.BindingEvent)
              HttpSessionCookieImpl.java:160
         void oracle.jbo.http.HttpContainer.fireTimeout(java.lang.Object, java.util.Properties)
              HttpContainer.java:416
         void oracle.jbo.http.HttpContainer.timeout(java.util.Properties)
              HttpContainer.java:202
         void oracle.jbo.http.HttpContainer.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)
              HttpContainer.java:237
         void com.evermind.server.http.EvermindHttpSession.destroy(boolean)
              EvermindHttpSession.java:289
         void com.evermind.server.http.EvermindHttpSession.invalidate()
              EvermindHttpSession.java:234
         void com.evermind.server.http.HttpApplication.destroySessions()
              HttpApplication.java:5550
         void com.evermind.server.http.HttpApplication.destroy()
              HttpApplication.java:5499
         void com.evermind.server.http.HttpApplicationDestroyer.run()
              HttpApplicationDestroyer.java:19
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484
    Error creating the ORB :
    </code>
    MARCO H

  • Which Web Client Framework? BC4J-JSP, UIX-JSP, UIX-XML, etc

    Trying to determine which, if any of the JDeveloper frameworks, to use for do web browser (HTML) clients.
    What are the pros/cons of BC4J-JSP, UIX-JSP, UIX-XML, etc?
    What are some common things you might rule out using one or more of the frameworks?
    I plan to be using BC4J, updating, inserting data (currently MS-SQL) and the apps will run on WebLogic 7 or Caucho Resin (webapps no EJB) in a cluster. I would like to be as RAD as possible and still be able to do what I need to do. One main concern is being able to add custom HTML/JavaScript for things like client side validation. I didn't see a way to do this when doing BC4J-JSP. Is that right?
    If I define any validation in the BC4J, will UIX utilized any of this to define a JavaScript validator or must it be redudantly defined?
    One other concern is what the framework requires in terms of architecture, like do I have to have sticky sessions in my web cluster or can it work fine stateless or stateful?
    For UIX-XML, how is this architected for performance? Specifically, is the XML effectively compiled and converted into something more efficient and performant or does it do XML parsing all the time? Is there any significant performance differences between the frameworks?
    Is there any significant difference in dealing with security? Anything in the framework to make it easier to handle certain users being able to see/edit different set of data?
    I have things like some groups can edit only certain entities (product info but not pricing), others only certain types of products (possibly subclass entities) and others situations where what fields than can edit varies. Obviously I can handle this programmatically, but I was wondering what the frameworks had to offer, especially in terms of having different views of the same data.
    Steve

    ...I am little confused then about how BC4J works and what is meant by "session" here.
    When you talk about appmodules in the plural, does this mean that there are potentially multiple instances of the same data on a single server or there is a common datastore with pending data and client specific stuff varying?
    The common datastore is the database. Each client (momentarily, during the span of their request) uses an instance of an application module from the pool. The pool can grow and shrink with load on your system and all of the various tuning parameters. Our doc on the AM Pool covers all the parameter settings and their users.
    What kind of "session" is this?
    It is an abstract notion of a session for a user. The implementation used for Web clients uses the HTTP Session Key as the session key. However, we have other session implementations (and you can provide your own to do custom stuff for more sophisticated needs). We don't store anything else in the HTTP Session to the best of my knowledge. This way in a cluster, the web container doesn't have to waste time propagating all of your serialized HTTP Session state among cluster members. This session key also include an id for the application module and together those provide the key to store your pending state in the database for the "Stateful == Managed State" feature.
    I assume that if I have a cluster which doesn't use session-to-same-server-affinity but uses JDBC for http-session persistance or distributed in-memory http-sessions then I cannot use stateful BC4J even though I can use http-sessions.
    You can use BC4J in this way because the browser will send a cookie that contains the key to your database-stored pending state. In this way, we work great in a server farm for failover and/or scalability reasons.
    Even if I use stateless BC4J, are there issues with round-robin'ng all requests to different servers in a cluster?
    As I said, both our Stateless and Stateful features are designed to be used in Server farms, no problem.
    BTW I wouldn't necessarily say you picked the wrongs terms for the modes, but I know what you mean. There's problems with these terms. I am trying to explain to my mgrs/engineers that there is some state in stateless transactions - that simply making everything "stateless" doesn't mean don't lose anything in a disastrous failure. I am arguing to get support for sessions in our cluster, that the performance gain and simplified development is worth it as long as you put intelligent limits on what you store in the session. Right now, they are insisting on randomly sending requests into two entirely different data centers, with two different clusters.
    Amen. I have seen too many developers make the mistake of trying to be totally stateless, only to completely complicate their development environment with having to peristent partially-completed transaction data to the database. I've seen this done with sets of "Shadow" tables (yuck!) or using hand-written techniques similar to what BC4J provides a robust implementation of in the box.
    We've tuned our "Stateless With Affinity for Server Farms" model over several releases of carefully studying the performance of the Web apps built by our internal Oracle Applications teams using BC4J (over 20 of them now, and growing!) so compared with a hand-written strategy for your web-tier state management, using BC4J's implementation will be much more productive for you.
    We're tuning and tweaking and enhancing it even more for the 9.0.3 release as new needs are highlighted with continued use by our customers (both Oracle internal and external).

  • Inserting multiple records in JSP and setting date format

    Hi,
    I'm looking at the possibilities for using JSP's as a web application.
    I've got a few questions about it:
    1) Is it possible to insert multiple records in the detail block of my JSP. Normally when I click the 'insert button', an insert JSP comes up, which is a html form with the possiblity of inserting only one record.
    2) Is it possible to change the format of a date field. Now a date field is displayed as 'YYYY-MM-DD'. My nls_date_format is something else.
    3) I can't get the static combo box working for the class EditCurrentRecord. The normal use combo box is no problem. Probably, I don't have the syntax correct. Could anyone provide an example for this.

    2) Just use the Calendar object. You can format the date any way you want. I am assuming that you are talking about how the date appears after a .toString() call.
    Here is how I do it (this code will probably look very bad I am trying to type into a very small space so bear with me):
    public static String traceDate(java.sql.Timestamp dt)
    try
    if (dt == null)
    return " ";
    else
    Calendar clFmt = Calendar.getInstance();
    clFmt.setTime(dt);
    return
    String.valueOf(clFmt.get(Calendar.MONTH) + 1) + "/" +
    String.valueOf(clFmt.get(Calendar.DAY_OF_MONTH)) + "/" +
    String.valueOf(clFmt.get(Calendar.YEAR)) + " " +
    String.valueOf( (clFmt.get(Calendar.HOUR) == 0) ? 12 : clFmt.get(Calendar.HOUR) ) + ":" +
    padLt(String.valueOf(clFmt.get(Calendar.MINUTE)),2) + ":" +
    padLt(String.valueOf(clFmt.get(Calendar.SECOND)),2) + " " +
    (clFmt.get(Calendar.AM_PM) == Calendar.AM ? "AM" : "PM");
    catch (Exception e)
    throw new RuntimeException(e.getMessage());
    (padLt is a custom function that just pads 0s to the left of the number)

  • Display records in JSP

    I am completely stuck at this point and need urgent help.
    here is what i have done till now:
    i have one jsp page called first.jsp which displays records in RowsetBrowser from View Object A.
    The attributes are ID,name,Location.
    in View Object A i have added a transient attribute to which i have given an expression
    as: ''&#0124; &#0124;ID&#0124; &#0124;'', i want to make the id as a link to the edit page,
    i do not want an additional column to show up as link,hence i am not using addTextUrlColumn method.
    now on clicking on this id,edit.jsp page is called and the parameter p which is the id is passed to
    edit.jsp page.
    The edit.jsp page is based on another View Object B.
    the code is as follows:
    String param=request.getParameter("p");
    oracle.jbo.html.databeans.RowsetNavigator rsn;
    rsn=(oracle.jbo.html.databeans.RowsetNavigator) new oracle.jbo.html.databeans.RowsetNavigator();
    rsn.initialize(application,session,request,response,out,"NTS_NTS_NTSModule.LogPanelView");
    rsn.getRowSet().getViewObject().setWhereClause("ncc_log_id="+param);
    rsn.getRowSet().getViewObject().executeQuery();
    The results of above query is only one record,which is right.
    my job is now to display all the attributes of the above record,in text fields or
    combo boxes.

    Hi Monali,
    If I understand your attribute Number1 (and Number 2) is one string value (varchar2 type, long type etc. in Entity) which include in self more different values (other strings or numbers). Right? You can do this if you parse string with an method which analyse that string and give you all the values in an array. Then you can display all the values just like you display other attributes. Off course between the values within attributes value must exist an sign (;, |, ^ etc.) which separate one value from another.
    Format is:
    SignValue(1)SignValue(2)SignValue(3)SignSignValue(maxData)Sign
    (e. g.)
    Format 1:
    |Ad45gt63e4|34f5t55B4|3d563H6a2|5G67sE3h7||d45fgh5|
    First sign (|) in the string is separator between the values
    Format 2:
    ;Friday;September 07;2001;Baker Street 21b;LONDON;Europe;;JSP;12345678;EJB;
    First sign (;) in the string is separator between the values
    I write one demo application (Parse) which you can see in listing 1: Parse.java (see below). Maybe isnt the best solution for this problem but working :-)(compile and run from java console)
    In your case code maybe look like in listing 2: BrowserBean.java (see below)
    I hope this help you...
    Veso
    Note: Sample code in listing 2 I write from my head (without testing), so maybe has errors.
    Parse.java
    public class Parse {
    public static String CheckValue(String strValue){
    int strEnd;
    char strSign = strValue.charAt(0);
    strEnd = strValue.indexOf(strSign,1);
    strValue = strValue.substring(1, strEnd);
    return strValue;
    public static void main(String[] args) {
    final int maxData = 100;
    int sAllValues;
    String sEmpty = "";
    String[] sAllValuesNumber1 = new String[maxData];
    String sValueNumber1 = ";Friday;September 07;2001;Baker Street 21b;LONDON;Europe;";
    try {
    sAllValues = 0;
    while (sValueNumber1 != null && !sValueNumber1.equalsIgnoreCase(sEmpty) && !sValueNumber1.equalsIgnoreCase(sValueNumber1.substring(0,1))) {
    sAllValues++;
    sAllValuesNumber1[sAllValues-1] = CheckValue(sValueNumber1);
    System.out.println(sAllValuesNumber1[sAllValues-1] + "\n");
    sValueNumber1 = sValueNumber1.substring(sAllValuesNumber1[sAllValues-1].length() + 1);
    } catch(Exception ex) {
    throw new RuntimeException(ex.getMessage());
    BrowserBean.java
    package demobeans;
    import java.io.PrintWriter;
    import java.io.OutputStream;
    import oracle.jbo.*;
    import oracle.jbo.html.databeans.*;
    public class BrowserBean extends oracle.jdeveloper.html.DataWebBeanImpl {
    public static String CheckValue(String strValue){
    int strEnd;
    char strSign = strValue.charAt(0);
    strEnd = strValue.indexOf(strSign,1);
    strValue = strValue.substring(1, strEnd);
    return strValue;
    public void render() throws Exception {
    final int maxData = 100; // number of values for attributes (Number1 or Number2)
    int sAllValues1;
    int sAllValues2;
    String sData = null;
    String sEmpty = "";
    String sQuery = request.getParameter("id");
    String sValueID = null; // if is ID column1 in ViewObject
    String sValueName = null; // if is name column2 in ViewObject
    String sValueNumber1 = null; // if is name column3 in ViewObject
    String sValueNumber2 = null; // if is name column4 in ViewObject
    String[] sAllValuesNumber1 = new String[maxValues];
    String[] sAllValuesNumber2 = new String[maxValues];
    Row[] drows = qView.getAllRowsInRange();
    AttributeDef[] dattrs = getDisplayAttributeDefs();
    for (int rowno = 0; rowno < drows.length; rowno++) {
    for (int j = 0; j < dattrs.length; j++) {
    if (!shouldDisplayAttribute(dattrs[j]))
    continue;
    if (drows[rowno] != null) {
    Object attrObj = drows[rowno].getAttribute(dattrs[j].getIndex());
    if (attrObj != null) {
    sValue = attrObj.toString();
    switch (dattrs[j].getIndex()) {
    case 0 : sValueID = sValue; break;
    case 1 : sValueName = sValue; break;
    case 2 : sValueNumber1 = sValue; break;
    case 3 : sValueNumber2 = sValue; break;
    sAllValues1 = 0;
    while (sValueNumber1 != null && !sValueNumber1.equalsIgnoreCase(sEmpty) && !sValueNumb er1.equalsIgnoreCase(sValueNumber1.substring(0,1))) {
    sAllValues1++;
    sAllValuesNumber1[sAllValues1-1] = CheckValue(sValueNumber1); // put values from Number1 in an array
    sValueNumber1 = sValueNumber1.substring(sAllValuesNumber1[sAllValues1-1].length() + 1);
    sAllValues2 = 0;
    while (sValueNumber2 != null && !sValueNumber2.equalsIgnoreCase(sEmpty) && !sValueNumber2.equalsIgnoreCase(sValueNumber2.substring(0,1))) {
    sAllValues2++;
    sAllValuesNumber2[sAllValues2-1] = CheckValue(sValueNumber2);
    sValueNumber2 = sValueNumber2.substring(sAllValuesNumber2[sAllValues2-1].length() + 1);
    sData = "<!-- html -->Name:" + sValueName + "<!-- html code (table tags or other) -->";
    sData += "<!-- html -->Number1[1]:" + sAllValuesNumber1[0] + " Number1[2]:" + sAllValuesNumber1[1] + ... + " Number2[sAllValues1]:" + sAllValuesNumber1[sAllValues1-1] + "<!-- html code (table tags or other) -->";
    sData += "<!-- html -->Number2[1]:" + sAllValuesNumber2[0] + " Number2[2]:" + sAllValuesNumber2[1] + ... + " Number2[sAllValues2]:" + sAllValuesNumber2[sAllValues2-1] + "<!-- html code (table tags or other) -->";
    out.print("Other HTML code...") // other elements for your look and feel
    out.print(sData);
    out.print("Other HTML code...") // other elements for your look and feel
    releaseApplicationResources();
    null

  • How to display records in jsp

    i have 100 records can anybody tell me how i display records 10 at atime in jsp & by clicking the next button another 10 records displays in the same jsp. How i can do that thing.

    You have to implement a page breake yourself.
    Simple scenario would be to store a page number into a session:
    session.setAttribute("page", selectedPage)
    every time user clicks on a next page link
    When displaying the record read the page and display only those which should be on the page
    Integer selectedPage = session.getAttribute("page")
    if (selectedPage == null) selectedPage = 1;
    //display code goes here

  • JSP uix:table without bc4j

    Hi!
    I am trying to build a page in JSP including UIX tags for tabs and other layout issues. I would like to include a table. I have some fixed tables I want to include. In UIX XML I have seen I can manually build a table using the <table> tag and build up the table with a header, then row-by-row.
    Is it possible to do the same thing in UIX JSP as well? When I try to cut and paste the code from UIX XML to the JSP and prefix all the tags with uix:, all it gives me is "tag is not registered in taglib". Is there another way to build up a table, other then just plain html?
    One of the reasons I want to use the table tag, is to be able to split up long tables over multiple pages. Using BC4J and view objects is not an option!
    Thanks in advance,
    Jeroen van Veldhuizen

    Yes you can.
    Right click your session facade and choose create data control
    Then drag the query results from your datacontrol onto the page and drop as a pivot table.
    If you don't want to use ADF Binding you'll need to create a managed bean for your JSF that has the correct data collection for a pivot table.

  • RANGE_PAGING LAST RECORD IN JSP PAGE

    Hi.
    I'm working in JDeveloper 10g, and I would like to know what should be the behavior for the Last button on a jsp page when I use the method setAccessMode with RANGE_PAGING mode?, I mean, when I press that button in my jsp page it doesn't go to the last record result of the query.
    Thanks in advance.

    Thanks for your help.
    My range size is 10.
    But I have a question, vo.last does the same that the last button (navigation bar) on a jsp page?
    For example, if I have navigated through 50 records (with nextSet button) and I press last button, and I know that the query result in the view object is 1000 records, but I'm using RANGE_PAGING, how can I go to the last record?
    Because I tried with last button, but it goes to other record different to the last one.
    Thanks in advance.

  • Weblogic.refresh meet exception(Jsp refresh)

              Hi all,
              I intend to make my new JSP files in effect immediately,so I used "weblogic.refresh"
              utility to implement it. The command line is showed below. I think the call to
              weblogic.refresh successful. But from the weblogic system output, I see java.io.IOException.
              Every time I do "weblogic.refresh", the exception message is generated. I believe
              that the exception cause my new JSP files not be refreshed in Weblogic managed
              server. Any one here give me idea?
              Thanks.
              Weblogic.refresh Command line:
              ======================
              D:\>java weblogic.refresh -url t3://localhost:7001 -username system -password
              12345678 -application DefaultWebApp -component DefaultWebApp -root d:\bea\wlserver6.1\config\mydomain\applications\defaultwebapp
              zjdx\jsp\news_info\news_info.jsp
              Connected to Server:t3://localhost:7001
              Refreshing files in WebAppComponent:'DefaultWebApp' in application:'DefaultWebApp'
              ======================
              Weblogic system output:
              ======================
              java.io.IOException: Unable to overwrite file: D:\bea\wlserver6.1\.\config\mydomain\applications\DefaultWebApp\zjdx\jsp\news_info\news_info.jsp
              at weblogic.utils.jars.JarFileObject.extract(JarFileObject.java:136)
              at weblogic.management.servlet.FileDistributionServlet.extractArchive(FileDistributionServlet.java:717)
              at weblogic.management.servlet.FileDistributionServlet.doPost(FileDistributionServlet.java:166)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              ======================
              

    Winston, I just tried to run weblogic.refresh with sp3 and got a similar
              problem. Can you please open a case with BEA support at
              http://support.bea.com/welcome.jsp. We'll take a closer look into this.
              Regards,
              Joseph Nguyen
              BEA Support
              "Winston Geng" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi all,
              >
              > I intend to make my new JSP files in effect immediately,so I used
              "weblogic.refresh"
              > utility to implement it. The command line is showed below. I think the
              call to
              > weblogic.refresh successful. But from the weblogic system output, I see
              java.io.IOException.
              > Every time I do "weblogic.refresh", the exception message is generated. I
              believe
              > that the exception cause my new JSP files not be refreshed in Weblogic
              managed
              > server. Any one here give me idea?
              >
              > Thanks.
              >
              > Weblogic.refresh Command line:
              > ======================
              > D:\>java weblogic.refresh -url t3://localhost:7001 -username
              system -password
              > 12345678 -application DefaultWebApp -component DefaultWebApp -root
              d:\bea\wlserver6.1\config\mydomain\applications\defaultwebapp
              > zjdx\jsp\news_info\news_info.jsp
              > Connected to Server:t3://localhost:7001
              > Refreshing files in WebAppComponent:'DefaultWebApp' in
              application:'DefaultWebApp'
              > ======================
              >
              > Weblogic system output:
              > ======================
              > java.io.IOException: Unable to overwrite file:
              D:\bea\wlserver6.1\.\config\mydomain\applications\DefaultWebApp\zjdx\jsp\new
              s_info\news_info.jsp
              > at
              weblogic.utils.jars.JarFileObject.extract(JarFileObject.java:136)
              > at
              weblogic.management.servlet.FileDistributionServlet.extractArchive(FileDistr
              ibutionServlet.java:717)
              > at
              weblogic.management.servlet.FileDistributionServlet.doPost(FileDistributionS
              ervlet.java:166)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :265)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :200)
              > at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:2546)
              > at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :2260)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > ======================
              

Maybe you are looking for

  • Problem with EL (forEach) in Facelets + JSF 1.2

    I am trying to upgrade my application from JSF 1.1 to JSF 1.2. However, I have run into a problem that I can't quite grasp. I have a backing bean with the following method public List<String> getFoos() { return foos; With JSF 1.1 + Facelets the follo

  • The problem with Complex Job Manager in Business Connector.

    Hi, I have a problem with the service "Complex Job Manager" in Business Connector. Sometimes this service hangs and a minus value (such as -83452 sec) appears in the column "Next run". What can I improve? I have BC ver. 4.7 with CoreFix 9, Java ver.

  • OC4J licence

    Hello, I want to ask you about OC4J license. Does OC4J have a price and license as a standalone commercial product. Or we can use it within JDeveloper or as a standalone software only for development and testing. Could I use OC4J within commercial We

  • Need Advice: Accessing JNDI resource which uses configuration file

    Currently I have a class which has a constructor which takes a path to a configuration file. If I wanted to use this class as a JNDI resource what would be your advice when working with a configuration file? If an application was to use a remote JNDI

  • Dashboard keeps opening!!!

    If I set up an Active Screen Corner (Dashboard and Exposé preference pane) for Dashboard, I keep having problems with Dashboard randomly opening (and no, I'm not accidently moving my curser to that corner). Dashboard will sometimes open when I double