JSP, BC4J: EditCurrentRecord DataWebBean

Hi,
I am using the EditCurrentRecord DataWebBean in a JSP program (using BC4J) to create a combo box. The combo box is populated by from a look up table in the
database.
The value selected by the user is to be used in the where clause of a second query whose results will then be displayed. The value that is selected will also be displayed in the
same page.
How can I carry out the above?
I tried to store the value of the item selected in a variable using:
<%= variable_name = request.getAttribute(attributeName)>
However, I got a null value.
Thanks.

Since you are using JDev 3.1 technology, here is how you code a poplist combobox using the EditCurrentRecord Web Bean.
<jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
<%
RowEditor.initialize(application, session , request, response, out, "package1_Package1Module.srchItemsView");
RowEditor.useComboBox("CatId", "select id, name from categories", "NAME", "ID" );
RowEditor.render();
%>
</jsp:useBean>
This source code is from the JSP page: ItemsView_insert.jsp from the JDev 3.1 BC4J Auctions sample application.
To get the value from a specific attribute
you can use:
<%= row.getAttribute("AttributeName") %>
Or in scriptlet form:
<% String AttributeValue = row.getAttribute("AttributeName"); %>
(Taken from BidsView_Insert.jsp of the Auctions app. Also make sure you use quotes around the attribute name.. It is also case sensitive..)
With the JDeveloper 3.2 making poplists/HTML selects is a piece of cake with
the new Data Tags technology.
Here is an example pulled from the new 3.2 Online Orders JSP sample app. (search.jsp)
It uses the DataTags RowsetIterate and ShowValue to populate data into an HTML select.
<select name="advcatsel">
<option value="">All Categories</option>
<jbo:RowsetIterate datasource="cat" >
<option value="<jbo:ShowValue datasource="cat" dataitem="Id" />">
<jbo:ShowValue datasource="cat" dataitem="Name" /></option>
</jbo:RowsetIterate>
</select>
Hope this helps..
-Chris

