Checkboxes in BC4J's JSPs

Maybe it is a basic question...
How can I make a view field (that can be
Y or N) appear as a checkbox in a
JSP page based on BC4J?
Thank you

I found! Using the useStaticCheckBoxGroup
of the EditCurrentRecord class.
The biggest difficulty I have with
JDeveloper is finding out where the
"things" are - they are all spread over
so many classes, wizards, interfaces,
JSPs... The documentation is not very
clear. Can anyone give me a tip on how
have a view of the "big picture"?
(I mean, developing applications using
BC4J).
Thanks
null

Similar Messages

  • Search/Query Form bc4j-uix-jsp

    Hi:
    Are there any samples of Search/Query jsps using
    bc4j -uix jsps?
    There are some on OTN using html.
    I want to set up a search page that users can select one or more(AND) from about 5 attributes
    of a view and then display approx 6-8 different attributes of that same view.
    Any input would be appreciated.
    Thanks.

    Once you create the Query-by-Form datawebbean, you can modify the templates in the templates\webapp directory by changing all usages of the FindForm bean to use your new DWB. You can also create a new webapp template by copying the existing file and creating a new directory. You can add you new template by modifying the templates\apptemplates.xml. The current entries are:
    <?xml version="1.0"?>
    <APPTEMPLATES>
    <TEMPLATE NAME="default" DIRECTORY="templates/webapp/" USETHEMESELECTION="YES">
    </TEMPLATE>
    <TEMPLATE NAME="Oracle" USEFORMSELECTION="NO" DIRECTORY="templates/cabowebapp/" THEMEDIR="/webapp/jsimages" THEMECSS="/webapp/cabo/images/cabo_styles.css" USETHEMESELECTION="NO" TOOLBARCLASS="oracle.jbo.html.databeans.JSNavigatorBar">
    </TEMPLATE>
    </APPTEMPLATES>

  • BC4J&Servlets&Jsps:(Dev Team)Pro. impl. the combination With full Utiliz. of pooling

    Hi,
    I am having Problem in the area of Application Module Pooling and the Connection pooling while doing the load test of my application using the BC4J in servlets and Jsps.
    1) I am using IAS 1.0.2 comes with BC4J 3.2.1. All my Jsps pages are unable to load the new application. Properties file, it is working with the old properties file.
    At this time I copied new BC4J 3.2.2 libraries to IAS, now the new properties file was loaded and making the connection pool.
    If I do the load test of 10 requests with concurrency 2 it was failing the requests. I increased the pool size to 20, but no use. (See the errors below)
    I have no problems with concurrency 1 and any number of requests. Only the problem is coming when we increased the concurrency more than 1.
    2) I am wondering about the scalability issue of using the BC4J in JSP's and servlets with Apache Jserv (IAS 1.0.2)
    3) Is it IAS 1.0.2 bug free?
    4) I am wondering how this pooling stuff will be starting working in normal local deployment mode.
    5) Why the IAS was not given the clean instructions to Local Deployment of BC4J applications.
    6) My application is working only if there is no concurrency
    Any feed back from Dev Team.
    7) My application is using about 30% of CPU time when doing the load test for 50 requests ay concurrency of 1.
    Is there any way tune the JAVA stuff.
    Thanks in advance
    Please see the errors:
    [01/03/2001 20:15:04:229 EST] java.lang.NullPointerException
    java.lang.RuntimeException: java.lang.NullPointerException
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(RuntimeException.java:47)
    at oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(JSPApplicationRegistry.java:212)
    at oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(JSPApplicationRegistry.java:104)
    at jspstock.stock__today._jspService(Compiled Code)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
    at oracle.jsp.JspServlet.internalService(Compiled Code)
    at oracle.jsp.JspServlet.service(JspServlet.java)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
    at org.apache.jserv.JServConnection.run(JServConnection.java:188)
    at java.lang.Thread.run(Thread.java:479)
    [09/03/2001 14:10:48:320 EST] JBO-25302: Component object StockTodayView has no parent
    oracle.jbo.InvalidOwnerException: JBO-25302: Component object StockTodayView has no parent
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(Compiled Code)
    at oracle.jbo.JboException.<init>(Compiled Code)
    at oracle.jbo.InvalidOwnerException.<init>(InvalidOwnerException.java:33)
    at oracle.jbo.server.ComponentObjectImpl.getRootApplicationModule(Compiled Code)
    at oracle.jbo.server.ViewObjectImpl.getDBTransaction(Compiled Code)
    at oracle.jbo.server.ViewObjectImpl.addRowSet(Compiled Code)
    at oracle.jbo.server.ViewObjectImpl.createViewRowSet(Compiled Code)
    at oracle.jbo.server.ViewObjectImpl.getDefaultRowSet(Compiled Code)
    at oracle.jbo.server.ViewObjectImpl.isForwardOnly(Compiled Code)
    at oracle.jbo.server.xml.XmlRowSetRenderer.printXmlForRowSet(Compiled Code)
    at oracle.jbo.server.xml.XmlRowSetRenderer.print(Compiled Code)
    at oracle.jbo.html.databeans.XmlData.print(Compiled Code)
    at oracle.jbo.html.databeans.XmlData.render(Compiled Code)
    at jspstock.stock__today._jspService(Compiled Code )
    at oracle.jsp.runtime.HttpJsp.service(Compiled Code)
    at oracle.jsp.app.JspApplication.dispatchRequest(Compiled Code)
    at oracle.jsp.JspServlet.doDispatch(Compiled Code)
    at oracle.jsp.JspServlet.internalService(Compiled Code)
    at oracle.jsp.JspServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at org.apache.jserv.JServConnection.processRequest(Compiled Code)
    at org.apache.jserv.JServConnection.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    oracle.jbo.AttributeLoadException: JBO-27022: Failed to load value at index 4 with java object of type java.lang.String due to java.
    sql.SQLException.
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(Compiled Code)
    at oracle.jbo.JboException.<init>(Compiled Code)
    at oracle.jbo.AttributeLoadException.<init>(AttributeLoadException.java:40)
    at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(Compiled Code)
    at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(Compiled Code)
    at oracle.jbo.server.ViewRowImpl.populate(Compiled Code)
    at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(Compiled Code)
    at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(Compiled Code)
    at oracle.jbo.server.QueryCollection.populateRow(Compiled Code)
    at oracle.jbo.server.QueryCollection.fetch(Compiled Code)
    at oracle.jbo.server.QueryCollection.get(Compiled Code)
    at oracle.jbo.server.ViewRowSetImpl.getRow(Compiled Code)
    at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(Compiled Code)
    at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(Compiled Code)
    at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(Compiled Code)
    at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(Compiled Code)
    at oracle.jbo.server.ViewRowSetImpl.execute(Compiled Code)
    at oracle.jbo.server.ViewRowSetImpl.executeQuery(Compiled Code)
    at oracle.jbo.server.xml.XmlRowSetRenderer.printXmlForRowSet(Compiled Code)
    at oracle.jbo.server.xml.XmlRowSetRenderer.print(Compiled Code)
    at oracle.jbo.html.databeans.XmlData.print(Compiled Code)
    at oracle.jbo.html.databeans.XmlData.render(Compiled Code)
    at jspstock.stock__today._jspService(Compiled Code)
    at oracle.jsp.runtime.HttpJsp.service(Compiled Code)
    at oracle.jsp.app.JspApplication.dispatchRequest(Compiled Code)
    at oracle.jsp.JspServlet.doDispatch(Compiled Code)
    at oracle.jsp.JspServlet.internalService(Compiled Code)
    at oracle.jsp.JspServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at org.apache.jserv.JServConnection.processRequest(Compiled Code)
    at org.apache.jserv.JServConnection.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    ## Detail 0 ##
    java.sql.SQLException: Exhausted Resultset
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(SQLException.java:43)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:273)
    at oracle.jdbc.driver.OracleStatement.prepare_for_new_get(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.getObjectValue(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.getObjectValue(Compiled Code)
    at oracle.jdbc.driver.OracleResultSetImpl.getObject(Compiled Code)
    at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(Compiled Code)
    at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(Compiled Code)
    at oracle.jbo.server.ViewRowImpl.populate(Compiled Code)
    at oracle.jbo.server.ViewDefImpl.createInstan ceFromResultSet(Compiled Code)
    at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(Compiled Code)
    at oracle.jbo.server.QueryCollection.populateRow(Compiled Code)
    at oracle.jbo.server.QueryCollection.fetch(Compiled Code)
    at oracle.jbo.server.QueryCollection.get(Compiled Code)
    at oracle.jbo.server.ViewRowSetImpl.getRow(Compiled Code)
    at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(Compiled Code)
    at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(Compiled Code)
    at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(Compiled Code)
    at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(Compiled Code)
    at oracle.jbo.server.ViewRowSetImpl.execute(Compiled Code)
    at oracle.jbo.server.ViewRowSetImpl.executeQuery(Compiled Code)
    at oracle.jbo.server.xml.XmlRowSetRenderer.printXmlForRowSet(Compiled Code)
    at oracle.jbo.server.xml.XmlRowSetRenderer.print(Compiled Code)
    at oracle.jbo.html.databeans.XmlData.print(Compiled Code)
    at oracle.jbo.html.databeans.XmlData.render(Compiled Code)
    at jspstock.stock__today._jspService(Compiled Code)
    at oracle.jsp.runtime.HttpJsp.service(Compiled Code)
    at oracle.jsp.app.JspApplication.dispatchRequest(Compiled Code)
    at oracle.jsp.JspServlet.doDispatch(Compiled Code)
    at oracle.jsp.JspServlet.internalService(Compiled Code)
    at oracle.jsp.JspServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at org.apache.jserv.JServConnection.processRequest(Compiled Code)
    at org.apache.jserv.JServConnection.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    oracle.jbo.common.ampool.ApplicationPoolException: JBO-30004: An application module that was not checked out was checked into the po
    ol, com_globe_invester_stock_InvesterStockAppModule
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(Compiled Code)
    at oracle.jbo.JboException.<init>(Compiled Code)
    at oracle.jbo.common.ampool.ApplicationPoolException.<init>(Compiled Code)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.checkin(Compiled Code)
    at jspstock.stock__today._jspService(Compiled Code)
    at oracle.jsp.runtime.HttpJsp.service(Compiled Code)
    at oracle.jsp.app.JspApplication.dispatchRequest(Compiled Code)
    at oracle.jsp.JspServlet.doDispatch(Compiled Code)
    at oracle.jsp.JspServlet.internalService(Compiled Code)
    at oracle.jsp.JspServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at org.apache.jserv.JServConnection.processRequest(Compiled Code)
    at org.apache.jserv.JServConnection.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    BC4J HTTP Container was timed out
    The binding listener for InvesterStockAppModule was timed out

    See if the following messages help:
    http://technet.oracle.com:89/ubb/Forum2/HTML/006553.html
    http://technet.oracle.com:89/ubb/Forum2/HTML/006831.html
    http://technet.oracle.com:89/ubb/Forum2/HTML/006864.html

  • ANN: Soliciting Input for Step-by-step BC4J+DAC/JSP Examples

    All,
    We are looking for user input to guide our current work on writing additional examples and "how to" tutorials for the next major JDeveloper release.
    Feedback here in the forum from other discussion threads provides ample motivation that these additional "how to" topics are needed, so here we're looking to get down to the specifics.
    The four key areas that appear to need more meaty examples are:[list][*]Exploiting Business Components to Model Applications[*]Building Real-world DataBound Java Swing GUI's with the additional DAC framework, on top of BC4J business components.[*]Building Real-world, DataBound JSP GUI's with the additional JSP DataTags tag library, on top of BC4J business components, and possibly[*]Working with inbound and outbound XML messages on top of BC4J business components.[list]
    These should encompass the basics of multi-form/page applications as well as user authentication as well.
    If you have opinions on the specifics of any of these topics that you would like covered, have additional "big-ticket" topics that are missing from this list, or have common use cases that our current documentation has not helped you with, please chime in on this thread.
    Steve Muench
    Lead Product Manager, BC4J

    The most important thing is that the examples should demonstrate how to customize the wizard-generated code. I agree that the 3.2 documentation is a bit better in this regard. Nevertheless what I would have liked when I started on this rocky road is:
    (1) Working code demonstrating use of all widgets e.g. LOV, dropdown lists, checkboxes, etc.
    (2) Examples that step through all the tabs on the EditObject wizards e.g. what happens if I set the ViewObject property DESCRIPTION?
    (3) On a related tip, the underlying base tables should have real world column names e.g. EMP_NO rather than EMPNO (I realise that altering the SCOTT schema is sacrilegeous and I'm not actually suggesting it, but you are introducing new tables). This particular issue would have revealed the bug in the _LABEL property early on.
    (4) Instructions on doing programmatic defaulting and validation would be useful.
    (5) I second kirkk's advice about CRUD - the Data Tag example was particularly bad in this respect.
    The key problem with the documentation is context. There are lots of code snippets in the syntax pages but other there's no explanation of why we should use it.

  • BC4J and JSP

    I have a question about jsp using bc4j. I need to create some view object row methods and let jsp to use it. Do I have to use struts? We could not use view object row methods from jbo, right? We have to create some javabean classes, right?
    Thanks!!

    You can call your methods from a JSP or a Struts action. I recommend using Struts. If need to use a JSP, you can gain access to your view object via the variable introduced by the data source tag. Here is some pseudo-code:
    <jbo:DataSource id="ds" .../>
    <%
    MyViewObjType view = (MyViewObjType )ds.getDataSource().getRowSet();
    %>

  • Link for BC4J Struts-JSP and Tiles

    Hi,
    I have a JSP-Struts application. By the default generation, JDeveloper build a main.html Page. This page have many Frames and one Frame is "navFrame". On this frame I have a link for a JSP Page : Browse. The call is OK. No Problems.
    No I have another Page with Tiles :
    <template:insert page="IMDLayout.jsp" flush="true">
    <template:put name="title" value="Invoices Interface" />
    <template:put name="header" value="/tiles/common/header.jsp" />
    <template:put name="footer" value="/tiles/common/footer.jsp" />
    <template:put name="menu" value="/tiles/common/menu.jsp" />
    <template:put name="body" value="VInvoiceUsersView1_Browse.do" />
    </template:insert>
    The "body" Tiles call the same JSP Page as the link on the "navFrame", but now I have the following error :
    [ServletException in:VInvoiceUsersView1_Browse.do] Response has already been committed'
    Why ?
    Please help me, I need a solution. Does somebody use BC4J/Struts/Tiles ? Any Experience ? Problem ?
    Thanks
    Yves

    Repost

  • BC4J; OC4J;JSP;JD323 - deployment on Solaris 2.6

    I am trying to deploy a BC4J JSP application to OC4J so that we can take advantage of the SErvlet API 2.2 - our sessions persistent crash on JServ. The so-called guidance on OTN viz
    http://otn.oracle.com/products/jdev/howtos/bc4jdeployment.html
    isn't much use. The BC4J installer is only for Windows; none of the paths match what I have on my Solaris OC4J installation.
    One of my colleagues has got our application working on an Apache/Tomcat configuration. When the OAS desupport was announced last year we debated whether to move to Apache or iAS. We decided to stick with Oracle because it was supported.
    However, when it comes to anything internet, java, jdeveloper, on this side of the pond at least, Oracle support is as much use as a chocolate fireguard, so we are in effect unsupported anyway. We have either resolved all our problems with our own sweat or with guidance from this forum.
    My question is: is there a guide for deploying BC4J to an OC4J installation or Solaris or should we give up on iAS and migrate to Apache?
    This is getting urgent: we have systems that need to go live very soon and we don't yet have a stable web platform.
    TIA, APC

    Mike, do give more details from your install log. Looks like copying of some of the files are not happening.
    Make sure this install is happening into an oracle home by itself.
    Also make sure you have applied all of 2.6_Recommended cluster patch from SUN before installing Oracle9iAS.
    Regards
    Pavna Jain
    Oracle9iAS Product Management

  • How to use checkbox using InputSelectGroup in JSP

    Hai please help me how to get a check box in a form so that multple values are returned to multiple colum in databse using InputSelectGroup and multple values to a single column

    I'm not sure why you are getting the console message, but here is how you might use the tag. This will simply print out the list of immediate groups (not parent groups) to which user "weblogic" is a member.
    &lt;%@ taglib uri="http://www.bea.com/servers/p13n/tags/userGroupManagement" prefix="ugm" %&gt;
    &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
    &lt;ugm:getGroupNamesForUser username="weblogic" id="groupNames"/&gt;
    &lt;c:forEach items="${groupNames}" var="groupName"&gt;
    bq. &lt;c:out value="${groupName}"/&gt;
    &lt;/c:forEach&gt;

  • BC4J. JSP, session problems

    I would like to store session type information, ie client_id in a session object and be able to retrieve its value from any of my jsp pages.
    Is there a jsp tag or some other JDev component that I should be using?
    TIA

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Danny Gagliardi ([email protected]):
    I would like to store session type information, ie client_id in a session object and be able to retrieve its value from any of my jsp pages.
    Is there a jsp tag or some other JDev component that I should be using?
    TIA<HR></BLOCKQUOTE>
    You could try something like this in your jsp
    <%
    session.setAttribute("clientId", "1234");
    %>
    To get the clientId from the session try
    <%
    String ClientID = (String) session.getAttribute("clientId");
    %>
    Hope this help,
    Kh

  • Checkbox field in a jsp

    How to associate a checkbox to a group of fields...
    For example a row contains
    >a check box
    > a textfield ,an image etc
    how to associate the whole row to the checkbox on that particular row,such that when it is checked and applied for delete ,the whole row should be removed...

    use javascript for this..

  • BC4J app works on OC4J 9.0.2, not on 9.0.3

    I got this error: Error Message: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file eaa\common\bc4j.xcfg in the classpath
    When I run a default BC4J/JSP application on the OC4J 9.0.3. I did everything exact the same as with the 9.0.2:
    1. unzip
    2. java -jar oc4j.jar -install
    3. run jdev\bc4j\bin\bc4j2oc4j.bat
    4. create a default BC4J and JSP's from some tables
    5. deploy them from JDeveloper (and manualy)
    What goes wrong? (Ofcourse, the bc4j.xcfg is there)
    Eelco

    I have the same problem. Please advice if you found an answer. Thanks in advance.

  • Jsp, servlet & bean: trying to display records in a jsp

    Hello i'm trying to display records from my MYSQL database into particular fields allready designed in a jsp. Via servlets and beans i want the records in a jsp.
    I can get the resultset of the record, but can't get the resultset in de fields of the jsp.
    Here are my files:
    SERVLET
    package ...;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class Zoekklantactie extends HttpServlet {
         ZoekklantBean ZoekklantBean = new ZoekklantBean();
         ZoekklantactieBean ZoekklantactieBean = new ZoekklantactieBean();
         DbBean db = new DbBean();
         public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
              verwerk(request, response);
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
         verwerk(request, response);
    public void verwerk(HttpServletRequest request, HttpServletResponse response) throws IOException {
         response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              String hachternaam = request.getParameter("hachternaam");
              String zoekklantnieuw = "SELECT hachternaam FROM klantgegevens WHERE hachternaam = ";
              String zoekklantnieuw2 = zoekklantnieuw + " '"+hachternaam+"' ";
              ResultSet rs = null;
                   //     out.println("debug 1<br>");
         /*     try {
                   //     Statement s;
                        db.connect();
                   //     s = db.getS();
                        rs = db.execSQL("SELECT hachternaam FROM klantgegevens WHERE hachternaam = 'Opgelder'");
                   //          out.println(rs.getString(1)+"hoi");
                        while (rs.next()) {
                   //                retrieve and print the values for the current row
                   //          out.println("debug1a --> "+rs.toString()+"<br>");
                             String str = rs.getString(1);
                   //          out.println("ROW = " + str );
                        } catch (SQLException e) {
                   //                TODO Auto-generated catch block
                   //          out.println("debug2 <br>"+e.toString());
                             e.printStackTrace();
                        } catch (ClassNotFoundException e) {
                   //                TODO Auto-generated catch block
                   //          out.println("debug3 <br>");
                             e.printStackTrace();
         /* ResultSet rs = null;
         out.println("debug 1<br>");
              try {
                   //     Statement s;
                   db.connect();
                   //     s = db.getS();
                   rs = db.execSQL("select * from klantgegevens where hachternaam = 'Opgelder'");
                   //          out.println(rs.getString(1)+"hoi");
                   while (rs.next()) {
                        rs.first();
                   //           retrieve and print the values for the current row
                        out.println("debug1a<br>");
                        String str = rs.getString(1);
                        System.out.println("ROW = " + str );
                   rs = (ResultSet) db.execSQL(zoekklantnieuw2);
                   out.print(rs.getString("hwoonplaats"));
                   out.print(zoekklantnieuw2);
              } catch (SQLException e) {
                   //                TODO Auto-generated catch block
                   out.println("debug2 <br>"+e.toString());
                   e.printStackTrace();
              } catch (ClassNotFoundException e) {
                   //                TODO Auto-generated catch block
                   out.println("debug3 <br>");
                   e.printStackTrace();
              if( hachternaam == "" ){
                   request.setAttribute("jesper",ZoekklantBean);
                   //          Get dispatcher with a relative URL
                   RequestDispatcher dis = request.getRequestDispatcher("Zoekklant.jsp");
                   //           include
                   try {
                        dis.include(request, response);
                   } catch (ServletException e) {
                        e.printStackTrace();
                   } catch (IOException e) {
                        e.printStackTrace();
                   //          or forward
                   try {
                        dis.forward(request, response);
                   } catch (ServletException e) {
                        e.printStackTrace();
                   } catch (IOException e) {
                        e.printStackTrace();
              else{
                   try {
                   //     Statement s;
                        db.connect();
                   //     s = db.getS();
                        rs = db.execSQL(zoekklantnieuw2.toString());
                   //          out.println(rs.getString(1)+"hoi");
                        while (rs.next()) {
                   //           retrieve and print the values for the current row
                   //          out.println("debug1a --> "+rs.toString()+"<br>");
                             String str = rs.getString(1);
                   //          out.println("ROW = " + str );
                   //          out.print(rs);
                        } catch (SQLException e) {
                   //                TODO Auto-generated catch block
                   //          out.println("debug2 <br>"+e.toString());
                             e.printStackTrace();
                        } catch (ClassNotFoundException e) {
                   //                TODO Auto-generated catch block
                   //          out.println("debug3 <br>");
                             e.printStackTrace();
                   request.setAttribute("jesper",ZoekklantactieBean);
                   //          Get dispatcher with a relative URL
                   RequestDispatcher dis = request.getRequestDispatcher("Zoekresultaatklant.jsp");
                   //          include
                   try {
                        dis.include(request, response);
                        } catch (ServletException e) {
                        e.printStackTrace();
                        } catch (IOException e) {
                        e.printStackTrace();
                   //          or forward
                   try {
                        dis.forward(request, response);
                        } catch (ServletException e) {
                        e.printStackTrace();
                        } catch (IOException e) {
                        e.printStackTrace();
    BEAN
    package ...;
    public class ZoekklantactieBean {
         private String hachternaam;
         private String hvoorletters;
         private String hgeslachtMan;
         private String hgeslachtVrouw;
         private String hgeboortePlaats;
         private String hgeboorteDatum;
         private String hnationaliteit;
         private String hsofinummer;
         private String hadres;
         private String hwoonplaats;
         private String hpostcode;
         private String htelefoonnummerPrive;
         private String htelefoonnummerMobiel;
         private String htelefoonnummerWerk;
         private String hemail;
         private String hburgelijkeStaat;
         private String hallimentatie;
         private String hrestduurAllimentatie;
         private Boolean hbetreftOversluiting;
         private String pachternaam;
         private String pvoorletters;
         private String pgeslachtMan;
         private String pgeslachtVrouw;
         private String pgeboortePlaats;
         private String pgeboorteDatum;
         private String pnationaliteit;
         private String psofinummer;
         private String padres;
         private String pwoonplaats;
         private String ppostcode;
         private String ptelefoonnummerPrive;
         private String ptelefoonnummerMobiel;
         private String ptelefoonnummerWerk;
         private String pemail;
         private String pburgelijkeStaat;
         private String pallimentatie;
         private String prestduurAllimentatie;
         private Boolean poversluiting;
         public void setHachternaam( String name )
         hachternaam = name;
         public String getHachternaam()
         return hachternaam;
         public void setHvoorletters( String name )
         hvoorletters = name;
         public String getHvoorletters()
         return hvoorletters;
         public void setHgeslachtMan( String gender )
         hgeslachtMan = gender;
         public String getHgeslachtMan()
         return hgeslachtMan;
         public void setHgeslachtVrouw( String gender )
         hgeslachtVrouw = gender;
         public String getHgeslachtVrouw()
         return hgeslachtVrouw;
         public void setHgeboortePlaats( String name )
         hgeboortePlaats = name;
         public String getHgeboortePlaats()
         return hgeboortePlaats;
         public void setHgeboorteDatum( String date )
         hgeboorteDatum = date;
         public String getHgeboorteDatum()
         return hgeboorteDatum;
         public void setHnationaliteit( String name )
         hnationaliteit = name;
         public String getHnationaliteit()
         return hnationaliteit;
         public void setHsofinummer( String number )
         hsofinummer = number;
         public String getHsofinummer()
         return hsofinummer;
         public void setHadres( String name )
         hadres = name;
         public String getHadres()
         return hadres;
         public void setHwoonplaats( String name )
         hwoonplaats = name;
         public String getHwoonplaats()
         return hwoonplaats;
         public void setHpostcode( String name )
         hpostcode = name;
         public String getHpostcode()
         return hpostcode;
         public void setHtelefoonnummerPrive( String number )
         htelefoonnummerPrive = number;
         public String getHtelefoonnummerPrive()
         return htelefoonnummerPrive;
         public void setHtelefoonnummerMobiel( String number )
         htelefoonnummerMobiel = number;
         public String getHtelefoonnummerMobiel()
         return htelefoonnummerMobiel;
         public void setHtelefoonnummerWerk( String number )
         htelefoonnummerWerk = number;
         public String getHtelefoonnummerWerk()
         return htelefoonnummerWerk;
         public void setHemail( String adress )
         hemail = adress;
         public String getHemail()
         return hemail;
         public void setHburgelijkeStaat( String name )
         hburgelijkeStaat = name;
         public String getHburgelijkeStaat()
         return hburgelijkeStaat;
         public void setHallimentatie( String number )
         hallimentatie = number;
         public String getHallimentatie()
         return hallimentatie;
         public void setHrestduurAllimentatie( String number )
         hrestduurAllimentatie = number;
         public String getHrestduurAllimentatie()
         return hrestduurAllimentatie;
         public void setHbetreftOversluiting( Boolean choise )
         hbetreftOversluiting = choise;
         public Boolean getHbetreftOversluiting()
         return hbetreftOversluiting;
         public void setPachternaam( String name )
         pachternaam = name;
         public String getPachternaam()
         return pachternaam;
         public void setPvoorletters( String name )
         pvoorletters = name;
         public String getPvoorletters()
         return pvoorletters;
         public void setPgeslachtMan( String gender )
         pgeslachtMan = gender;
         public String getPgeslachtMan()
         return pgeslachtMan;
         public void setPgeslachtVrouw( String gender )
         pgeslachtVrouw = gender;
         public String getPgeslachtVrouw()
         return pgeslachtVrouw;
         public void setPgeboortePlaats( String name )
         pgeboortePlaats = name;
         public String getPgeboortePlaats()
         return pgeboortePlaats;
         public void setPgeboorteDatum( String date )
         pgeboorteDatum = date;
         public String getPgeboorteDatum()
         return pgeboorteDatum;
         public void setPnationaliteit( String name )
         pnationaliteit = name;
         public String getPnationaliteit()
         return pnationaliteit;
         public void setPsofinummer( String number )
         psofinummer = number;
         public String getPsofinummer()
         return psofinummer;
         public void setPadres( String name )
         padres = name;
         public String getPadres()
         return padres;
         public void setPwoonplaats( String name )
         pwoonplaats = name;
         public String getPwoonplaats()
         return pwoonplaats;
         public void setPpostcode( String name )
         ppostcode = name;
         public String getPpostcode()
         return ppostcode;
         public void setPtelefoonnummerPrive( String number )
         ptelefoonnummerPrive = number;
         public String getPtelefoonnummerPrive()
         return ptelefoonnummerPrive;
         public void setPtelefoonnummerMobiel( String number )
         ptelefoonnummerMobiel = number;
         public String getPtelefoonnummerMobiel()
         return ptelefoonnummerMobiel;
         public void setPtelefoonnummerWerk( String number )
         ptelefoonnummerWerk = number;
         public String getPtelefoonnummerWerk()
         return ptelefoonnummerWerk;
         public void setPemail( String adress )
         pemail = adress;
         public String getPemail()
         return pemail;
         public void setPburgelijkeStaat( String name )
         pburgelijkeStaat = name;
         public String getPburgelijkeStaat()
         return pburgelijkeStaat;
         public void setPallimentatie( String number )
         pallimentatie = number;
         public String getPallimentatie()
         return pallimentatie;
         public void setPrestduurAllimentatie( String number )
         prestduurAllimentatie = number;
         public String getPrestduurAllimentatie()
         return prestduurAllimentatie;
         public void setPoversluiting( Boolean choise )
         poversluiting = choise;
         public Boolean getPoversluiting()
              return poversluiting;
    JSP
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="ErrorPage.jsp" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <jsp:useBean id = "db" scope = "request" class = "jesper.DbBean" />
    <jsp:useBean id = "ZoekklantactieBean" scope = "request" class = "jesper.ZoekklantactieBean" />
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Klantinvoer</title>
    <style type="text/css">
    <!--
    .style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; }
    -->
    </style></head>
    <body>
    <form id="Zoekklantactie" name="Zoekklantactie" method="post" action="Zoekklantactie">
    <table width="71%" height="447" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="20%"><span class="style1">Zoek klant </span></td>
    <td width="20%"><select name="select">
    <option>H. Patat</option>
    <option>B. Opgelder</option>
    <option>Y. de Koning</option>
    </select> </td>
    <td width="8%"> </td>
    <td width="18%"> </td>
    <td width="20%"> </td>
    <td width="14%"> </td>
    </tr>
    <tr>
    <td><span class="style3">Hoofdaanvrager</span></td>
    <td> </td>
    <td> </td>
    <td><span class="style3">Partner</span></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Naam</span></td>
    <td><input type="text" name="hachternaam" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hachternaam" />"/></td>
    <td> </td>
    <td><span class="style1">Naam</span></td>
    <td><input type="text" name="pachternaam" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="pachternaam" />"/></td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Voorletters</span></td>
    <td><input type="text" name="hvoorletters" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hvoorletters" />"/></td>
    <td> </td>
    <td><span class="style1">Voorletters</span></td>
    <td><input type="text" name="pvoorletters" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="pvoorletters" />"/></td>
    <td> </td>
    </tr>
         <tr>
    <td><span class="style1">Geslacht</span></td>
    <td><span class="style1">
    <label>
    <input name="hgeslachtMan" type="radio" value="<jsp:getProperty name ="ZoekklantactieBean" property ="hgeslachtMan"/>Man" />
    Man
    <input name="hgeslachtMan" type="radio" value="<jsp:getProperty name ="ZoekklantactieBean" property ="hgeslachtVrouw"/>Vrouw" />
    Vrouw </label>
    </span></td>
    <td><span class="style1"></span></td>
    <td><span class="style1">Geslacht</span></td>
    <td><span class="style1">
    <label>
    <input name="pgeslachtMan" type="radio" value="<jsp:getProperty name ="ZoekklantactieBean" property ="pgeslachtMan" />Man" />
              Man
              <input name="pgeslachtMan" type="radio" value="<jsp:getProperty name ="ZoekklantactieBean" property ="pgeslachtVrouw" />Vrouw" />
              Vrouw </label></span></td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Geboortedatum</span></td>
    <td><input type="text" name="hgeboorteDatum" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hgeboorteDatum" />"/></td>
    <td> </td>
    <td><span class="style1">Geboortedatum</span></td>
    <td><input type="text" name="pgeboorteDatum" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="pgeboorteDatum" />"/></td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Geboorteplaats</span></td>
    <td><input type="text" name="hgeboortePlaats" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hgeboortePlaats" />"/></td>
    <td> </td>
    <td><span class="style1">Geboorteplaats
    </span></td>
    <td><span class="style1">
    <input type="text" name="pgeboortePlaats" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="pgeboortePlaats" />"/>
    </span></td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Nationaliteit</span></td>
    <td><input type="text" name="hnationaliteit" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hnationaliteit" />"/></td>
    <td> </td>
    <td><span class="style1">Nationaliteit</span></td>
    <td><input type="text" name="pnationaliteit" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="pnationaliteit" />"/></td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Sofinummer</span></td>
    <td><input type="text" name="hsofinummer" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hsofinummer" />"/></td>
    <td> </td>
    <td><span class="style1">Sofinummer</span></td>
    <td><input type="text" name="psofinummer" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="psofinummer" />"/></td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Postcode</span></td>
    <td><input type="text" name="hpostcode" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hpostcode" />"/></td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Adres</span></td>
    <td><input type="text" name="hadres" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hadres" />"/></td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Woonplaats</span></td>
    <td><input type="text" name="hwoonplaats" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hwoonplaats" />"/></td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Telefoon prive</span></td>
    <td><span class="style1">
    <input type="text" name="htelefoonnummerPrive" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="htelefoonnummerPrive" />"/></span></td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Telefoon mobiel </span></td>
    <td><span class="style1">
    <input type="text" name="htelefoonnummerMobiel" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="htelefoonnummerMobiel" />"/></span></td>
    <td> </td>
    <td><span class="style1">Telefoon mobiel</span></td>
    <td><span class="style1">
    <input type="text" name="ptelefoonnummerMobiel" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="ptelefoonnummerMobiel" />"/></span></td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Telefoon werk </span></td>
    <td><span class="style1">
    <input type="text" name="htelefoonnummerWerk" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="htelefoonnummerWerk" />"/></span></td>
    <td> </td>
    <td><span class="style1">Telefoon werk</span></td>
    <td><span class="style1">
    <input type="text" name="ptelefoonnummerWerk" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="ptelefoonnummerWerk" />"/></span></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">E-mail</span></td>
    <td><input type="text" name="hemail" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hemail" />"/></td>
    <td> </td>
    <td><span class="style1">E-mail</span></td>
    <td><input type="text" name="pemail" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="pemail" />"/></td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Burgelijke staat </span></td>
    <td><select name="hburgelijkeStaat" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hburgelijkeStaat" />">
    <option selected="selected">gehuwd</option>
    <option>ongehuwd</option>
    <option>gescheiden</option>
    </select> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Allimentatie</span></td>
    <td><input type="text" name="hallimentatie" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hallimentatie" />"/></td>
    <td> </td>
    <td><span class="style1">Allimentatie</span></td>
    <td><input type="text" name="pallimentatie" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="pallimentatie" />"/></td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Restduur allimentatie </span></td>
    <td><input type="text" name="hrestduurAllimentatie" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hrestduurAllimentatie" />"/></td>
    <td> </td>
    <td><span class="style1">Restduur allimentatie </span></td>
    <td><input type="text" name="prestduurAllimentatie" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="prestduurAllimentatie" />"/></td>
    <td> </td>
    </tr>
    <tr>
    <td><span class="style1">Betreft een oversluiting? </span></td>
    <td><input type="checkbox" name="hbetreftOversluiting" value ="<jsp:getProperty name ="ZoekklantactieBean" property ="hbetreftOversluiting" />Betreft oversluiting" /></td>
    <td> </td>
    </tr>
    </table>
    </form>
    <form name="Terug" method="post" action="Menu.jsp"><input name="Terug" type="submit" value="Terug naar hoofdmenu" /></form>
    </body>
    </html>
    Package everywhere the same.
    Have commented some of the code, because i was trying to debug, but just couldn't figure it out.
    Tnx in advance.
    gr. bopgelder

    put your bean in a different package from servlet and include this
    package in your servlet like
    import yourbeanpackage.yourbean
    and then create object of bean and use it

  • Using BC4J Session Bean in OC4J 10.1.3 with dynamic ports

    Hi Folks!
    I've benn having trouble connecting my BC4J Session Bean to an Oracle 10gAS R3 server instance tha uses dynamic ports.
    After migrating a BC4J/Struts/JSP application from 9iAS to 10gAS R3, I'm trying to connect from a client application to my instace in the server. The problem is that the instance uses dynamic ports, and whenever I deploy my application to the server, I've got to update the port number in the bc4j.xcfg file in the client application, wich has became impossible to maintain.
    When I connect to an EJB in the same server, I use the instance name instead of the port number. However, when I do the same with BC4J, I get the following exception:
    javax.naming.NamingException [Root exception is java.lang.NumberFormatException: For input string: "OC4J_dvt20"]
         at oracle.jbo.client.remote.ejb.ias.AmHomeImpl.remoteLookup(AmHomeImpl.java:131)
         at oracle.jbo.client.remote.ejb.ias.AmHomeImpl.getRemoteApplicationModuleHome(AmHomeImpl.java:42)
         at oracle.jbo.client.remote.ejb.AbstractApplicationModuleHomeImpl.lookupUsingPlatformContext(AbstractApplicationModuleHomeImpl.java:82)
         at oracle.jbo.client.ejb.ApplicationModuleHomeImpl.<init>(ApplicationModuleHomeImpl.java:52)
         at oracle.jbo.client.remote.ejb.AbstractApplicationModuleHomeImpl.<init>(AbstractApplicationModuleHomeImpl.java:35)
         at oracle.jbo.client.remote.ejb.ias.AmHomeImpl.<init>(AmHomeImpl.java:35)
         at oracle.jbo.client.remote.ejb.ias.InitialContextImpl.createJboHome(InitialContextImpl.java:28)
         at oracle.jbo.common.JboInitialContext.lookup(JboInitialContext.java:77)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:136)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2468)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
         at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1504)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1476)
         at pkg.TesteEjbMCT.findTLS(TesteEjbMCT.java:98)
         at pkg.TesteEjbMCT.main(TesteEjbMCT.java:51)
    My question is: is there a way to configure my bc4j.xcfg, or another way to connect, in order to skip the use of the port number? Or a way to get the port number from the server before I connect?
    Thanks in advance!!!

    I've just found the solution from Steve Muench weblog, always useful by the way!
    You can find the solution at this link http://radio.weblogs.com/0118231/stories/2004/05/07/handcodingDynamicDiscoveryOfEjbdeployedAppmodule.html
    In summary, we need to use the class com.evermind.server.rmi.RMIInitialContextFactory, which supports dynamic lookup, and implement the lookup ourselves.
    The code I've written to lookup the service is listed below:
    public static ApplicationModule getAppModuleManutencao() {
    try {
    Context ctx = getContext();
    ManutencaoFacadeHome home = (ManutencaoFacadeHome) ctx.lookup(EJB_MANUTENCAO_BEAN_NAME);
    ApplicationModule am = ApplicationModuleProxy.create(home, null);
    return am;
    } catch (NamingException nex) {     
    nex.printStackTrace();
    return null;
    private static InitialContext getContext() {   
    try {     
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    env.put(Context.PROVIDER_URL, "opmn:ormi://dsv008:OC4J_dvt20/mct");
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    return new InitialContext(env);
    }catch (NamingException e) {     
    e.printStackTrace();
    return null;
    I hope this helps someone!!!
    Cheers!

  • How do I import Jar files in JSP? (novice)

    Hello,
    I have developed BC4J UIX JSP in JDev9i. Every JSP there is a URI that points to an Oracle website:
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>.
    This is causing errors for those that are trying to deploy on HP UX. They have asked me to import some .jar files(i.e. uixtags.jar, DataTags.jar, etc) into the pages and omit the above URL. Is this possible. If so can anyone help with how to do this. If it is not, is there a way to point to this website without doing so on the JSP page?
    Thank you in advance
    Rob

    Put the jar files in WEB-INF\lib directory.
    Now you can import the classes in the jar files in your JSP.

  • Adding an extra Field in JSP

    The problem is like this.
    I have created BC4J and JSPs which uses this BC4J. Now in the JSP i want to display a Non-Database Field (which is not in the table or field whose value has to be taken from another table). For eg: I have a ItemMaster table(Master) and AlternatItem Table(Detail). The ItemMaster Table consist of ItemCode,ItemName. AlternateItem has foreign key -ItemCode. Now in AlternateItem table i have altItemcode field which is to be displayed in the JSP(Master-detail).Along with this i want to display Item Name. This item name will come from the master table(item Master). So i have to have a non-database field called item name which will take the respective item name from the
    Master table.
    Now for this what can i do? Is it possible to create a new dummy field in BC4J component or view and somehow relate that to a query which will pick up the name from ItemMaster for the altitemcode typed(like in forms we may write :select ItemName from ItemMaster where itemCode = :altitemcode something like that).
    null

    Arun,
    Is your JSP a master-detail form (i.e. a master-record on top with multiple detail records in a grid below), or does your JSP just contain the detail records and you want to use itemname instead of itemcode?
    Depending on the answer, you could do this in a couple of different ways:
    1. In the detail JSP, use an LOV for the itemcode field that shows the itemname, but returns the itemcode value. In the JSP Insert and Edit pages, use the following code before the render() method for the EditCurrentRecord bean:
    RowEditor.useComboBox("Itemname","select itemcode,itemname from itemmaster","ITEMNAME","ITEMCODE");
    2. Another way, if you just have a JSP for the detail, is to have a View Object that includes both the master and detail entities with a join in their where clause. Note that when you do this, one of the tables will be listed as a 'reference only' table. Make sure you set the ItemMaster table as the reference one since you just want to use that for the name column.
    Option #1 is probably a better one if you want to allow updates/inserts since it allows users to choose from a set list of Item Names in a drop-down list format.
    Laura
    null

Maybe you are looking for

  • Purchase Order O/P Proposal

    Hi I need to propose o/p for Doc Type/Pur Org/Pur Grp/Vendor/Material Combination... Since Material is in Line Item level the value is not getting in KOMPBEA-MATNR and in the determination analysis it says ACCESS NOT MADE(Initialized Field)... How ca

  • Defining the navigation frame: Cannot find the menu path in Customizing

    DEFINING THE NAVIGATION FRAME   I do not find the path in this CRM 7.0 to change the navigation frame.     The navigation frame for the header area is customized in the following path (in CRM 2007, I think) SPRO -> IMG -> Customer Relationship Manage

  • HT4623 my iPhone 5 says no service

    why is this happening currently i am in saudia using zain network

  • Degree Audit Callup Point and Structure View of RC's (PIQRULEWB_AC)

    Hello, I have linked a rule container to an academic object (type SC, in this case), via callup point 60 (degree audit). When I am in the structure view looking at this, I notice that the popup text over the callup points icon says "Non-Academic Call

  • How do I compile a package?

    JAVA QUESTION: When I compile a package do I execute this with javac (the name of the package).java or what?