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();
%>

Similar Messages

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

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

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

  • Edit multiple records with BC4J and Struts-JSP

    Hi everybody,
    I'm building BC4J components using entities and views and JSP business components. How can I edit and update multiple records at a time with Struts-Jsp ? Have someone already an example (with JSP and ActionForm code) ?
    thank you

    Hi,
    Nobody have an example ? Is it so difficult ?
    Thanks

  • 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

  • Ideas pls for a small application on java and jsp?

    hi ,
    I would like to create an application which for resume. I would like to codify the java code . The java code should be able to autogenerate jsp file's since the output of the resume would be on an jsp page. To add it simply a wizard for dynamic resume creation using java swings and jsp. Code for jsp should be autogenerated please note it.
    Ideas please!
    Thanks in advance

    I'd like to add more information to Patreck's suggestion.
    JSP pages are wonderful if you need the web server to perform some actions before sending you the final web page.
    Here, you don't need the web server to do anything because your Swing application can do it for you. As Patreck implies, Swing can make a connection to the database, retrieve any information you want, perform whatever logic you need, and write the output to an HTML file.
    To give you an example, you can use Internet Explorer to view a basic web page on your hard disk. You can also use Microsoft Word to view the same basic web page. They both do the same task and there is no need to force IE to use its Word plug-in in order to view the web page.
    JSPs are not necessary because Swing will do all of the work for you. You only need JSPs if you want people to use your program through a web browser because they can't do Swing inside a web browser. You should only use one or the other, not both. Understand now?
    If you really really must generate JSP code from a Swing application, then just write out the JSP stuff in the file. For example...
    public void createWebPage( Printwriter pw, String myName ) {
       pw.println( "<% String myJSPName = \"" + myName + "\" %>" );
       pw.println( "<HTML>");
       pw.println( "<HEAD>");
       pw.println( "<TITLE>My Resume</TITLE>" );
       pw.println( "</HEAD>");
       pw.println( "<BODY>" );
       pw.println( "<H1>My name is " + myName + " and my JSP name is <%= myJSPName %></H1>" );
       pw.println( "</BODY>" );
       pw.println( "</HTML>" );
    }As you can see, it's pointless to embed JSP when you can do all the programming within Swing first and just write out the correct response.

  • [URGENT] Performance problem with BC4J and partioned data

    Hi all,
    I have a big performance probelm with BC4J and partitioned data. As as partitioned table shouldn't have a primary key like a sequence (or something else) my partitioned table doesn't have any primary key.
    When I debug my BC4J application I can see a message showing me "ignoring row with no primary key" from EntityCache. It takes a long time to retrieve my data even if I use the partition keys. A quick & dirty forms application was multiple times faster!
    Is this a bug in BC4J, or is BC4J not suitable for partitioned data? Can anyone give me a hint what to do, do make the BC4J application fast even with partitioned data? In a non-partitioned environment the application works quite well. So it seams that it must be an "error" somewhere in this part.
    Thanks,
    Axel

    Here's a SQL statement that creates the table.
    CREATE TABLE SEARCH
    (SEAR_PARTKEY_DAY              NUMBER(4)        NOT NULL
    ,SEAR_PARTKEY_EMP            VARCHAR2(2)      NOT NULL
    ,SEAR_ID                     NUMBER(20)       NOT NULL
    ,SEAR_ENTRY_DATE             TIMESTAMP        NOT NULL
    ,SEAR_LAST_MODIFIED            TIMESTAMP             NOT NULL
    ,SEAR_STATUS                 VARCHAR2(100)    DEFAULT '0'
    ,SEAR_ITC_DATE               TIMESTAMP        NOT NULL
    ,SEAR_MESSAGE_CLASS          VARCHAR2(15)     NOT NULL
    ,SEAR_CHIPHERING_TYPE        VARCHAR2(256)   
    ,SEAR_GMAT                   VARCHAR2(1)      DEFAULT 'U'
    ,SEAR_NATIONALITY            VARCHAR2(3)      DEFAULT 'XXX'
    ,SEAR_MESSAGE_ID             VARCHAR2(32)     NOT NULL
    ,SEAR_COMMENT                VARCHAR2(256)    NOT NULL
    ,SEAR_NUMBER_OF              NUMBER(3)        NOT NULL
    ,SEAR_INTERCEPTION_SYSTEM    VARCHAR2(40)    
    ,SEAR_COMM_PRIOD_H           NUMBER(5)        DEFAULT -1
    ,SEAR_PRIOD_R                  NUMBER(5)        DEFAULT -1
    ,SEAR_INMARSAT_CES           VARCHAR2(40)    
    ,SEAR_BEAM                   VARCHAR2(10)    
    ,SEAR_DIALED_NUMBER          VARCHAR2(70)    
    ,SEAR_TRANSMIT_NUMBER        VARCHAR2(70)    
    ,SEAR_CALLED_NUMBER          VARCHAR2(40)    
    ,SEAR_CALLER_NUMBER          VARCHAR2(40)    
    ,SEAR_MATERIAL_TYPE          VARCHAR2(3)      NOT NULL
    ,SEAR_SOURCE                 VARCHAR2(10)    
    ,SEAR_MAPPING                VARCHAR2(100)    DEFAULT '__REST'
    ,SEAR_DETAIL_MAPPING         VARCHAR2(100)
    ,SEAR_PRIORITY               NUMBER(3)        DEFAULT 255
    ,SEAR_LANGUAGE               VARCHAR2(5)      DEFAULT 'XXX'
    ,SEAR_TRANSMISSION_TYPE      VARCHAR2(40)    
    ,SEAR_INMARSAT_STD           VARCHAR2(1)     
    ,SEAR_FILE_NAME              VARCHAR2(100)    NOT NULL
    PARTITION BY RANGE (SEAR_PARTKEY_DAY, SEAR_PARTKEY_EMP)
      PARTITION SEARCH_MAX VALUES LESS THAN (MAXVALUE, MAXVALUE) MIRA4_SEARCH_EVEN
    );of course SEAR_ID is filled by a sequence but the field is not the primary key as it would decrease the performance of partitioned data.
    We moved to native JDBC with our application and the performance is like we never expected to be!

  • Hi frnds i want to help in servlet,java bean and JSP

    hi friends i'm right now in M.SC(IT) and i want to do project in SERVLET,,JAVA BEANS and JSP ,
    so pls give me a title about that
    NOTE: I develop a project in group(2 persons there)
    my email id is : [email protected] , [email protected] , [email protected]

    You cannot pair your iPod to a cell phone, so forget about it.
    The only way you can get free WiFi is to hang out at a Denny's, a Starbucks, or a truck stop, and I don't think your parents would approve....

  • Cannot checkin/checkout html, js, txt, and jsp files in MS Sharepoint Workspace 2010

    I am having issues checkin/checkout html, js and jsp files in Microsoft Sharepoint Workspace 2010. I can access (checkin/checkout) any files in the actual Sharepoint site, but when I am synchronized to the site in Sharepoint Workspace 2010 I cannot access
    html, js, and jsp files. When I try to checkout a html file, a message pops up saying:
    "Can not perform this operation. This document has been checked out or may no longer exist."
    Could this be a synchronization issue, or was Sharepoint Workspace 2010 not design to work with html, js, txt, and jsp files?

    Hi Armando,
    I'm afraid that you posted your question on the wrong forum. This forum is intended for Project Server questions. Please go to this forum in order to have answers from experts: 
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint&filter=alltypes&sort=lastpostdesc
    Cheers.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Creating FOrums with Servlet and JSP

    Hi everyone,
    Is there a good resource that explains how to build a forum using servlets and JSP technology?
    Regards,
    Basil Mahdi

    please let me know here if you find any useful resources...I am in the process of writing my own searchable threaded forum for my company with JSP's/servlets. It's a very slow process at the moment though...if I ever finish it, I'll gladly share it.

  • How to master good design with EJB and JSP?

    I use JSP to calling EJB. But the .jsp file is complex and it's difficult to maintain...I just want to work higher efficent with EJB,JSP and JavaBean. I want to know is there a good design with EJB and JSP? and is there any good material about MVC for EJB,JSP and JavaBean?

    You should read the J2EE blueprint available on this website. Better download the PDF, and print it for yourself so you can read it anytime.

  • WL vs. WL-express and JSP vs. javascript/SQL

    folks-
    i am trying to convince a certain party to
    disband a web-based job tracking system being
    written in ASP, javascript, html, css and SQL.
    it will be hosted on MS webserver running NT.
    i am trying to convince them to use JSP and
    WL express. i have done two years of EJB
    component work on weblogic, however, i have not
    done work with JSP or thin-clients. i was mostly
    business-logic.
    anyway i have some questions and need some
    direction. i already know JSP is better than
    ASP/javascript etc. because:
    * ASP is proprietary. ditto for VBscript
    * with an IDE creating JSP is easy and JSP
    automatically creates servlets which is way
    faster than by hand
    * JSP is JAVA based and hence benefits from
    all the portability pluses of JAVA
    but here are the more difficult questions:
    * why is WL express better than an MS
    web server? (not including WL market share
    and size. after all MS can claim that)
    * since WL express does not have an EJB
    container, how do you access the database?
    via JDBC? does one just have JDBC code
    floating around?
    * since there is no EJB container how does
    one separate presentation from logic from
    data access? this is a major downside of
    javascript, html, css and SQL etc.
    * if a web app grows beyond JSP with WL express
    into the need for an EJB container, i would
    think that most of the app needs to re-written
    as business-logic must be refactored into EJBs
    and all JDBC code will be replaced by container
    managed beans. this sounds a like a lot of
    rework.
    * isn't JSP slower than javascript as the
    servlet and hmtl code is bounced back and
    force across the network?
    with respect to architecture, scalability,
    and robustness what are the downsides to an
    MS webserver and non-JSP coding?

    * since WL express does not have an EJB
    container, how do you access the database?
    via JDBC? does one just have JDBC code
    floating around?
    Use JDO or an OR-mapper or embed JDBC into your own data access classes.
    * since there is no EJB container how does
    one separate presentation from logic from
    data access? this is a major downside of
    javascript, html, css and SQL etc.
    Presentation=JSP
    Logic=Servlet
    Data access=JDO or similar
    * if a web app grows beyond JSP with WL express
    into the need for an EJB container, i would
    think that most of the app needs to re-written
    as business-logic must be refactored into EJBs
    and all JDBC code will be replaced by container
    managed beans. this sounds a like a lot of
    rework.
    You should be able to tell up front if it a tx-intensive app that requires
    WLS.
    * isn't JSP slower than javascript as the
    servlet and hmtl code is bounced back and
    force across the network?
    They aren't exclusive. For dynamic pages, use Javascript on the front end,
    JSP on the back.
    * with respect to architecture, scalability,
    and robustness what are the downsides to an
    MS webserver and non-JSP coding?
    In the real world, and for most apps, while Java has the architectural edge,
    they both have similar scalability and similar robustness. MS gives you no
    choice though, and you rewrite every time they see a new buzzword. You can't
    leave MS-land without abandoning almost everything. You can leave WLS in a
    week if you have to.
    It's an investment. Invest wisely.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "shane miller" <[email protected]> wrote in message
    news:[email protected]...
    folks-
    i am trying to convince a certain party to
    disband a web-based job tracking system being
    written in ASP, javascript, html, css and SQL.
    it will be hosted on MS webserver running NT.
    i am trying to convince them to use JSP and
    WL express. i have done two years of EJB
    component work on weblogic, however, i have not
    done work with JSP or thin-clients. i was mostly
    business-logic.
    anyway i have some questions and need some
    direction. i already know JSP is better than
    ASP/javascript etc. because:
    * ASP is proprietary. ditto for VBscript
    * with an IDE creating JSP is easy and JSP
    automatically creates servlets which is way
    faster than by hand
    * JSP is JAVA based and hence benefits from
    all the portability pluses of JAVA
    but here are the more difficult questions:
    * why is WL express better than an MS
    web server? (not including WL market share
    and size. after all MS can claim that)
    * since WL express does not have an EJB
    container, how do you access the database?
    via JDBC? does one just have JDBC code
    floating around?
    * since there is no EJB container how does
    one separate presentation from logic from
    data access? this is a major downside of
    javascript, html, css and SQL etc.
    * if a web app grows beyond JSP with WL express
    into the need for an EJB container, i would
    think that most of the app needs to re-written
    as business-logic must be refactored into EJBs
    and all JDBC code will be replaced by container
    managed beans. this sounds a like a lot of
    rework.
    * isn't JSP slower than javascript as the
    servlet and hmtl code is bounced back and
    force across the network?
    with respect to architecture, scalability,
    and robustness what are the downsides to an
    MS webserver and non-JSP coding?

  • Hot swap and JSP debugging for Weblogic in exploded format?

    Hi,
    I'm trying to use JDeveloper for JSF development to be deployed to a weblogic server.
    I must say JDeveloper is a great tool for JSF development as none of the free IDE in the market can do what JDeveloper does.
    However, I have a question on hot swap and JSP debugging.
    I have managed to setup JDeveloper to debug my JSF application deploy to my Weblogic server's applications folder in exploded format.
    I can step through the java code.
    However, I didn't manage to do a hot swap and the break point set in the JSF-JSP does not seems to take effect.
    I would appreciate any advice on the problem.
    Thanks.
    Han Ming

    How did you setup the server to handle exploded format? Appreciate the help. Sorry can't help with your question though.
    Thnx.
    Soni

  • Servlet and JSP in OAS

    I'm developing web application with OAS
    4.0.8.1 and JDeveloper 3.0 and I want to call
    JSP from servlet using "RequestDispatcher".
    I downloaded JSP for OAS from www.olab.com.
    In the Release note, there is a description
    about RequestDispatcher, but I cannot
    understand about details.
    In what configuration can I use servlet and
    JSP together with RequestDispatcher. Anyone
    scceeded about that?
    null

    wan (guest) wrote:
    : Hi everyone,
    : I am using OAS 4.0.8 on Solaris 2.6. After viewing servlet
    : and JSP samples, I am kind of confuse whether OAS supports the
    : following options
    : 1. JSP
    : 2. servlet chaining
    : 3. running JDeveloper DB Servlet wizard
    : (oracle.jdeveloper.servlet.*) and Java Business Objects
    : (oracle.jbo.rt.cs)
    : Thank you for your time.
    I found a white paper 408newfead.pdf, that says under "Future
    Directions" that it will add jsp support. I read somewhere (I
    can't remember where exactly :( ) that said 4.0.8.1 would
    support
    JSPs. I don't know if this release is out yet.
    I wish Oracle would get with the times and put out a product that
    is consistent with the technology they are touting as the
    future.
    Having us download Suns server to run servlets and JSP is
    ridiculous for the worlds second largest software company!
    null

  • Javabeans and JSP

    I am new to Beans and JSP. I would like to know how I can 'get' the resultset and output to a JSP? It would have a few records and each record will have field1,field2 and field3.
    My question again: How to continue from here in Beans? How to write the code in JSP? Can anyone guide me with some simple codes as I would not be able to understand advance codes.
    Thanks.
    public String Login(String inputDep) throws SQLException
              String returnString = null;
              String dbUserid = "sa"; // Your Database user id
              String dbPassword = "" ; // Your Database password
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   Connection con = DriverManager.getConnection("jdbc:odbc:test", dbUserid ,dbPassword);
                   Statement stmt = con.createStatement();
                   String sql= "select * from Product where dept = '"+inputDep+"'";
                   ResultSet rs = stmt.executeQuery(sql);

    You could also try to read the resultset in your bean.
    like:
    =========== Bean ===============
    public class myClass
    public AccountData Login(String name, String password)
    AccountData data = new AccountData ();
    data.setName (resultset.getString ("name"));
    //other setter methods
    return data;
    // use inner class to store values
    public class AccountData
        AccountData ()
        private String name = null;
        //further attributes
        pubilic String getName ()
            return name;
        void setName (String name)
            this.name = name;
        //further getter and setter
    }=========== JSP ===============
    <jsp:useBean id="myBean" scope="session" class="classes.BeanClass"/>
    <% MyClass.AccountData data = myBean.Login (name, password); %>
    Name : <%= data.getName () %>Note > means %>

