JDeveloper Team:

We am currently using JDev903. We are not ready to upgrade to JDev905.2.
We were looking at the new LAF for the 1st & 2nd Level menus with JDev905.2
Question:
Is there is a way to replace JDev903's 1st & 2nd level menus with JDev905.2?
Tks.

Correct me if I'm wrong. You want to customize the LAF on your application using JDev 9.0.3. The LAF customization support was built-in to the version of UIX that is shipped with the 10g (9.0.5.x) release of JDeveloper. So, if you want to customize the LAF of your application you will have to migrate to 10g.
- Jonas
Jdev Team

Similar Messages

  • JDeveloper Team - Refers: How do I display multiple rows in a gridControl

    JDeveloper Team
    With reference to the previous reply..
    My query is not based on a view object. It uses the executeRetrieval command to do the select statement.
    The query obtains the correct number of rows but it displays only the first record out of the selected rows.
    pls help me find a solution.
    null

    Can you try to list the row values using the dataitem that the executeRetrieval method returns.
    ex.,
    import javax.infobus.*;
    DbAccess db = sessionInfo.getDbAccess();
    ScrollableRowsetAccess scr =
    (ScrollableRowsetAccess)db.executeRetrieval("select * from dept", "infobus:/oracle/Session1/DynamicQuery", null);
    System.out.println(scr.getRowCount());
    null

  • Frustrated with DATA TAGS (JDEVELOPER TEAM)

    I have been trying to delete a record from an HTML form using data tags and unfortunately I am unable to make any progress.
    It keeps telling me that I got to use either
    "rowkey" or "rowkeyparam" and when I try to use it, it gives me a jsp exception.
    This is the same case with me when I try to locate a record using the "Find" action.
    So how am I to delete or update a record which is displayed in an HTML form?
    I saw the "howto" on using the "rowkeyparam" but it simply doesn't work as advertised.
    I always end up getting a JSP exception and the end result being I am unable to "UPDATE" OR "DELETE" any record from an HTML form.
    JDeveloper Team, Please advice. Do you have any sample examples of "UPDATING" and "DELETING" a record from an HTML form?
    I am really frustrated!!!!
    null

    To see a quick example of a working UPDATE example simply use the "DataPage" Wizard.
    When you choose the Edit Form generation option from the wizard, it will generate a working example of an "Edit Form"
    JSP app using the Data Tags and a RowKey parameter.
    For more info on the DataPage Wizard see: http://otn.oracle.com/products/jdev/info/jdev/datapage/s000.html
    As for deleting a record, this is also done with the Row tag.
    Instead of
    <jbo:Row id="myrow" datasource="ds" rowkeyparam="MyRowKey" action="Update">
    <jbo:SetAttribute dataitem="*"/>
    </jbo:Row>
    You can use:
    <jbo:Row id="myrow" datasource="ds" rowkeyparam="MyRowKey" action="Delete"></jbo:Row>
    Providing you pass the rowkey value as the Html parameter "MyRowKey"..
    null

  • JDeveloper Team: How Do I minimize the number of Oracle Sessions using Data Tags?

    I am trying to create a stateful application thru my JSP pages. Everytime there is a reference to the application module using the data tag, it looks like it creates a new Oracle Session. But thats not what I want to do.
    I have a module in which my first JSP page allows viewing of the data and in subsequent pages I allow insert, update, delete, commit etc.
    My Questions:
    1) The problem that I am encountering is that every new page that I go to creates a new Oracle session even though I specify the "Stateful" release mode.
    How do I avoid this?
    It looks like , if one browser user can potentially create 10-20 oracle sessions thru one module, imagine what the impact will be when we have hundreds of users.
    2) The sample JSP pages I saw has the username and password hard coded in it every time. Why? For a stateful application can I not specify the username and password just once and have the other JSP pages use the same userid and password.
    What are the pros and cons? I thought if I don't use the username and password in all the JSP pages then it probably will not create additional Oracle sessions but that is not true!!
    3) If it creates several Oracle sessions , will it not cause locking problems? If so, How do I minimize locking problems in a stateful application.
    JDeveloper Team Please advise!!
    AM I missing something? I would appreciate if someone can help me out!
    null

    Thanks a lot for the information. That thread was indeed very helpful. But it still didn't answer all my questions:
    1) In the thread you mentioned, it mostly talks about Web beans. In a jsp page (using Web bean) we need to first invoke setReleaseApplicationResources(true) and then invoke releaseApplicationResources().
    Does this apply to data tags? I mean I have a tag <jbo:ReleasePageResources releasemode="Stateful" />. Is this enough to release the application module back to the pool or do I have to have something equivalent of setReleaseApplicationResources(true)?
    2. In a stateful application, the state of an application is maintained between requests via a browser cookie. For each browser, you can have one state per application module class. I was attempting to run "several browser sessions from the same machine" and the end result was that I got errors and unpredictable results ie it returned me far fewer rows then I saw originally. Should I be actually be running the browser session from different machines?
    3. In JDeveloper Documentation (section About Application Module pooling) there is a note section : "If the application module is not recycled the data stays the same. However if the application module was recycled and then activated through a failover, the activation logic re-executes the view objects, so it may bring in more or less rows then originally seen by the clients due to any database updates that have occured."
    This is exactly what is happening to me? How do I get rid of this problem? I want to be able to see all the original rows + any new rows That have been committed. Please advise!
    4. Are the JDBC connections tied to application module instances? Is it one JDBC connection per application module instance? So, in a stateful JSP, if I end up using a different application I also get a different JDBC connection. IS this true?
    5. Does the no of application module instances depend on the no of available JDBC connections? Because it looks like if you set the max no of connections to "5" and set the max no of application module instances to "10", It will be able to instantiate only "5" application module instances due to the limitation set by connection pool.
    6. At times I get errors which indicates that the row in view object does not exist. Is this something familiar? Or is it the same problem that John discussed in his thread.
    Thanks in advance!

  • JDeveloper Team Development with SCM

    I am trying to use JDeveloper & SCM in a team environment. I have SCM working for version control. Do I need to have all developers share the same SCM connection instead of connecting to the repository with their own accounts?
    Thanks in advance,
    Steve

    Steve,
    Create a configuration stripe of the code you want the developers to work on.
    Create a workarea based on this configuration and make it shared, either by granting
    access to each developer or grant access to the PUBLIC role.
    When each developer creates their own private workarea ask them to create
    it based on the above shared workarea. Each developer thus has access to the
    same code and will not disrupt each other with development they are working on.
    David

  • For jdeveloper team

    I'm hoping I can get some feedback on a couple of issues regarding the usage of bc4j framework in a web-application. I've found some other posts asking some of the same questions, but have not been able to find any posts with answers. I apologize in advance if I've missed them:
    1) post vs. get: Within the OC4J container (when run from inside Jdeveloper), using the post method on forms seems broken. Specifically, I have a page which posts with the form's action set to a controller servlet. Using debug mode, I can see that as the controller servlet receives the request, the parameters do exist. However, the controller then forwards to a view page which, when debugged, shows that the request's parameters are empty. On a side note, doing the very same thing under tomcat (this very same application) works fine (i.e., the 'view' jsp receives the parameters from the original request. According to my reading of the spec, a forward should preserve the request parameters. Finally, using the 'get' method does preserve the request parameters under oc4j.
    2) JSP-centric development: While digging through the web-application samples and various HOWTO documents, it appears that the recommended way of building web-applications is to make use of the bc4j datatags. This is not necessarily the way many folks want to develop non-trivial web-apps these days. Keeping with the philosophy that JSP code should be related to the 'view' only, and that all 'controller' code should be separate, what (if any) plans do the jdeveloper/bc4j teams have to open the functionality available in the jsp datatags for servlet development? I certainly understand that pretty anything I can do using datatags are possible to do from a servlet by using the given bc4j API; however, even just getting the application module from the pool ends up being significantly more work than using the <jbo:ApplicationModule> tag. Additionally, when I've looked into using pieces of code in the datatag implementations, and I then check the javadocs, I see an awful lot of "Internal: Applications should not use this method", or worse yet, no explanation of what the method is supposed to do. So at this point, I've got much more "code" in my JSP's that I'd like, and my controller-servlet and related modules are really not doing as much as I'd like them to do.
    Thanks in advance for any input!

    John,
    For the first question, the only thing I can related to this problem is a bug in OC4J which has been fix in the 9.0.2 release. I do not know which version of OC4J you are using but that might be the problem. More specifically, it had to do with the use of the JAZN request handler no processing the request parameters correctly after a forward or an include. May be you should post a message on the oc4j message list.
    As for the second question, your are identifying correctly some problems associated the 9.0.2 BC4J JSP application wizards. The Controller written into View problem is actually not because of the BC4J datatags themself but more because of the missing controller part.
    The BC4J datatags provides a great way to retrieve the model information and display it in the view. But infortunately we had to build the controlling part using JSP and that become very messy (even if we tried very hard to put of controlling code in one file called DataHandlerComponent.jsp and use as many tags as possible).
    In our next release (9.0.3) we are extending our model by integrating with the Struts Controller.
    Here is a list of current problems that Struts will help us fix:
    * The execution of the business logic and the event handling is done in the JSP page itself forcing you to write a lot of java code in scriptlet not easily portable.
    * Missing page flow control.
    * No Runtime NLS support.
    * The application pool management is error prone because of the requirement of the ApplicationModel and ReleasePageResource tag in specific place in the JSP file.
    * Tricky error handling.
    So using the servlet controller is the right thing to do, would it be your own or Struts. We can help you with the code to manage the ApplicationModules with the pool or you can wait for 9.0.3 where this will be handle with Struts.
    Charles.

  • -- Establishing contact with Oracle 8i & JDeveloper Teams

    Hi,
    We are a tool vendor (Quintessence Systems). We have developed a
    generalized, fully automated tool which generates 100% pure Java
    classes from stored PL/SQL (Packages, Procedures, Function etc)
    objects.
    The tool itself, written entirely in Java, parses and tokenizes
    PL/SQL objects then rapidly generates 100% pure Java. This
    provides existing Oracle customers with the ability to:
    - Continue developing in PL/SQL for as long as necessary
    transparently gain the benefits of a Java deployment of their
    business logic
    - Migrate their PL/SQL automatically to Java if required
    - Create EJBs from Stored Procedures in conjunction with
    JDeveloper and gain the benefits of distributed component based
    computing
    - Automatically deploy PL/SQL stored procedures in Java in an
    Oracle Application Server
    We would be very interested in developing close contacts within
    your group (at both technical and product manangement levels) as
    I believe this technology could become and important Internet,
    distributed computing and e-commerce enabler for your customers.
    Please advise me who you think would be useful people for us to
    contact by email at both a technical and product management
    level.
    I look forward to your reply. Please email me directly at
    [email protected]
    Thanks.
    Elton Barendse
    CEO
    Quintessence Systems
    null

    Hi Gloria,
    If you mean, "Will it work?" the answer is yes. Oracle9i JDeveloper should work with either the 8i or 9i versions of the database.
    Something in your question (perhaps it was that you mentioned you had a "free" copy of JDeveloper) makes me unsure whether this is what you were asking, however. If your question is "Is it legal?" then it depends on what you want to do with it. You're welcome to play around with JDeveloper and the database all you want; explore its features and evaluate it. However, if you want to deploy an application developed with JDeveloper in a commercial or other production setting, you do need to buy a license.
    Hope this helps,
    Avrom

  • Jdeveloper Team RE Jdeveloper 9.0.3 For Non-Oracle Databases

    I see that support for non-Oracle databases and Third-Party JDBC drivers is very improved. However, I have tried to use the SAPDb JDBC driver and the BC4J tester and generated Swing clients all display greyed so that no updates are possible. This appears to be a bug since Jbuilder works fine with this driver. However, I think Jbuilder's Express dataset and commit philosophy is really bad. Any commitments as to when this will be fixed?

    Yes, I examined the attribute settings and manually adjusted them in the entities and views. They are now updateable. Using Jdeveloper with SAPDB would be very tedious. Jdeveloper did not recognize foreign key constrains, primary keys, nor that attributes were updateable.
    Is there a way to include SAPDB in the testing? It is trivial to install and run and would make Jdeveloper a more robust tool. I do not like Jbuilder's approach to master-detail client screens and would recommend using Jdeveloper for this type of work if it could handle more databases like SapDb.

  • JDeveloper Team - How to print Barcodes from java application

    We are developing an Inventory based application in JDeveloper 3.2.2/Oracle 8i/Netscape Enterprice web server on Windows NT platform. The application is developed in swing technology.
    We have to print Barcodes on Intermec 3400/4100 or Zeebra Z4000 (connected to COM1/COM2) from our java application from one of our screens.
    Can you please point me to right place or get me sample source how to achieve this. We are working on a timebound deadline and we are really counting on your sincere response ASAP. Thanks in advance.
    VR
    null

    Try creating a page called launcher.html (for example). That does this:
    <html>
    <head>
    <script language="javascript">
    windowHandle=window.open("http://www.javasoft.com", "", "height=700,width=1000,status=no,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,top=5,left=5");
    </script>
    </head>
    </html>Now you launch IE (or whatever) with this page using the Runtime class. After x seconds (after the second window has been launched) try killing the process. Hopefully it will kill the original window you opened and not the window you popup (the one without toolbars etc)
    It might kill both windows but I can't be bothered to test it. If it does you'll have to try and find a workaround.

  • A Suggestion to JDeveloper Team

    The JDeveloper should allow aumotical migration (I mean smoothly) of an application developed from the earlier version (at the least the first version of 10 series), to the most current version (or backward compatibility).
    I migrated an application, for instance, ToyStore Demo, it all works fined under version 10.1.2. But after I migrated it to the latest 10.1.3. It renders some problems. Remember, I am NOT talking about a distant version for migration. I am merely trying to migrate from 10.1.2 to 10.1.3, the same version, just different release.
    The JDeveloper got to stablize its core technology. I can HARDLY migrate an app developed under JDev 9.x to Jdev 10.x. The core technology is totally and foundamentally changed (understandable). Now from 10.1.2 to 10.1.3, by reviewing the struts-config.xml (under 10.1.3), I feel that I have to go back to the square one to learn the technology again (we are talking about the same version!).
    A success of a tool depends on its stablized foundation. If this foundation keeps changing, how can the customer develop an application on it?
    Take PowerBuilder as an example, I can migrate and run an application developed under version 5 to/on version 9 (Though, I have not tried version 10 yet). That is 4 versions old application!
    Another example, I can run my Oracle Database PL/SQL (developed under version 7) on the most current version of Oracle Database 10g. That is 3 big versions of distance. So the slogan is: Learn from Oracle Database!
    It is just frustrating, you know.
    Thanks for reading.
    Scott
    Message was edited by:
    scottjhn

    I read in another post that this could be caused by a corrupt workspace file.
    When this happens to me, I
    - Restart JDeveloper
    - Add a breakpoint in a source file
    - "Save all"
    - Remove the breakpoint
    - "Save all again"
    This seems to work for me.
    I guess that, as breakpoints are saved in the workspace file, adding and removing one somehow causes the workspace file to rebuild itself a bit.
    The only drawback is that you have to restart JDeveloper before doing this, because when it starts doing the "unable to insert an item" thing, then you can't even add a breakpoint!
    Hope this helps, Remi
    null

  • Question for JDEVELOPER TEAM

    Hi
    Oracle for each product has .pdf manuals
    but nothing for jdeveloper, In releases 1.0,2.0,3.0, ...
    Why?
    null

    The organization of the docs we deliver--around narrow tasks, heavily cross-linked--does not translate well into PDF or book format.
    If you want a print guide to JDeveloper, there are two options:
    A) There is a third-party book, by Paul Dorsey, coming out in a month or so.
    B) If you are using HTML help (which is likely if you have Internet Explorer on your machine), you can print out a large section of the current help system at once using the following procedure:
    1) Choose Help | Help topics
    2) In the left-hand pane, right-click the folder that interests you and choose Print.
    3) In the dialog that opens, select "Print the selected heading and all subtopics."
    This will print the entire contents of the folder.
    null

  • To the JDeveloper Team

    please bear with me. I have lost afew too many hairs over this code. Here is the sqlj file I am using in the jdeveloper 3.2.
    ===========================================
    package ReviwerPkg;
    import sqlj.runtime.*;
    import sqlj.runtime.ref.*;
    import java.sql.*;
    import java.util.ArrayList;
    * A Sqlj class.
    * <P>
    * @author Natural Resources
    public class DBInsertclsBean {
    private String relaID = null; // relationship ID
    private String busPrtyID= null; // business Party ID
    // Method to set the relaID property
    public synchronized void setrelaID(String relaID) {
    this.relaID = relaID;
    // Method to set the busPrtyID property
    public synchronized void setbusPrtyID(String busPrtyID) {
    this.busPrtyID = busPrtyID;
    public DefaultContext fctx = null; // database connection context
    //-- Pre defgined FPARScontext in the tab ---
    // Method to process the submitted classfications
    public synchronized String processClassfications (String sAllFlg, ArrayList classfication) {
    sAllFlg = sAllFlg == null?"N":sAllFlg;
    if (((classfication == null) &#0124; &#0124; (classfication.size() == 0))&&((sAllFlg == "")&#0124; &#0124;(sAllFlg == "N"))) {
    return ("No classfication items to insert!");
    try {
    // Connect to the database
    fctx = oracle.sqlj.runtime.Oracle.getConnection("jdbc:oracle:thin:@146.76.1.19:1521:devl", "pgat490", "pgat490");
    //fctx = oracle.sqlj.runtime.Oracle.getConnection("jdbc:oracle:oci8:@", "pgat490", "pgat490");
    // Insert the classfications into database
    //------------------------------------------------------debug 1/31/2001----
    //set default connection to url, user, password specified in the
    //connection.properties file.
    //Oracle.connect(FPARSconnection.class, "connect.properties");
    //Connection conn = DefaultContext.getDefaultContext().getConnection();
    DBInsert(sAllFlg,classfication);
    //DBInsert(sAllFlg,classfication,conn);
    // No errors occurred!
    return ("Classfications processed successfully!");
    } catch (SQLException e) {
    String str = new String();
    str = e.getMessage();
    return ("SQL Error:" + e.getMessage());
    } finally {
    try {
    // Disconnect from the database
    fctx.close();
    } catch (SQLException e) {}
    // DBInsert expects a 'Y' or 'N' value for sAllFlg, with 'Y' signifying selection -
    private void DBInsert(String sAllFlg, ArrayList classfication) throws SQLException {
    //private void DBInsert(String sAllFlg, ArrayList classfication, Connection conn) throws SQLException {
    //Statement stmt = conn.createStatement();
    //String sqry = new String();
    if (sAllFlg.equals("Y")) { //process the all selection.
    //sqry = "DELETE fprevr_fp_class WHERE bus_prty_rela_id = " + relaID;
    //stmt.executeUpdate(sqry);
    // First, delete all entries in the class relation ship table
    #sql [fctx] { DELETE fprevr_fp_class
    WHERE bus_prty_rela_id = parseLong(:relaID) };
    //--- WHERE bus_prty_rela_id = 400 };
    //sqry = "UPDATE bus_prty_rela SET fprevw_all_class_flg = '" + sAllFlg + "' ";
    //sqry = sqry + " WHERE bus_prty_id = " + busPrtyID + " and bus_prty_rela_id = " + relaID;
    //stmt.executeUpdate(sqry);
    // Next, update the BUS_PRTY_RELA table. Set the all flag
    #sql [fctx] { UPDATE bus_prty_rela
    SET fprevw_all_class_flg = ':sAllFlg'
    WHERE bus_prty_id = parseLong(:busPrtyID) and bus_prty_rela_id = parseLong(:relaID) };
    //--- SET fprevw_all_class_flg = 'Y'
    //--- WHERE bus_prty_id = 183 and bus_prty_rela_id = 400 };
    #sql [fctx] { COMMIT };
    } else { //process the individual class codes
    //sqry = "DELETE FROM fprevr_fp_class WHERE bus_prty_rela_id = " + relaID;
    //stmt.executeUpdate(sqry);
    // First, delete all entries in the class relation ship table
    #sql [fctx] { DELETE FROM fprevr_fp_class
    WHERE bus_prty_rela_id = parseLong(:relaID) };
    //sqry = "UPDATE bus_prty_rela SET fprevw_all_class_flg = '" + sAllFlg + "' ";
    //sqry = sqry + "WHERE bus_prty_id = " + busPrtyID + " and bus_prty_rela_id =" + relaID;
    //stmt.executeUpdate(sqry);
    // Next, update the BUS_PRTY_RELA table. Set the all flag
    #sql [fctx] { UPDATE bus_prty_rela
    SET fprevw_all_class_flg = ':sAllFlg'
    WHERE bus_prty_id = parseLong(:busPrtyID) and bus_prty_rela_id = parseLong(:relaID) };
    // Now, insert each line items from the submitted classfication
    for (int i = 0; i < classfication.size(); i++) {
    //sqry = "INSERT INTO fprevr_fp_class( bus_prty_rela_id,fp_cl_ty_cd ) VALUES (";
    //sqry = sqry + relaID + ",'" + classfication.get(i) + "') ";
    //stmt.executeUpdate(sqry);
    #sql [fctx] { INSERT INTO fprevr_fp_class
    ( bus_prty_rela_id,fp_cl_ty_cd )
    VALUES (parseLong(:relaID),':(classfication.get(i))') };
    #sql [fctx] { COMMIT };
    } //end else
    } //end DBInsert
    =======================================
    Now here is the jsp file that calls this as a bean.
    ========================================
    <%@ page language="java" import="java.util.ArrayList" session="true" autoFlush="true" isThreadSafe="true" contentType="text/html; charset=ISO-8859-1" isErrorPage="false" %>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    <jsp:useBean class="ReviwerPkg.DBInsertclsBean" id="dbInsert" scope="page" ></jsp:useBean>
    </TITLE>
    </HEAD>
    <BODY>
    DBupdcls.jsp : Attempting to update the database........<BR>
    <%
    String sbusPrtyID = request.getParameter("ReviewerID"); //busPrtyID
    String srelaID = request.getParameter("hidBusPrtyRelaID"); //relaID
    //special handling for the possible array of values returned for selected classes
    String[] sArrClassCodes = request.getParameterValues("chkcls"); //delimited list of selected class codes.
    String sAllclsCD = request.getParameter("chkAllcls"); //all class codes flag.
    ArrayList arL = new ArrayList();
    if (sArrClassCodes != null) {
    if (sArrClassCodes.length > 0 ) { //don't process loop unless we have something.
    for (int i = 0; i < sArrClassCodes.length; i++) {
    arL.add(sArrClassCodes); //add all strings to the array list.
    %>
    <jsp:setProperty name="dbInsert" property="busPrtyID" value="<%=sbusPrtyID%>" />
    <jsp:setProperty name="dbInsert" property="relaID" value="<%=srelaID%>" />
    <%= dbInsert.processClassfications(sAllclsCD,arL) %>
    <H2>The following output is from JSP code:</H2><P><% out.println("Hello World"); %></P>
    </BODY>
    </HTML>
    ==========================================
    I keep getting the following error from sqlj file. : SQL Error:ORA-00904: invalid column name . Actually all the tables and columns exist. I use sql plus, same connection, and everything is fine. As you can see in the sqlj file, I have tried everything including JDBC. It simply wont work. I use the same connection for BC4J, it works. The connection works in SQLJ too, but My co-workers and I can't figure why it doesn't work. We have looked at the Oracle samples without luck. Can someone tell us what to do with this? It would be greatly appretiated.

    Hi Guys, isn't this frustrating? Anyway, I gave up on that issue and decided to create a bean to replace that SQLJ code. Strange as it may sound, the bean didn't work either. Another developer suggested rebooting the machine, and voila; The bean works without a hitch. I still have no clue why SQLJ didn't work. Here is the bean implimentation.
    ============================================
    package ReviwerPkg;
    import javax.ejb.*;
    import java.util.*;
    import java.sql.*;
    public class DBinsertClsEJBBean implements SessionBean{
    private String relaID;
    private String busPrtyID;
    private String usrNM;
    private String password;
    private String schema;
    private String conURL;
    private Connection conn;
    public DBinsertClsEJBBean() {
    public void ejbCreate() throws CreateException {
    // TODO: Add custom implementation.
    public void ejbActivate() {
    public void ejbPassivate() {
    public void ejbRemove() {
    public void setSessionContext(SessionContext ctx) {
    public String getrelaID() {
    return relaID;
    public synchronized void setrelaID(String newRelaID) {
    relaID = newRelaID;
    public String getbusPrtyID() {
    return busPrtyID;
    public synchronized void setbusPrtyID(String newBusPrtyID) {
    busPrtyID = newBusPrtyID;
    public void setUsrNM(String newUsrNM) {
    usrNM = newUsrNM;
    public void setPassword(String newPassword) {
    password = newPassword;
    public String getSchema() {
    return schema;
    public void setSchema(String newSchema) {
    schema = newSchema;
    public String getConURL() {
    return conURL;
    public void setConURL(String newConURL) {
    conURL = newConURL;
    public void setConn(Connection newConn) {
    conn = newConn;
    public synchronized String processClassfications(String sAllFlg, ArrayList classfication) {
    sAllFlg = sAllFlg == null?"N":sAllFlg;
    if (((classfication == null) &#0124; &#0124; (classfication.size() == 0))&&((sAllFlg == "")&#0124; &#0124;(sAllFlg == "N"))) {
    return ("No classfication items to insert!");
    try {
    // Connect to the database
    DBInsert(sAllFlg,classfication);
    // No errors occurred!
    return ("Classfications processed successfully!");
    } catch (SQLException e) {
    String str = new String();
    str = e.getMessage();
    return ("SQL Error:" + e.getMessage());
    } finally {
    try {
    // Disconnect from the database
    conn.close();
    } catch (Exception e) {}
    private void DBInsert(String sAllFlg, ArrayList classfication) throws SQLException {
    Statement stmt = conn.createStatement();
    String sqry = new String();
    if (sAllFlg.equals("Y")) { //process the all selection.
    // First, delete all entries in the class relation ship table
    sqry = "DELETE FROM fprevr_fp_class WHERE bus_prty_rela_id = " + relaID;
    stmt.executeUpdate(sqry);
    // Next, update the BUS_PRTY_RELA table. Set the all flag
    sqry = "UPDATE bus_prty_rela SET fprevw_all_class_flg = '" + sAllFlg + "' ";
    sqry = sqry + " WHERE bus_prty_id = " + busPrtyID + " and bus_prty_rela_id = " + relaID;
    stmt.executeUpdate(sqry);
    } else { //process the individual class codes
    // First, delete all entries in the class relation ship table
    sqry = "DELETE FROM fprevr_fp_class WHERE bus_prty_rela_id = " + relaID;
    stmt.executeUpdate(sqry);
    // Next, update the BUS_PRTY_RELA table. Set the all flag
    sqry = "UPDATE bus_prty_rela SET fprevw_all_class_flg = '" + sAllFlg + "' ";
    sqry = sqry + "WHERE bus_prty_id = " + busPrtyID + " and bus_prty_rela_id =" + relaID;
    stmt.executeUpdate(sqry);
    // Now, insert each line items from the submitted classfication
    for (int i = 0; i < classfication.size(); i++) {
    sqry = "INSERT INTO fprevr_fp_class( bus_prty_rela_id,fp_cl_ty_cd ) VALUES (";
    sqry = sqry + relaID + ",'" + classfication.get(i) + "') ";
    stmt.executeUpdate(sqry);
    } //end else
    =============================================
    here is the call from JSP.
    =============================================
    <%@ page language="java" import="java.util.ArrayList, java.sql.*, oracle.jdbc.driver.* " errorPage="errorpage.jsp" session="true" autoFlush="true" isThreadSafe="true" contentType="text/html; charset=ISO-8859-1" isErrorPage="false" %>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    <jsp:useBean class="ReviwerPkg.DBinsertClsEJBBean" id="dbInsert" scope="page" ></jsp:useBean>
    </TITLE>
    </HEAD>
    <BODY>
    <span><STRONG><FONT size=12 color=#008000>Posting changes to the database .......</FONT> </STRONG></span><BR><p>
    <%
    String sbusPrtyID = request.getParameter("ReviewerID"); //busPrtyID
    String srelaID = request.getParameter("hidBusPrtyRelaID"); //relaID
    //special handling for the possible array of values returned for selected classes
    String[] sArrClassCodes = request.getParameterValues("chkcls"); //delimited list of selected class codes.
    String sAllclsCD = request.getParameter("chkAllcls"); //all class codes flag.
    ArrayList arL = new ArrayList();
    if (sArrClassCodes != null) {
    if (sArrClassCodes.length > 0 ) { //don't process loop unless we have something.
    for (int i = 0; i < sArrClassCodes.length; i++) {
    arL.add(sArrClassCodes); //add all strings to the array list.
    //create a jdbc connection for use with the EJB
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //open a connection for the thin driver
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@146.76.1.19:1521:devl", "pgat490", "pgat490");
    %>
    <jsp:setProperty name="dbInsert" property="busPrtyID" value="<%=sbusPrtyID%>" />
    <jsp:setProperty name="dbInsert" property="relaID" value="<%=srelaID%>" />
    <jsp:setProperty name="dbInsert" property="Conn" value="<%=conn%>" />
    <span><STRONG><FONT size=12 color=#008000>
    <%= dbInsert.processClassfications(sAllclsCD,arL) %>
    </FONT></STRONG></span>
    </BODY>
    </HTML>
    =============================================
    Here is the same connection but done the way the documentation shows. IT DOESN'T WORK. Compare that to the one above.
    String myhost = "146.76.1.19";
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@(description=(address=(host=myhost)(protocol=tcp)(port=1521))(connect_data=(sid=devl)))", "pgat490", "pgat490");
    If you ask me, I suspect that the second syntax won't register the driver. Anyone know why it doesn't work? I still have a lot of unanswered questions eg the SQLJ ones. So simple yet a bear to get working. I am worn out from having to discover everything by trial and error. I know Java but this tool is something else.

  • JDeveloper Team - How do I display multiple rows in a gridControl

    When I execute a SQL select statement and display the results in a gridControl only the first row gets displayed in the grid.
    Could you please give me a solution for this problem?
    null

    If this query is based on a View object, can you verify the number of rows returned in BC4J Tester ?.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by kusan Atukorala ([email protected]):
    When I execute a SQL select statement and display the results in a gridControl only the first row gets displayed in the grid.
    Could you please give me a solution for this problem?<HR></BLOCKQUOTE>
    null

  • BUG; jdk1.3; Gridcontrol; Attention JDeveloper Team

    I have found yet another bug in the implementation of gridcontrol and jdk1.3.
    I have the following renderer for my text fields.
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * A Class class.
    * <P>
    * @author Linda B. Rawson
    public class DefaultTextRenderer extends DefaultTableCellRenderer
    * Constructor
    public DefaultTextRenderer() {
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
    Component comp = super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    String myFlag = "";
    try {
    // this row index must correspond to the run flag column in the gridcontrol
    myFlag = (table.getValueAt(row,15).toString());
    myFlag = (myFlag == null) ? "" : myFlag;
    if (myFlag.equals("P") ) {
    comp.setBackground(Color.lightGray);
    } else if (myFlag.equals("S") ) {
    comp.setBackground(Color.yellow);
    } else if (myFlag.equals("F") ) {
    comp.setBackground(Color.red);
    } else {
    comp.setBackground(Color.white);
    } //This is to catch the null row in gridcontrol from jdev bug
    catch (NullPointerException e) {
    return comp;
    I implement the renderer like this:
    DefaultTextRenderer textRenderer = new DefaultTextRenderer();
    TableCellRenderer renderer;
    renderer = textRenderer;
    m_table = gridControl.getTable();
    m_table.getColumnModel().getColumn(1).setCellRenderer(renderer);
    In JDK 1.2 it colors the appropriate row just like I want.
    In JDK1.3 it will not do the first occurance of the row. In otherwords if I want the first row in the grid colored it fails.
    You need to test this in your upcoming version.
    Linda
    null

    Hi,
    we have faced similar compatibility problems
    when testing our application using JDEV3.2
    and JDK1.3 (Browser crashed);
    Since we use JDK1.3.1 (it has been released aready by SUN) this severe problem vanished.
    I really share your concerns about the grid
    control in JDEV3.2.3 and I hope that we find
    a way to track the successful treatment of
    BUG 1806180!
    Have fun
    @i

  • JDeveloper in team application development

    We are looking for an evaluation of JDEveloper as a team
    application development tool.
    We would be starting from scratch, JAva-wise.
    THe intent is to deploy via JWeb in OAS 4.
    The question: Is JDeveloper 2.0 robust enough for a ground-
    up, team application development project?
    null

    Environment variables are the variables that you set at the OS
    level.
    You can set them in a DOS shell (single session) or in the
    Environment Tab of the System properties (on Windows NT). Double
    click the System icon in the Control Panel. You can add a
    variable and a value for it.
    Then there might be specific OAS variables as well. You can set
    these in the Management Interface of OAS.
    Help on using JWeb can be found in the OAS online help and
    samples.
    Hope this helps,
    -Roel.
    Nick Ayre (guest) wrote:
    : JDeveloper Team (guest) wrote:
    : : karen (guest) wrote:
    : : : We are looking for an evaluation of JDEveloper as a
    team
    : : : application development tool.
    : : : We would be starting from scratch, JAva-wise.
    : : : THe intent is to deploy via JWeb in OAS 4.
    : : : The question: Is JDeveloper 2.0 robust enough for a
    : ground-
    : : : up, team application development project?
    : : We indeed have features in JDeveloper for creating JWeb
    : : applications for OAS.
    : : We are currently focussing more on servlets though. OAS will
    : also
    : : have support for servlets in the very near future. So, since
    : : servlets is the industry standard for generating HTML from
    : Java,
    : : you may consider this for new application development. In the
    : : meantime you can use JDeveloper to create your servlets. In
    : the
    : : production release of version 2.0 (April/May) you will be
    able
    : to
    : : run and debug servlets in the JDeveloper IDE. This will use
    : our
    : : internal servlet runner. In the next couple of months you
    : could
    : : use OAS as a runtime environment for servlets. Please look at
    : the
    : : online demo for servlets:
    http://technet.oracle.com/product/tools/appjava/info/walkthru/ser
    : : vlet/s000.html
    : : (please note that the URL is broken up in two lines. You need
    : : both pieces;)
    : : You can also choose to stick with JWeb for a while.
    JDeveloper
    : : lets you build, run and debug JWeb apps. You might design
    your
    : : apps in a way that only the upper layer is JWeb specific,
    : which
    : : makes migration easier in the future.
    : : Your question about the robustness of JDeveloper. Our
    : development
    : : team is now spending 100% of their time making it more
    robust.
    : : The beta that is available is a little buggy, but we have
    : fixed
    : : loads of bugs un the meantime.
    : : Our own development organization works with the combination
    of
    : : JDeveloper and Clearcase with quite a large team. We are
    happy
    : : with this combination. You can use any other version control
    : : system since JDeveloper projects map perfectly to directories
    : of
    : : files on your operating system. We are also working with
    : : Intersolv on an addin for JDeveloper to their PVCS system.
    Our
    : : longer term direction is to integrate with the Oracle
    : Repository
    : : for team development & version/configuration control.
    : : Thanks,
    : : -Roel.
    : I have installed OAS 4.0.7 .
    : I have installed Jdeveloper 2.0 .
    : I have run some of the Jdeveloper tutorials .
    : Now I am trying to follow the Jweb tutorial.
    : How do I find where to set the ENVIRONMENT VARIABLES ?
    : Also is the any material on Jdeveloper and Jweb ?
    null

Maybe you are looking for