Similar Messages

  • Adf-Struts/JSP/BC4J- and setting date fields from jsp

    Hi,
    I'm working with the new ADF Frameworks (JDev 9.0.5.1) and ran into some questions regarding exception handling using BC4J, Struts and JSPs.
    I have a DATE column in database and an entity and VO with a datefield with type oracle.jbo.domain.Date.
    My JSP shows a textfield and the user should enter a valid date. Everything fine, until date is of wrong format or contains illegal characters...
    Problem:
    ADF tries to do a setAttribute on the datefield in VO row which expects a parameter with type oracle.jbo.domain.Date. When the user entered e.g. "NiceWeather" as date, I get an IIlegalArgumentException while converting to the correct Date format. This exception isn't thrown by bc4j as AttrValException and therefore my JSP renders a global error instead of a message directly behind the date field.
    I tried to validate the datefield in my DataForm and in my Action in the validateModelUpdates() method, but with no fitting solution.
    Any ideas how to validate a datefield with adf/struts/jsp/bc4j?
    Thanks for your help!
    Torsten.

    Torsen - In the first instance I'd recommed that you try and handle it declaritively using the Struts Validator Framework . See http://otn.oracle.com/products/jdev/howtos/10g/StrutsValidator/struts_validator_howto.html
    There is a section in there on how to use the validator with ADF databound pages and you can check the format the user enters via generated JavaScript.
    Also check out the matching sample project:
    http://otn.oracle.com/sample_code/products/jdev/10g/ADFandStrutsValidator.zip - this has a data field check on it as well

  • Run jsp/bc4j

    hi
    im not sure if i'm right in this forum.
    i use jdeveloper to build a jsp/bc4j application. is it possible to develop the files directly on the remote application-server?
    what's the keyword to find more informations?
    thanks

    See this post:
    BC4J app deployment question
    Mike.

  • Jdev3.2,Jsp,BC4J, Data Tags : Unexpected exception Caught

    I wrote an jsp aplication, with data tags based on BC4J module.
    when I run the application the first time, everything is Ok. the second Time an Unexpected exception is thrown.
    the first module displayed in the error message is
    msg=null oracle.jbo.ApplicationModule oracle.jbo.html.jsp.JSPApplicationRegistry.getAppModuleInstance(java.lang.String, javax.servlet.jsp.PageContext)
    I thought that the problem is the module so
    I runned the application module in the BC4J tester tool every thing is ok
    I created a new aplication module but without any result.
    I created a jsp Application based on the same application module but using the datawebbean and everything is ok also.
    and here is a code that let the exception thrown.
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule configname="test1.Test1Module.Test1ModuleLocal" id="Test1Module" username="wns" password="offline" />
    <jbo:DataSource id="cat" appid="Test1Module" viewobject="TfixcategoryView" ></jbo:DataSource>
    <select NAME="categoryList" size="10" multiple="yes">
    <jbo:RowsetIterate datasource="cat" >
    <option VALUE="<jbo:ShowValue datasource="cat" dataitem="Idcategory" ></jbo:ShowValue>"><jbo:ShowValue datasource="cat" dataitem="Dsnmcategory" ></jbo:ShowValue> </option>
    </jbo:RowsetIterate>
    </select>
    can some help me to find a solution.
    cheers
    Ghassen

    hi Juan
    I didn't copy all the code source. but the releasepageresources tag is there. and I have only put this code because when I delete it no exception is thrown so the problem is there( in data tags).
    more than this when this exception is thrown I have only to relog to a new windows 2000 session and no exception is thrown.
    cheers
    Ghassen
    null

  • Jsp,bc4j,Data web Bean , error : NO ROWS AVAILABLE FOR EDITING

    HI
    I'm developping a jsp application based on Bc4j. when trying to insert a new row with missing fields which must be not null,
    in order to be able to edit the row and correct the non seized fields, I display the edit page and it works for several views. but this time when editing fields and submitting the edit form an error is raised with the message no rows available for editing.
    the particularity for these views(which causes the error) is that are details for a view which is detail for an other.
    can someone please suggest some solution for such a problem
    thanks in advance
    Ghassen
    null

    ghassen
    this is a typicall error that occurs when trying to execute the Row data tag with action "Update" and there is not row obtained through the rowkeyparam (normally MyRowKey url parameter passed from the Edit page). I don4t have sufficient information to give you an exact solution.
    I don4t understand all your escenario, you spoke about "Insert new row with missing values in required fields", but if you don4t specify a right value to that fields, the insert fail.
    Then you display the Edit page to edit that just inserted row, to correct (specify?) the values of that fields. The error occurs in the EditSubmit page.
    The EditSubmit page execute de Row data tag, according to the implementation of Rowtag, first recover the row reference (from rowkeyparam url parameter) and then, if that row reference is null, throws the "No rows available for editing" Runtime Exception. This means that the datasource used in your EditSubmit page not include that RowKey reference (obtained from Edit page as Url parameter).
    HTH
    Pepe

  • JSP, BC4J, Row Tag: what is the best way to delete multiple rows?

    Hi all.
    I have a JSP Edit page with three datasources on it. The tables these VO's represent (A, B and C) have a Parent --> Child (1:1 between A and B) relationship and then another Parent --> Child (1:n between B and C) relationship. So the user retrieves one row for Table A, 1 matching row for table B and then between 0 and 6 matching rows for Table C (there cannot be more than 6 because the user can only add these rows from a finite list).
    In my EditSubmit page, I want to perform a RowTag Update action on Tables A and B and they both work no problem. They can't update any rows from Table C but they can add or delete from the list of 0 - 6 rows (the UI is actually a list of 6 checkboxes that they can turn on or off). I figure that the easiest way to handle this rather than keep a list of original values and compare them is simply to delete all existing rows and then add any that the user checked.
    This is causing a problem. I have added a hidden field to the form that picks up the RowKey for each existing row. I can get these RowKeys in the Submit page but cannot find a way of using them with the Delete Row Tag.
    In the end, the only way I could get it to work was the following code (which I stole from the RowTag.java file in jbohtmlsrc.zip):
    if (stakeMailRowKeys != null) {
    for (int counter = 0; counter < stakeMailRowKeys.length; counter++) {
    Key stakeMailKey = new Key(stakeMailRowKeys[counter], stakeMailingRS.getViewObject().getKeyAttributeDefs());
    stakeMailRows = stakeMailingRS.findByKey(stakeMailKey,1);
    stakeMailingRow = stakeMailRows[0];
    // Tell the row to delete itself from the database
    stakeMailingRow.remove();Is there a simpler way to do this (I figure there probably is)? I have another problem with updating the constrained View Objects but I will leave that out of this thread for now.
    TIA,
    Simon

    I don't know if this will help you, but this is what I do:
    I separate the logic into a delete.jsp page. If you can create a View Object that will represent the rows you want to delete and append a where clause to select only the rows you want to delete. Then loop through the view deleting each row. Lets just say you have department and employee tables. and you want to delete employees within a given department. Create a view object that brings back all employees.
    In your delete.jsp find out the department no. by request.getParameter("dept_id");
    then append this to the where clause of your view Object and execute the query:
    vo.setWhereClause(request.getParameter("dept_id");
    vo.executeQuery;
    now loop through and remove the rows:
    while(vo.next){
    vo.getCurrentRow().remove();
    and commit or post changes accordingly.
    There are many ways of doing this action. The easiest way I have found is to create the ViewObjects based on what actions you want to take on them. Make bc4j work for you.
    regards,
    aaron
    null

  • Sigsegv - using a JSP/BC4J deployed application

    OC4J: developer's preview & JDev9iRC packaged version
    Info: accessing a .../xyz.jsp doesn't return,
    generates a SIGSEGV(11).
    Question urgent!!!!
    I'VE SEEN A (RECENT) POST ON THIS BOARD SPECIFICALLY DEALING WITH SIGSEGV ERROR. THE ELEPHANTWALKER MENTIONED THIS IS EITHER HARDWARE OR JVM/OS RELATED.
    WHERE DO I START LOOKING FOR A SOLUTION?
    ( - increasing stack/heap sizes
    , - move to different JVM (JDK1.3.0 ?)
    , - any known issues on AIX4.3.3 and JDK1.2.2?
    Previously I had no problems deploying and using (simple) JSPs and/or servlets in these environments. The problems seems to be related to JSP(UIX)/BC4J.
    Output to console:
    ==================
    SIGSEGV 11 (*) segmentation violation
    si_signo [11]: SIGSEGV: (*) segmentation violation
    si_errno [0]: Error 0
    si_code [50]: Error 0 [addr: 0xB997221F]
    stackpointer=311e0618
    Writing java dump to javacore62868.1014217828.txt... OK
    SIGABRT 6 (*) abort process
    stackpointer=311e0038
    Information in javacore62868.1014217828.txt:
    ============================================
    SIGSEGV received at 0 in . Processing terminated.
    Current Thread Details
    "ApplicationServerThread" (TID:0x800328f0, sys_thread_t:0x30ee16d0, state:R, native ID:0xa14) prio=5: pending=java.lang.ClassNot
    FoundException
    at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
    at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java(Compiled Code))
    at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
    at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
    at oracle.jsp.app.JspClassLoader.loadClass(JspClassLoader.java(Compiled Code))
    at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
    at oracle.jsp.runtimev2.JspPageInfo.getInstFacade(JspPageInfo.java:162)
    at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:369)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:357)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:145)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:356)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:306)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))
    at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:108)
    at com.evermind.server.http.GetParametersRequestDispatcher.include(GetParametersRequestDispatcher.java:92)
    at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:284)
    at oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag(ComponentTag.java:75)
    at UixBrowseEdit1.jspService(UixBrowseEdit1.jsp:50)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:384)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:145)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:356)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:306)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java(Compiled Code))
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java(Compiled Code))
    ----- Native Stack -----
    unavailable - iar 0 not in text area
    J2RE 1.2.2 IBM build ca122-19991217

    Jan -- The developer's preview requires the 1.3.1 JVM. Please see the installation instructions at
    http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-oow-install.html
    I'm not sure if the developer's preview was tested on AIX or not. It was tested on Solaris and NT. Also, I run it on Linux
    with a 1.3.1 JVM without any significant problems.
    Please try the 1.3.1 JVM and see if that solves your issues.
    Thanks -- Jeff

  • JSP, BC4J, AM: where/when are the PCST tables created

    Hi all.
    I am currently needing to access a second database instance from my BC4J JSP application, and so I have added a new Application Module to my project.
    For some reason that I don't understand, the wizard doesn't ask you what connection to use. So I have changed it by going into Configuration for the AM and setting it.
    Now I want to go into the Test AM. Even though I right-click on the AM and choose Test, the "Oracle Business Component Browser" still can't figure out which module I want to test (??), so I choose my new module. It then correctly chooses the JDBC connection I have assigned and I connect. The browser opens fine although there is nothing to see because I haven't created any components yet.
    If I now choose File/Save, I get an error. First it does appear to successfully create the PCOLL_CONTROL table (assuming your connection has table creation rights - Doh!). No problems. However the error I get is "Could not update row into table PCST_TXN, id 1" and the details of that are "table or view does not exist" which is true - the PCST_TXN table doesn't exist. Does anyone know why? I assume that both tables should have been created automatically. What happened to my PCST_TXN table?? There is almost nothing in the help on these two tables, when they are created, how they are used etc. Can anyone give me a greater insight into them and the process I am failing to go through???
    Thanks a lot,
    Simon Cullen
    null

    Each application module configuration can use a different connection. You need to create a new configuration and select this configuration in the ApplicationModule Tag of your jsp application.

  • Deploying a JSP BC4J Application

    Hi,
    I created 2 projects in Jdeveloper 902. One containing BC4J components (BC4J.jpr), the
    other containing BC4J JSP pages (JSP.jpr) that use an Application Module in the BC4J.jpr
    project.
    I compile and deploy JSP.jpr to a standalone OC4J container.
    When I access the JSP I get the following error :
    msg=JBO-33001: Cannot find the configuration file Proj_dflt_pkg\common\bc4j.xcfg in the classpath
    Appreciate any help on this.

    bc4j.xcfg file is part of the middle tier project(BC4J.jpr) and should be packaged in the .war file.
    In 9.0.2 creating a bc4j jsp project creates a web application deployment profile and a library that points to the classes of the middle tier poject. The generated profile includes this library so that the resulting .war file has all the required files from the middle tier project. However if you created the deployment profile manually then you must perform this step yourself.
    You can verify this by launching the deployment profile Settings dialog and selecting the WEB-INF/lib node. The right panel lists the libraries that are selected for inclusion in resulting .war.
    Hope this helps.
    Dhiraj

  • 9i;JSP; BC4J Data Tags...

    Hi,
    What's different between these two tags in BC4J Data Tags pallet:
    <jbo:InputText> & <jbo:InputRender>

    Hello,
    Here is the difference (from the online documentation)
    <jbo: InputText> Inserts a text-input field form element into
    your page.
    JSP Syntax <jbo:InputText
    datasource="datasourceId" dataitem="attributename"
    [ cols=numberCharactersWide ]/>
    Examples
    Order Id:<jbo:InputText datasource="Orders" dataitem="Id" />
    Description The input render converts all values to a String for
    storage in the database.
    <jbo: InputRender>
    Inserts a input form element that allows user to edit data of
    all types, including complex object types.
    JSP Syntax
    <jbo:InputRender
    datasource="datasourceId"
    dataitem="attributename"/>
    Examples
    <form enctype="multipart/form-data"
    NAME="iForm" METHOD="POST"
    ACTION="Submit_AddImage.jsp" >
    Image Id:<jbo:InputRender datasource="ds1" dataitem="Id" />
    Image File:<jbo:InputRender datasource="ds1"
    dataitem="Image" /><input type="submit" /> </form>
    Description
    Input form uses a field render specific to the object type.
    Hope this helps. You can search on the online documentation for
    description about this and other components.
    Thanks,
    -Kishore
    JDev Team

  • Master-Detail-Detail JSP/BC4J Sync Problem

    Hi everybody,
    im having a strange problem with my MDD schema in my custom BC4J/jsp page,
    I went through all other topics in the forum but couldnt find any analogue to my specific problem,
    Lets call schema as M->D1->D2
    What I need to do is to navigate my cursor on D1 using a rowkey, the problem is when i use <jbo:ROW ... action="find"> using the rowkey sent by DataEditComponent, it seeks the first row in my data source(in sync with Master) instead of seeking the actual row.
    FYI, the problem disappears when I omit the master ViewObject (normal master detail using D1->D2)
    Any comments appreciated (ofcourse ASAP ;))
    Here is the original code:
    <%@ page language="java" errorPage="errorpage.jsp" contentType="text/html;charset=utf-8" import = "oracle.jbo.html.*, oracle.jbo.JboException"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule id="SalesModule" definition="SalesWeb.SalesModule" releasemode="Stateful" />
    <jbo:DataSource id="dsContact" appid="SalesModule" viewobject="SContactView1" rangesize="10" itermode="LastPagePartial"/>
    <jbo:DataSource id="dsOrder" appid="SalesModule" viewobject="SOrderView2" rangesize="10" itermode="LastPagePartial" />
    <jbo:DataSource id="dsItemList" appid="SalesModule" viewobject="SOrderItemView3" rangesize="10" itermode="LastPagePartial"/>
    <%
    RequestParameters params = HtmlServices.getRequestParameters(pageContext);
    boolean doRedirect=false;
    String PageID=this.getClass().getName();
    String sessJboRowkey=(String)session.getAttribute(PageID+"_jboRowKey");
    String paramJboRowkey=(String)params.getParameter("jboRowKey");
    if(sessJboRowkey!=null && paramJboRowkey==null && (params.getParameter("jboEvent")==null || params.getParameter("jboEvent").toString().compareToIgnoreCase("create")!=0))
    paramJboRowkey=sessJboRowkey;
    else
    if(paramJboRowkey!=null)
    session.setAttribute(PageID+"_jboRowKey",paramJboRowkey);
    String masterRowKey=params.getParameter("masterRowKey");
    if(masterRowKey!=null)
    %>
    <jbo:Row id="currRow" datasource="dsContact" action="find" rowkey="<%=masterRowKey%>" ></jbo:Row>
    <%
    %>
    <jbo:OnEvent name="update" datasource="dsOrder" >
    <jbo:Row id="myrow" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="Update" />
    <jbo:Commit appid="SalesModule" />
    </jbo:OnEvent>
    <jbo:OnEvent name="create">
    <% if(paramJboRowkey!=null)
    %>
    <jbo:Row id="newrow" datasource="dsOrder" action="createinrange" ><%
    try
    { %>
    <jbo:SetAttribute dataitem="*" /><%
    } catch (JboException ex)
    newrow.remove();
    throw ex;
    } %>
    </jbo:Row>
    <jbo:Commit appid="SalesModule" />
    <%
    } //end if %>
    </jbo:OnEvent>
    <jbo:OnEvent name="delete">
    <jbo:Row id="delrow" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="Delete" />
    <jbo:Commit appid="SalesModule" />
    <%
    doRedirect=true;
    %>
    </jbo:OnEvent>
    <%
    if(doRedirect)
    %>
    <jbo:ReleasePageResources />
    <%
    response.sendRedirect((String)params.getParameter("originURL"));
    %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
    <TITLE>Edit Order</TITLE>
    </head>
    <body>
    <% if(paramJboRowkey==null)
    %>
    <h3>Edit Order</h3>
    <jbo:DataEdit datasource="dsOrder" enctype="application/x-www-form-urlencoded" targetURL="SOrderView2_Edit.jsp"/>
    Cancel
    <%
    else
    %>
    <h3>Order Details</h3>
    <jbo:Row id="rowCur" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="active">
    <table class="clsViewCurrentRecord" cellspacing="2" cellpadding="3" border="0">
    <jbo:AttributeIterate id="def" datasource="dsOrder">
    <tr class="clsTableRow">
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"> <jbo:ShowHint hintname="LABEL">##Column</jbo:ShowHint> </td>
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"> <jbo:RenderValue datasource="dsOrder">##Cell</jbo:RenderValue> </td>
    </tr>
    </jbo:AttributeIterate>
    </table>
    </jbo:Row>
    <%
    %>
    <br>
    <% if(paramJboRowkey!=null)
    %>
    <center>
    <h3>Order Items</h3>
    <table border="0">
    <tr>
    <td ALIGN="right"><jbo:DataScroller datasource="dsItemList" /></td>
    </tr>
    <tr>
    <td><jbo:DataTable datasource="dsItemList" edittarget="SOrderItemView3_Edit.jsp" /></td>
    </tr>
    </table>
    </center>
    <%
    %>
    <jbo:ReleasePageResources />
    </body>
    </html>

    Hi,
    you can use the column- or alias-name of the first query like:
    <dataQuery>
    <sqlStatement name="Q_MASTER">
    <![CDATA[
    select field1,field2 from master_table
    where field3 = 'ABC'
    ]]>
    </sqlStatement>
    <sqlStatement name="Q_DETAIL">
    <![CDATA[
    select field4,field5 from detail_table
    where field6 = :field2 (where field2 is a column of Q_Master)
    ]]>
    </sqlStatement>
    Pay attention that the column-names (aliases) are distinct
    regards
    Rainer

  • JSP/BC4J app: How to get view object row data into a scriplet variable?

    I have a JSP application using BC4J data tags. Within a rowsetiterate tag, how can I get the data value of an attribute for the current row into a scriplet variable?
    Thanks,
    Steve

    Using the <jbo:Row> tag like this:
      <jbo:RowsetIterate .... >
        <%--
         | Establish a scriptable variable "curRow" for the current row
         +-->
        <jbo:Row id="curRow" action="current"/>
        <%
          String foo = (String)curRow.getAttribute("YourAttrName");
        %>

  • Deploy jsp/bc4j

    i've an application in 2 projects:
    proj1: containing only the bc4j
    proj2: containing the jsp's which show the views etc.
    it runs great on the jdev-embedded oc4j.
    but what do i have to do to deploy the application? i have a xxx.deploy in the jsp-project. but when i deploy it to a remote oc4j the application doesn't run.
    do i have to deploy the bc4j-project too? if yes, how can i do this?

    hy paul
    is the problem in using jdev 9.0.3 and iAS 9.0.2?
    when i try to access the page i get a HTTP-403error.
    could you please tell me step by step how i have to deploy the projects?
    do i have to deploy the bc4j-project separately?
    in the 'profile dependencies' from the jsp.deploy, do i have to add the bc4j.deploy?

  • JSP, BC4J, Udating records: Dates

    Hi,
    I have a JSP application that has several date fields. I have a calender bean to populate the fields. The values are entered as "YYYY-MM-DD".
    When all the fields are required to be updated, the update proceeds without a problem and the updated dates are displayed in the format "DD-MON-YY".
    However, if all the fields are not updated, I get the following error message:
    java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff.
    It appears that the problem arises as the fields that are not updated display the dates in the format "DD-MON-YY".
    My code is as follows:
    // P_DateField is the newly entered value and //is passed as a String
    oracle.jbo.domain.Date m_DateField = null;
    m_DateField = new oracle.jbo.domain.Date(P_DateField);
    while(vo.hasNext())
    // Only one row should be returned, so use vo.first()
    Row row = vo.first();
    try
    { row.setAttribute("MyDateField", m_DateField);
    catch (Exception ave)
    I would appreciate any help on this.
    Thanks.

    Could you please help me with the above?
    Thanks.

  • Jsp - BC4J

    I have a html page with several frames that loads JSP-files. The JSP's use the same application module, and two view-objects. So in the request to the JSP's I send in two rowkeys, one for each view-object which are linked together as parent-detail.
    When I set the application modules releasemode to "Stateless" I quite often get a NullPointerException on getSyncLock(). With the releasemode set to "Stateful" it seems to work better, but then I get some odd behaviour between the frames.
    I don't know if this is enough information, but any help is appreciated...

    Hi,
    Here's the stacktrace:
    500 Internal Server Error
    java.lang.NullPointerException
         java.lang.Object oracle.jbo.server.ViewObjectImpl.getSyncLock()
         oracle.jbo.server.ViewRowSetImpl oracle.jbo.server.ViewObjectImpl.getDefaultRowSet()
         oracle.jbo.Row oracle.jbo.server.ViewObjectImpl.getCurrentRow()
         void custagreement.mainagree._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         [custagreement/mainagree.jsp]
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run()
    It seems to occur when two frames that uses the same app-module is loading at the same time. But only if release-mode is set to stateless. Stateful works fine.
    /THG

Maybe you are looking for

  • Chronic problem - Safari will not load - please help

    All other laptops in my house connect to the internet except for my desktop. All of a sudden - Safari has just died. I try and load a page and nothing works. When I do get a page to load - it crawls like a turtle. I just deleted Safari and will try a

  • PI 7.0 - UDF to access runtime constants

    Hi experts, I've created some user-defined functions to use in my Message Mappings. I'm particularly interested in having Message Mappings that allow me to send error e-mails everytime an integration process fails. So, in every Message Mapping I've c

  • Is this a Dreamweaver or Apache problem?

    Or maybe it's a problem with me?? I created a new site and everything proofs fine on my Apache server EXCEPT: The .css file path for my left nav include file is: /Pyramid/css/pyramid1include.css      <link href="/Pyramid/css/pyramid1include.css" rel=

  • Static NAT with port translation

    Hello All, I have a server running web application on 443 and now I want to publish it on Internet with static nat and just for port 443,  I am thinking that following configuration should be fine, can anyone comment on it.   10.1.1.2:443         10.

  • Screenshots opening very slowly

    i changed my settings so that my screenshots are now pdf's as opposed to the png garbage, but i have noticed they open very slowly. on my older macs, screenshots opened instantaneously almost, and now there is a few seconds of lag. anyone noticed thi