Maybe you are looking for

  • Displaying data in a pl/sql report

    Hi, If the regional settings of the system is german(germany) and if I try to display a procedure output as a report written in pl/sql in .xls format I am getting wrong data displayed. Ex: If the duration in hours is 5.5 it displays as 05. Mai. Actua

  • ATV & D-Link DIR-655 (Not connecting in N Mode)

    Hopefully someone can explain this to me. The D-Link DIR-655 does not connect to the ATV in N-mode, only in G. I don't see anything in the ATV to force a N-mode connection. Are these 2 unit compatible in N-Mode or do I have to have the new Airport Ex

  • Capture Video from Panasonic AG-HMC40

    I am having trouble capturing video from my camera - Panasonic AG-HMC40 HD camera I keep getting a message:  Capture Device Offline. I am able to capture from iMovie and Final Cut X.... Does anyone know the correct capture settings?

  • Photoshop Black and White profile for printing

    I'm a black and white photographer, so this issue is extremely important for me to resolve. I've been looking online and I have yet to find the answer, so I hope someone can help. I need to know how to set up the black and White profiles in Photoshop

  • Permissions needed to use VCS as Phone Book Source

    Greetings, Backgound: I would like to use our parent company's VCS (ip reachable) as a phone book source in our TMS. It would appear that I first have to add the VCS to our systems list in TMS.To add it to our systems list I apparently need some cred