JSP called database Bean - works in forte ide- not outside ide

I am obtaining my Connection object from a Java bean so that I can change database connections (like development to production) by just changing the bean out. Inside forte for java 3.0 with its built in tomcat, it works fine. I have the same version of tomcat that I fire up outside of the ide. I used the ide to create a WAR file and I expand it under webapps so the external tomcat can see it. The initial jsp page works fine (so tomcat can see it fine).
Now when I click a button that performs a form method=get action=\"operation.jsp\"> ... , the operation.jsp executes the following code:
<jsp:useBean id="db" scope="request" class="dbConnectBean" />
<%
Connection adxcon = db.getDbConnection();
Statement adxstmt = adxcon.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
... %>
The dbConnectBean code looks like:
public class dbConnectBean extends Object implements java.io.Serializable {
public class dbConnectBean extends Object implements java.io.Serializable {
private PropertyChangeSupport propertySupport;
private Connection dbConnection;
public dbConnectBean() {
propertySupport = new PropertyChangeSupport ( this );
public Connection getDbConnection() {
setDbConnection();
return dbConnection;
public void setDbConnection() {
this.dbConnection = dbConnection;
try {
Class.forName("org.gjt.mm.mysql.Driver");
catch (Exception e) {
System.out.println("Can't load JDBC Driver");
return;
try {
dbConnection = DriverManager.getConnection("jdbc:mysql://localhost:3306/cs_dev?user=foo&password=bar");
catch (Exception e) {
System.out.println("Can't get connected: " + e.getMessage());
return;
return;
Outside of the ide, when I click to perform the form action above, I get:
Error: 500
Location: /AddressBook/operation.jsp
Internal Servlet Error:
javax.servlet.ServletException
     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
     at _0002foperation_0002ejspoperation_jsp_3._jspService(_0002foperation_0002ejspoperation_jsp_3.java:140)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
     at org.apache.tomcat.core.Handler.service(Handler.java:286)
     at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
     at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
     at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
     at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
     at java.lang.Thread.run(Thread.java:484)
Any ideas??

Error 500 signifies the following;
"500 (Internal Server Error)
500 (SC_INTERNAL_SERVER_ERROR) is the generic 'server is confused' status code. It often results from CGI programs or (Heaven forbid!) servlets that crash or return improperly fromatted headers."
Check your headers.
I wouls suggest that you do not Run your Servlets and JSPs through the Forte IDE. Download and install Tomcat 4 on your desktop (if you havent already) and test them there. You only need to mount the directories for the particular web app.
You can use this guide on how to install and setup your Tomcat 4 and your development environment. http://www.moreservlets.com/Using-Tomcat-4.html
Hope this helps

Similar Messages

  • Problem with file length in jsp IE it is working Firefox it is not workig

    Hi,
    I'm upload a file from the browser. i'm calculating the length i'm not getting the length of the file.
    The below shown code is working perfectly in IE and not working in Firefox.
    FileUpload.html
    <DOCTYPE>
    <HTML>
    <HEAD>
    <TITLE>Retailmint Jobs - Registration Form</TITLE>
    </HEAD>
    <BODY>
    <form>
    <table>
    <tr><td>Upload Resume :</td>
    <td> <input>
       </td>
    </tr>
    </table>
    <input>
    </p>
    <p>  </p>
    </form>
    </BODY>
    </HTML>
    FileUploadSubmit.jsp
    <page>
    <page>
    <page>
    <html>
    <head><title>Retailmint- Submission</title></head>
    <body>
    <FileInputStream>
    </body>
    </html>
    I find an error in firefox browser is not taking the fully qualified path
    i.e: C:\Documents and Settings\Administrator\Desktop\if.doc
    In firefox it is taking if.doc only.
    please tell me the solution.
    Regards
    venkat

    Sorry for that
    here is the code:
    FileUpload.html
    <HTML>
    <HEAD>
    <TITLE>Retailmint Jobs - Registration Form</TITLE>
    <script language="Javascript" src="FileRead.js">
    </script>
    </HEAD>
    <BODY>
    <form name='subregiform' method="get" action ="FileuploadSubmit.jsp" >
    <table width="566" border="0" cellspacing="0" cellpadding="0">
    <tr><td width="197"align="right">Upload Resume :</td>
    <td width="369"> <input type="file" name="file" value ="" onchange ="javascript:fopen('file');"><br>
       </td>
    </tr>     
    </table><br>
    <input type="submit" name="submit" value="Submit">
    </strong></p>
    <p>  </p>
    </form>
    </BODY>
    </HTML>
    FileUploadSubmit.jsp
    <%@ page import="java.text.*"%>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.io.*" %>
    <jsp:useBean id="DBase" class="dbconnection.DBconnection" scope="session" />
    <html>
    <head><title>Retailmint- Submission</title>
    </head>
    <body bgcolor="#e0e0e0">
    <%
    FileInputStream fis = new FileInputStream(request.getParameter("file"));
    len = (int)file.length();
                   System.out.println("length"+len);
    %>
    </body>
    </html>
    And tell me How to find the absolute path of a file in JSP or JAVA?

  • Database link works for form but not report

    I have created a database link to the scott.emp table in a remote database then created a local synonym in my Portal.
    I then created a Form and a Report referencing the local synonym. The for works and allows me to insert record but the form does not. The report compiles fine but I get a message that Portal can't find the underlying table. It seems that if the form works then the report should too. Does anyone have a recommended solution?
    Thank you.
    Sam Masias

    There is a bug filed for this issue. And it should be taken up for fixing most probably in next release.

  • JSP using a bean to do output?

    One thing I haven't seen much mention of is the possibility of using a Java Bean to
    do some output for a JSP. I'm porting a page I wrote a while back that uses a
    JHTML page to call a servlet which is just a thin wrapper around a bean which
    actually writes the HTML output (the bean is actually a network client to a server
    that generates the HTML page). The natural line of attack seems to be to have a
    JSP call the bean which will write the output, but I haven't seen mention of that
    technique anywhere and wonder why I'm so strange in thinking of this. The bean
    method to do the output currently takes a PrintWriter as a parameter to output to,
    but that can be changed to something similar if desired.
    Can anyone give me a snippet of code that would best implement taking the output
    stream for a JSP page and passing it to a bean for output?
    Thanks
    Steve

    eh? It sounds like your bean is doing all the output? If that's the case, then why do you want to use a JSP? - use a servlet as you already are.
    If you have a bean declared in the page and you just want to pass it the page's output stream to output part of the pages content, then use this:
    <jsp:useBean id='myBean' class='com.mycompany.MyBeanClass'/>
    <%
      PrintWriter beanOut = new PrintWriter(out);
      myBean.writeContent(beanOut);
      beanOut.close()
    %>
      ...where writeContent is your method that takes a PriontWriter. out is a JspWriter, which extends Writer, so you need to create a PrintWriter from it. You may or may not need to close/flush the PrintWriter deppending upon your bean implementation.

  • How to call session bean's method in JSP

    Hi All,
    I am working on a JSF web application by using sun studio creator.
    The first page have a button, the onClick javascript is as following, which bring up a alert box showing user login name.
    In JSP file, how can I call session bean's setUserName(String name) function (which I would like to store this UserName). So the following pages can use this information.
    If I can not do it this way, is there any other way to do it?
    Thanks in advance.
    var net = new ActiveXObject("wscript.network");
    alert(net.UserName);
    In managed-beans.xml
    <managed-bean>
    <managed-bean-name>BasicInfo</managed-bean-name>
    <managed-bean-class>treepractice.BasicInfo</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>

    You can find more information/details/examples at their own website.
    On the other hand, do you realize that that ActiveX stuff is IE proprietary? And that it is a browser configuration whether to allow them or not? And that this configuration is in IE7 defaulted to an (annoying) warning box before execution which is just bad for the user experience?
    With other words, forget that ActiveX garbage. Alternatives are Applets (not recommended) or Java Web Start (recommended).

  • Help : my JSP page work in 8i but not in 10g. Any idea ?

    Hello,
    We have a 10g environment with Portal and SSO.
    When we were under 8i, I built a JSP file to display data from our DB via IE.
    Now that we are under 10g, I noticed that the JSP file doesn't work anymore...
    I located the JSP file in a similar directory as in 8i ... under ../Apache/Apache/htdocs/
    1) Is there any missing setup in our portal for making this JSP page work ?
    2) It seems that the HTML code is interpreted and correctly displayed, but none of the JSP code is interpreted .... even a "out.println" doesn't run ....
    So, at least the JSP file is found .... but it doesn't completely work !
    Do you have any idea ?
    3) I don't understand the problem... and in other forums, some people suggested that I should not use JSP anymore....
    I would like to understand why ?
    I am something like stuck !!!
    Shall I really use another technology ? (XML, .. )
    Thanks a lot in advance for your helps.
    Olivier

    Hello,
    It could be that there are just libraries missing from your project or some parts of the page aren't being loaded because they reside in another directory.
    Are you trying to run the page in an embedded server? If so, you should add the runtime libraries for a JSP project.
    You should use what you want to use, if you want to use JSP, it's perfectly fine.
    Greetings,
    JGeerts

  • How to call Java Beans from JSP (eg.put them in a WAR or package)

    Can anyone explain to me what are the steps and ways to call java beans from JSP?

    1st, put the javabean classes in the right place:
    the web-inf/classes/your_bean.class directory of corresponding web application
    2nd in your jsp page:
    <jsp:useBean id="obj_var_name" class="your_bean"/>
    <jsp:setProperty name="obj_var_name" property="smthg" value="smthg_calue"/>
    Micheal

  • Calling Session Beans in JSP ?

    Hi Folks,
    I am new to EJB3, I am doing simple applicatuions.
    Can any one please tell me how to call session beans in jsp page.
    for example my case is.. iam entering two diffrent data, lets say user name and password in jsp page and this should go in data base thru JPA (entity beans)
    Iam able to enter data from JPA in data base but if the same i have to fetch from JSP page.. iam not getting..!
    I would really appretiate for your help i need it urgent...!
    thanks in advance.

    abishek1983 wrote:
    Hi Folks,
    I am new to EJB3, I am doing simple applicatuions.
    Can any one please tell me how to call session beans in jsp page.
    Not. You can, technically, but you shouldn't. JSP should be for display purposes only, containing no Java code whatsoever.
    for example my case is.. iam entering two diffrent data,Wrong. You cannot possibly have "2 data", the very concept is impossible.
    You can have "2 data items" which is probably what you intended to say?
    lets say user name and password in jsp page and this should go in data base thru JPA (entity beans)
    Iam able to enter data from JPA in data base but if the same i have to fetch from JSP page.. iam not getting..!
    Same way you insert them. Of course JPA entities are distinctly different from entity beans. The very concept of entity beans no longer exists in the context of JPA, it's solely used to mean EJB 2.1 or earlier entity beans.
    I would really appretiate for your help i need it urgent...!
    It's not urgent.

  • BIB-14820 Calling BI Beans JSP deployed to iAS 10g

    Hello,
    I have deployed a jsp-bi beans application to iAS 10g Release 2.
    When I try to access the jsp page I get this error:
    javax.servlet.jsp.JspException: BIB-14122: The specified StorageManager could not be created.
    BIB-14820 The root path does not exists.
    Is there something that needs to be set up so that my xml config file for bi beans connection
    can be accessed properly?
    This jsp works from jdeveloper.
    The .xml file with the bi beans connection configuration has a root path that I am pretty sure
    needs to be changed. How do I change that (my application is not based on OLAP and does not contain a BI Designer object) ? And what does it need to be changed to in order to work from my iAS?
    Thanks in advance.

    There are three scripts provided with BI Beans for managing the catalogue:
    AddGroup.sql
    AddUser.sql
    AddUsertoGroup.sql
    Once you have created the catalog owner and installed the catalog then from SQLPlus execute the above commands as required. Each script prompts you for any arguments it requires. This will allow you to authorise users and setup groups to manage privileges within the catalog.
    The scripts can be found in $ORACLE_JDEV_HOME/bibeans/bin
    You can check the status of the items within the catalog via the Catalog Viewer within the JDev BIBeans project, the option is on the BIDesigner object (I think) which should launch a GUI catalog viewer.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    OLAP Blog: http://oracleOLAP.blogspot.com/
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    DM Blog: http://oracledmt.blogspot.com/
    OWB Blog : http://blogs.oracle.com/warehousebuilder/
    OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • To make BI Beans work with Oracle 9i Database for Windows...

    I have tried the following combination
    Oracle Database 9.0.1.2 + Patch 3(Patchset:2227410)
    Jdevelper9i RC
    BI Beans RC
    But, when I tried to create a new calculation or new presentation, I got "Connection information is incomplete, Service Name is not specified." error. So, I added " <oracle.dss.addins.wizard.connection.serviceName>OLAPServer</oracle.dss.addins.wizard.connection.serviceName>" in IDEConnections.xml. After this, it ended up with the "BIB-16601" error again:(
    Please let me know whether I have to wait for another patch or not. Because, if the cause of this error is my configuration and all the Oracle Products are fine, I have to check my configuration again to make it work. But, if I simply have to wait for a new patch, I can do something else till then:)
    Thank you.
    Seiji
    P.S. If someone could make BI Beans work with Jdeveloper9irc and Oracle OLAP Services on Windows, PLEASE let me know.

    I found an answer for my question in the JDeveloper 9i forum ( The title is "OLAP Patch"). I will wait for the new patch.

  • Work from command line but did not work from JSP call

    I have a test class that should perform Triple DES. When I run it from command line work ok, but when runs from JSP it give me an error:
    Exception:
    ======================================
    javax.crypto.IllegalBlockSizeException: Input length not multiple of 8 bytes
    put 3 check points inside the code, and run it from command line and here is the result:
    C:\Documents and Settings\salasadi\Desktop\DigitalMailer>java TDESStringEncrypto
    r 123456781234567812345678 "CID=103&A
    this is pass 3
    this is pass 1
    this is pass 2
    here is the class:
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.security.*;
    import java.io.*;
    public class TDESStringEncryptor
    static final int DATA_STRING_LENGTH = 64;
    public static void main(String[] args)
    try
    TDESStringEncryptor enc = new TDESStringEncryptor();
    String value = enc.Encrypt(args[0], args[1]);
    System.err.println(value);
    catch (Exception ex)
    System.err.println(ex);
    public String Encrypt(String inkey, String data)
    throws Exception
    // convert key to byte array and get it into a key object
    byte[] rawkey = inkey.getBytes();
    DESedeKeySpec keyspec = new DESedeKeySpec(rawkey);
    SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("DESede");
    SecretKey key = keyfactory.generateSecret(keyspec);
    Cipher cipher = Cipher.getInstance("DESede/ECB/NoPadding");
    cipher.init(Cipher.ENCRYPT_MODE, key);
    byte[] out = cipher.doFinal( padString(data).getBytes( ) );
    System.out.println("this is pass 1");
    return byteArrayToHexString( out );
    private String byteArrayToHexString(byte in[])
    byte ch = 0x00;
    int i = 0;
    if ( in == null || in.length <= 0 )
    return null;
    String pseudo[] = {"0", "1", "2", "3", "4", "5", "6", "7", "8",
    "9", "A", "B", "C", "D", "E", "F"};
    StringBuffer out = new StringBuffer( in.length * 2 );
    while ( i < in.length )
    ch = (byte) ( in[i] & 0xF0 );
    ch = (byte) ( ch >>> 4 );
    ch = (byte) ( ch & 0x0F );
    out.append( pseudo[ (int) ch] );
    ch = (byte) ( in[i] & 0x0F );
    out.append( pseudo[ (int) ch] );
    i++;
    String rslt = new String( out );
    System.out.println("this is pass 2");
    return rslt;
    private String padString( String s )
    StringBuffer str = new StringBuffer( s );
    int strLength = str.length();
    for ( int i = 0; i <= DATA_STRING_LENGTH ; i ++ )
    if ( i > strLength ) str.append( ' ' );
    System.out.println("this is pass 3");
    return str.toString();
    And here is the JSP call:
    TDESStringEncryptor encryptz = new TDESStringEncryptor();
    String cryptodata1 = encryptz.Encrypt(Keyz,cryptodata);
    Thanks

    Please use [ code ] tags when posting code.
    Please indicate the line that causes the exception.
    Please indicate what Keyz and cryptodata is.

  • Calling managed bean method using ajax on jsp page loading

    Hello,
    I am using jsf1.1 i want to call managed bean method when page gets loaded using ajax.
    Thanks
    K.Ramu

    Use an ajaxical JSF framework, for example Ajax4jsf (part of RichFaces).
    But why don´t you just use the constructor of the bean class to do some stuff prior to page loading?

  • How to call a bean method through a javascript function

    I dont discover any problems calling the bean method in this maner:
    <%= helpdesk.data() %>
    But, when I use a Button Onclick= to call the script function and which then is going call my bean method
    an error on the page is reported!
    I have include som code which gives you the idea of what Iam searching for. And is it possible to call
    the bean method without doing from a new jsp page?
    If you have any suggestions to why it doesnt work, please let me know.
    I use Apache Tomcat 4.0
    Best regards Micah.
    <jsp:useBean id='helpdesk' scope='application'
    class='helpdesk.testdb'/>
    <html>
    <head>
    <script language="javascript">
    function broadcast()
    helpdesk.data();
    </script>
    </head>
    <body>
    <input type="button" value="Broadcast" onclick= broadcast()>
    </body>
    </html>

    It's actually quite simple:
    Beans run server-side
    Javascript runs client-side
    So you will never be able to run server-side-code thru the client...

  • Trying to understand how beans work.

    I can't seem to figure out how beans work. Or more specifically how to target different parts of a bean. I think not knowing the terminology is a big part of this confusion too.
    For instance. I have a jsp file and a bean. the jsp has a form input that submits to itself. the bean gets the info that was typed in and displays is in the <%= etcetc %> tag. Now, what im trying to do is also submit that value to my mysql db. This has created numerous problems for me. For one, i don't really know how to check if it's working (other than actually looking at the DB table). The other problem is how do i target that part of the bean to tell it to do that function (again, the terminolgy eludes me).
    I'll post all of the code. There is a good chance that the DB code wont work. I'm really just hoping someone can explain to me
    how i call the DB function from the JSP file.
    I mean, is this even possible? Or do i need seperate beans for everything?? It seems kind of silly to not be able to do this.
    ok, so here is the code.
    JSP:
    <!-- JSP Directives -->
    <%@ page errorPage="myError.jsp?from=hello.jsp"%>
    <jsp:useBean id="simpleBean" scope="page" class="jspbook.ch3.simpleBean"/>
    <!-- Set bean properties -->
    <jsp:setProperty name="simpleBean" property="fname"/>
    <html>
    <head>
         <title>Hello</title>
    </head>
    <body>
    <center>
         <b><%= simpleBean.welcomeMsg() %></b>
    </center>
    <table align="center">
         <tr>
              <td>
                   <form name="sdfsdf" action="test.jsp" method="post">
                   <input type="text" name="fname" value="">
                   <input type="submit" name="submit" value="submit">
                   </form>
              </td>
         </tr>
    </table>
    </body>
    </html>and here is the bean
    package jspbook.ch3;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    public class simpleBean implements java.io.Serializable {
       private String emplid;
       private Connection con = null;
       private ResultSet rs = null;
       private PreparedStatement st = null;
       /* Member Variables */
       private String lname;
       private String fname;
      public simpleBean()
            try
              Class.forName("org.gjt.mm.mysql.Driver");
              Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/stm?user=root&password=");
        catch(Exception e)
              System.out.println(e.getMessage());
          /* Initialize bean properties */
        setLname("");
        setFname("");
      /* Accessor Methods */
      public String getLname() {
        return lname;
      public void setLname(String _lname) {
        lname = _lname;
      public String getFname() {
        return fname;
      public void setFname(String _fname) {
        fname = _fname;
      /* Display personalized message */
      public String welcomeMsg() {
        return "Hello " + fname + " " + lname +
          ", welcome to the wonderful world of JavaBeans!";
          public void insert()
           try
                String s1="insert into commstream (commTitle) values('"+fname+"')";
                st = con.prepareStatement(s1);
                st.executeUpdate();
                st.clearParameters();
                st.close();   
           catch(Exception m)
    }So there it is. If someone can explain the fundamentals to me, that would be great. What would also be great is if someone can make the above code work :)
    I've checked online tuts/specs on this, but to be honest im just not grasping it.

    iPhoto is a relational database program
    In the strongly recommended managed library (you have chosen to ignore this recommendation and use a referenced library) imported photos are copied to the iPhoto library and stored in the originals folder, a thumbnail jPEG is created and places in the data folder and when any modification is made (including autorotation) a modified version of the photo is created and placed in the modified folder. iPhoto updates its database entries to reflect everything it does.
    It is critical that you do not make any modifications of any sort to the content or structure of the iPhoto library - doing so is likely to corrupt the library and cause you to lose data.
    When you use the referenced mode which you are doing (and which is not recommended) you are taking total responsibility for the original photos which included not moving or modifying them while iPhoto is referencing them
    Unfortunately, all pictures from a certain import has duplicated in iPhoto.... so I "moved to trash" all pictures from that import
    Did you do this with the iPhoto trash? or did you use the finder to modify the contents of the iPhoto library.
    If I "move to trash", I assumed it got rid of whatever index (and preview cache) to that particular JPEG. I was actually surprised it did not delete the actual JPEG but I'm ok with that.
    again - iPhoto trash or finder trash. If you move a photo to the iPhoto trash and empty it all traces of that photo in the iPhoto library will be removed - nothing will be done to any file outside of the iPhoto library -- ever
    LN

  • How can i increase performance JSP with database?

    Hi,
    I am working a forum.
    I have been facing a problem.
    i am getting collection of records from sql server database to jsp page. here all the records to take long time (*delayness jsp with database*).
    plz any bodies know that increase the permance, tell me.
    thanks & regards,
    k.s.kumar

    again very bad idea never use Put DB Code or Business Logic or Special Service requests inside the servlets/backing beans.
    Ideally the below is the method which is recommended for a Peformant J2EE application which focuses at modulality,configurablity,scalablity & performance.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html
    Anyways,it might be a costly in terms of investment.Ideally i personally fell the below way/patterm could be comparable.
    <!-- View / Presentation Layer -->
    STEP 1 --> VIEW RENDERED(JSP renders view using a View Object/Objects)
    STEP 2 --> USER (Fills Forms accordingly and request for an action)
    <!-- Controller part -->
    STEP 3 --> Controller(Servlet+Backing Bean)
    STEP 3.1 ---> Mapps the request made into a View Object & Scopes it (Done by servlet )
    STEP 3.2 ---> validation of the data in the VO (and servlet is responsible to find appropriate Backing Bean to pass on the respective View Object)
    STEP 3.3 ----> Backing Bean takes help of a ServiceLocator Object(Singleton Object) and gets appropriate Business Object which takes care of all the appropriate business rule(Managed by Specific Containers)
    <!-- Service Locator takes help of specific Stubs to provide access to specific business Object -->
    <!-- MODEL PART -->
    STEP 3.4 ---->Backing bean passes on respective View Object to the Business Object and Business Object apply business rule on the data recievd from the Backing bean and sends appropriate DTO to DAO Object(Singleton Object)
    STEP 3.5 ----> DAO executes responsible DB query and returns a DTO/Collection of DTO to Business Object.
    STEP 3.6 ----> Business Object apply business rules on the data and then passes it back to backing bean.
    STEP 3.7 -----> Backing Bean receievs appropriate DTO/Collection of DTO sent by Business Object Update the View Object Accordingly.
    STEP 3.8 -----> Depending on the results return by Business Object the backing bean returns to reference appropriate JSP to forward/redirect.
    STEP 3.9 -----> Servlet identifies the reference returned and forward/redirects accordingly.
    STEP 4 ---> Repeat STEP 1
    NOTE: One can make use of any builtin frameworks(like struts,JSF,tapestry,Spring MVC,etc or your custom built framework in VC layers, EJB or Spring IoC or Custom Built Component Layer handling business objects and any ORM like hibernate,Oracle Toplink,Ibatis,JDO,JPA or specific custom devoloped DAO layer) to do this job.
    Might Sound bit complicated but is a better way to plug & play with each layer and can enusure other layer is not distrubed because of change in one layer,distributes the load on respective layer & so on.
    Hope that sounds logical
    REGARDS,
    RaHuL

Maybe you are looking for

  • G5 + NTSC Monitor

    I want to add an NTSC Monitor to my editing suite (G5 Tower). I am not sure what I need to do this? Do I need a video card? It is an old used model with A/V cables. I have looked at many posts but still am lost. Thanks Vykus

  • Cursor bind variable syntax err

    Any one help me in correcting the syntax, for cursor return. Oracle version 10g I am trying to execute the sproc and print the cursor results using bind variable, I am getting he below error Variable V_REFCUR REFCURSOR Variable V_REFCUR2 REFCURSOR va

  • Preview tiff distortion

    Am having a problem with Preview. I process large size film scans in tiff format in Aperture. When I export these images and view them in Preview they appear distorted (huge snowy grain/noise distortion). I have figured out that this is a scaling pro

  • 802.1X authentication not happening in Voice Domain for IP Phone

    I am trying to lab as many scenarios as I can for 802.1x.  I seem to have hit a problem with IP Phones running EAP-MD5 authentication.  The phone sare always being authenticated in the Data Domain.  This is regardless of whether or no the port config

  • Shortcut Remapping: Show Current Song

    I've been able to navigate to the currently paying song just fine. But one of my FAVORITE shortcuts in iTunes is Cmd-L, Show Current Song. It shows me the song that is playing, in whatever venue it is playing it in, be it playlist or album or whateve