Transaction proccessing in JSP

help me in transaction management in JSP'es.what should i do for accessing a pgae that insert data to a databse and .... if possible write me ,please,some address which describe concisely this subject

dont double post exact same question
http://forum.java.sun.com/thread.jsp?forum=45&thread=530334&tstart=0&trange=15
If people dont answer it can have a multitude of reasons:
Your question is too general
Your question is to vague
Your question in not understandable.
....

Similar Messages

  • Standard R/3 transactions with standard JSP presentation layer

    Hi, folks,
    I have a general question about standard R/3 transactions and whether existing PAR files are out there that render the output as a JSP instead of a WebGUI or WinGUI front-end.  Are there any PAR files that exist, either through iViewStudio.com or somewhere else, that show a standard R/3 transaction through a JSP front-end?
    A JSP front-end would give it is a nicer and, perhaps, more flexible look and feel than an R/3 session running through an iView, either with or without ITS.
    I have looked at iViewStudio.com and I have not found anything that would help us in this case.  I have heard there are iViews out there, such as "Order Status", but I have not had any luck locating any.
    Any assistance would be greatly appreciated.
    Thanks in advance,
    George

    Hello George,
    there is no direct way to put a JSP in front of a Transaction. What you can do is to use BAPI's and RFC enabled Function Modules to access R/3 functionality. To implement this you can use Visual Composer, Gui Web Dynpro and the SAP Developer Studio.
    Regards
    Gregor

  • Maintaining Transaction Across Multiple JSP Pages

              Hi,
              I have a multi page Registration (3 steps). On each step data submited is taken
              to the database via an EJB component (Session Bean). How do I maintain a transaction
              across these JSP pages so that the data in the database is consistent. If a there
              is a problem in the 3rd step the data submitted in the first two steps should
              be rolled back.
              How do I maintain transaction across multiple pages.
              Regards
              -MohanRaj
              

    It will take from several minutes to a long time for a user to complete a multiple page registration process. Do you really have enough database connections that each concurrent user can hold on to one?
    Usually you cannot open more than 50-200 connections to a database at any given time.
    Remember that some users will abandon the registration process. Can you afford that their sessions holds a db conenction until the session times out?
    Consider changing your datamodel so you can run and commit a transaction at the end of processing the form data from a page. Immediately after the commit give the db connection back to the pool inside the app. server.
    It can be as simple as having a column in the database of type enum, with a set of values that shows how far in the registration process the registration has procesed.
    BTW. if you absolutely have to hold on to the db connection, you can stuff it into a session scoped attribute and it will be available on all pages.

  • Transaction in jsp

    Hi everybody
    I want to create a sql transaction in my jsp page,how can i do it?
    thanks

    ok, If I understood oyur meaning i must say :
    I have a class for taransact with my db ,it's defined as follow :
    public class TransMng {
    public java.sql.Connection cnn;
    private Statement st;
    private ResultSet rs;
    public String[] result;
    public TransMng() {
    * @param query
    * @throws SQLException
    public void connect() throws InstantiationException,
    IllegalAccessException,
    ClassNotFoundException {
    String url;
    Driver d;
    String usr;
    String pwd;
    String portNumber;
    String serverName;
    String dbName;
    serverName = "127.0.0.1";
    portNumber = "1361";
    dbName = "Fiber";
    cnn = null;
    st = null;
    rs = null;
    usr = "sa";
    pwd = "";
    d = (Driver)Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    url = "jdbc:microsoft:sqlserver://"+serverName+":"+portNumber+";DatabaseName="+dbName+";SelectMethod = Cursor;";
    try {
    DriverManager.registerDriver(d);
    cnn = DriverManager.getConnection(url,usr,pwd);
    catch (SQLException e) {
    e.printStackTrace();
    * @param query
    * @return
    * @throws SQLException
    public ResultSet exec(String query ) throws SQLException {          
    st = cnn.createStatement();
    rs = st.executeQuery(query);
    return rs;
    * @param query
    * @throws SQLException
    public void vexec(String query ) throws SQLException {          
    st = cnn.createStatement();
    st.execute(query);
    * @throws SQLException
    public void disconnect() throws SQLException {
    if (rs != null) {
    rs.close();
    if (st != null){
    st.close();
    if (cnn != null){
    cnn.close();
    I want to use of this class in my jsp page to begin a sql transaction ; is it in a wrong manner?

  • Maintaining Transactions Across JSP Pages

    Hi,
    I have a multi page Registration (3 steps). On each step data submitted is taken
    to the database via an EJB component (Session Bean). How do I maintain a transaction
    across these JSP pages (i.e. either in the EJB or in the jsp) so that the data
    in the database is consistent? So if there is a problem in the 3rd step the data
    submitted in the first two steps should be rolled back.
    Can I use a statefull session beans, which will maintain a database connection
    created during the first step, so that I can use the same connection for steps
    2 & 3. In the first step after getting the database connection I will begin a
    transaction and insert the first part of the data, then this connection will be
    maintained by the statefull session and used for steps 2 & 3. At the end I will
    commit the transaction. Will this work?
    How do I maintain transaction across multiple pages? Is there is any standards
    for this scenario where the transaction is maintained across multiple pages. I
    cannot carry data across the jsp pages because of the complex data collected.
    Any help appreciated.
    Regards
    -MohanRaj

    You can not and should not do it the way that you are proposing. Keeping a transaction
    open across any interaction with the user is a big mistake. Transactions are scarce
    resources. They need to be short. You will need to collect the data from the three
    pages in the servlet itself. You can use the HTTPSession, or hidden fields in
    the forms. Only after all of the data is collected should you begin a transaction
    and update the database. Alternatively, you could store the partial data in a
    temporary database table, and move it to a permanent table when all of the data
    has been provided.

  • Need to create a response for online amount transaction

    hi everyone,
    i need to develop a response page for an online amount transaction. its a jsp page and i need to check whether the transaction is successful or not and need to give a message to the user along with the transaction details. i can't able to get the message from the response page that is from the bank site. please help me to find how to do this..

    Hi ,
           Check out this exits.
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    Check some of badi .
    Please reward if useful.

  • Display iView/transaction  in tabstrip

    Hi...
    First, I'm running ep5.0 patch5.0.  I am modifying the Unversal Worklist iView right now.  I have added another tab in the tabstrip at the end and I want to display an iView/transaction inside that tab when it is selected.  Now since this iView is SAP delivered, I cannot change the Java code, but the JSP is there.  So my question is, is it possible to call an iView/transaction from a JSP?
    Any advice?
    TIA!!
    Kevin

    Hi,
    it is in fact very simple. I assume you´re working with SAP Dialog programming and in your main screen (let´s say 0100) you have to create a Tabstrip control with 2 tabs. In each tab you assign a subscreen for data display (your ALVs). These subscreens are named, let´s say, 0200 and 0300.
    When creating a single ALV tree, somewhere you call it like this:
    CALL SCREEN 0100.
    The screen 0100 has 2 events (PBO & PAI) and in PBO you design the ALV like this:
        data: mycontainer  TYPE REF TO cl_gui_custom_container,
        CREATE OBJECT mygrid
               EXPORTING i_parent = mycontainer.
        CALL METHOD mygrid->set_table_for_first_display
           CHANGING
              it_outtab                     = mytable[]
              it_fieldcatalog               = field_catal[]
           EXCEPTIONS
              invalid_parameter_combination = 1
              program_error                 = 2
              too_many_lines                = 3
              OTHERS                        = 4.
    well, working with a tabstrip control, you call screen 0200 for your ALV tree1 and 0300 for ALV tree2 in the same way.
    For creating the tabstrip control there´s a wizard that performs the task for you.

  • How to print only fatal error in log file in tomcat4.1

    Hi all ,i m using tomcat4.1
    1> i want to print only fatal error in log file ,but it print all thing in log file ,how i can avoid it(because i think this process is consuming my resource)
    assume below ip address is corect:
    this is exact printing in my log file
    .12.2.3.3  - - [24/Oct/2007:00:00:00 5050] "GET /menu/ir.jsp HTTP/1.1" 200 2828
    12.2.3.3  - - [24/Oct/2007:00:00:00 5050] "GET /menu/bottomAdv.jsp HTTP/1.1" 200 528
    12.2.3.3  - - [24/Oct/2007:00:00:02 5050] "GET /menu/alerts.jsp HTTP/1.1" 200 323
    12.2.3.3  - - [24/Oct/2007:00:00:02 5050] "GET /alerts/createAlertShow.jsp HTTP/1.1" 200 26140
    123.2.3. - - [24/Oct/2007:00:00:05 5050] "GET /menu/getsensex.jsp HTTP/1.1" 200 642
    12.2.3.3 - - [24/Oct/2007:00:00:05 5050] "GET /menu/latestRecommendation.jsp HTTP/1.1" 200 5210
    12.2.3.3 - - [24/Oct/2007:00:00:05 5050] "GET /portfolio/watchlist/displayWatchlistItemsShow.jsp?watchlistId=20070509013642953_1&watchlistName=First&refreshRate=900&flag=1 HTTP/1.1" 500 7257
    12.2.3.3  - - [24/Oct/2007:00:00:05 5050] "GET /menu/iwealthNewsScroller.jsp HTTP/1.1" 200 2828
    112.23.3  - - [24/Oct/2007:00:00:06 5050] "GET /menu/alerts.jsp HTTP/1.1" 200 323
    112.23.3 - - [24/Oct/2007:00:00:06 5050] "GET /menu/bottomAdv.jsp HTTP/1.1" 200 528
    12.2.3.3  - - [24/Oct/2007:00:00:07 5050] "GET /menu/alerts.jsp HTTP/1.0" 200 323
    12.2.3.3 - - [24/Oct/2007:00:00:09 5050] "POST /Transaction/equity/modifyConfirmShow.jsp?DelId=0 HTTP/1.1" 200 28661
    12.2.3.3  - - [24/Oct/2007:00:00:09 5050] "GET /menu/getsensex.jsp HTTP/1.1" 200 6422>what will happen if i change timestamp="false" and what is the significance of verbosity="1" or "2" or "3" ,or "4" and what happen if i change debug="1" or other in below code
    <Logger className="org.apache.catalina.logger.FileLogger" debug="0" directory="logs" prefix="www.xyz_log." suffix=".txt" timestamp="true" verbosity="4"/>Edited by: Deepak23 on Oct 24, 2007 10:41 PM
    Edited by: Deepak23 on Oct 24, 2007 11:16 PM

    One of my standard answers (which will explain the use of Directory Objects)...
    The UTL_FILE_DIR parameter has been deprecated by oracle in favour of direcory objects because of it's security problems.
    The correct thing to do is to create a directory object e.g.:
    CREATE OR REPLACE DIRECTORY mydir AS 'c:\myfiles';Note: This does not create the directory on the file system. You have to do that yourself and ensure that oracle has permission to read/write to that file system directory.
    Then, grant permission to the users who require access e.g....
    GRANT READ,WRITE ON DIRECTORY mydir TO myuser;Then use that directory object inside your FOPEN statement e.g.
    fh := UTL_FILE.FOPEN('MYDIR', 'myfile.txt', 'r');Note: You MUST specify the directory object name in quotes and in UPPER case for this to work as it is a string that is referring to a database object name which will have been stored in uppercase by default.

  • Constructing Database Update DML Statements

    This is a very common problem I am sure but want to know how others handle it. I am creating a web application via Servlets and JSPs. I am working with Oracle 10g.
    Here's the problem/question.
    When I present an html form to a user to update an existing record, how do I know what has changed in the record to create the dml statement? I could just update the entire record with the values supplied via the POST data on submit but that does not seem right since maybe only 1 out of 10 fields actually changed. This would also write needless audit and logging information to the database. I have thought about comparing the Request parameters sent with the post with the original java bean used to populate the form in the first place by adding it back to the request as an attribute. Is this the only way to do it or is there a better way?
    Thanks everyone,
    -Brian

    What database drivers are you using? I recall there being some bug in
    sp2 that caused delayed transaction commits for a very specific
    combination of transaction settings and database drivers.
    I think it was third-party type II Oracle drivers and local
    transactions, but I'm not sure.
    In any case, I'd contact support as there is a patch available.
    David
    Gurjit wrote:
    Hi all,
    I have posted something of this sort earlier too. The problem is that
    the database is not reflecting what has been updated using queries from the
    application.
    THe structure of the application is as follows.
    DB = Oracel 8.1.6
    Web Server = iPlanet 4.0
    App Server = iPlanet 6.0 sp2
    The database is connected to via the EJB's. No Database transactions are
    being used except for Bean transactions which are container managed. The
    setAutoCommit flag is set to true. Each query is a transaction. The jsp's
    call these ejb's through wrapper classes. As stated earlier the database
    updates (Inserts, update, delete statements) are not getting reflected in
    the database immediately. The updates happen after a gap of about 7-10
    minutes. Why is this sort of behaviour coming up. This is almost like batch
    updates happening on the database. Is there a setting in IPlanet for
    removing this kind of problem.
    Regards,
    Gurjit

  • Hey Sun Guys! Give Me An Example

    Hi,
    I have already wasted two full days and still not found a solution for my problem.
    I am running Win 2K, Tomcat 4.0.
    I wrote a simple JSP page to test transactions. The data gets comitted irrespective of whether I do a commit or a rollback.
    Can somebody give me a good, simple, working example/sample for transaction?.
    I have pasted my server.xml and .jsp code here.
    server.xml
         <!-- Sample that accesses a JDBC/ODBC DataSource and uses Transaction. -->
    <Context path="/ryan/transaction1" docBase="ryan\transaction1"
    debug="0" privileged="true">
              <Resource name="jdbc/dsn1" auth="Container" type="javax.sql.DataSource"/>
              <ResourceParams name="jdbc/dsn1">
                   <parameter>
                        <name>user</name>
                        <value>SCOTT</value>
                   </parameter>
                   <parameter>
                        <name>password</name>
                        <value>TIGER</value>
                   </parameter>
                   <parameter>
                        <name>driverClassName</name>
                        <value>sun.jdbc.odbc.JdbcOdbcDriver</value>
                   </parameter>
                   <parameter>
                        <name>driverName</name>
                        <value>jdbc:odbc:JavaPrototype</value>
                   </parameter>
              </ResourceParams>
              <Resource name="jta/UserTransaction" auth="Container" type="javax.transaction.UserTransaction"/>
         </Context>
    JSP Code
    <%@page import="java.util.Hashtable" %>
    <%@page import="java.sql.Connection" %>
    <%@page import="java.sql.Statement" %>
    <%@page import="java.sql.ResultSet" %>
    <%@page import="javax.sql.DataSource" %>
    <%@page import="javax.transaction.UserTransaction" %>
    <%@page import="javax.naming.Context" %>
    <%@page import="javax.naming.InitialContext" %>
    <%@page import="tyrex.tm.Tyrex" %>
    <%!
    String insertSQL = "";
    Hashtable hashTransaction = null;
    Context contextDB = null;
    Context contextTransaction = null;
    DataSource datasource = null;
    Connection dbConn = null;
    Statement insertStatement = null;
    UserTransaction transactionDB = null;
    Tyrex tyrex = null;
    %>
    <%
    contextDB = new InitialContext();
    datasource = ( DataSource ) contextDB.lookup( "java:comp/env/jdbc/dsn1" );
    dbConn = datasource.getConnection();
    insertStatement = dbConn.createStatement();
    hashTransaction = new Hashtable();
    hashTransaction.put( Context.INITIAL_CONTEXT_FACTORY, "tyrex.naming.TyrexContextFactory" );
    //hashTransaction.put( Context.PROVIDER_URL, "" );
    hashTransaction.put( Context.SECURITY_AUTHENTICATION, "SCOTT" );
    hashTransaction.put( Context.SECURITY_CREDENTIALS, "TIGER" );
    contextTransaction = new InitialContext( hashTransaction );
    tyrex = new Tyrex();
    transactionDB = tyrex.getUserTransaction();
    contextTransaction = new InitialContext();
    transactionDB = ( UserTransaction ) contextTransaction.lookup( "java:comp/UserTransaction" );
    if( datasource == null )
         out.println( "DataSource is NULL. <br>" );
    else
         out.println( "DataSource is Not NULL. <br>" );
    if( transactionDB == null )
         out.println( "Transaction is NULL. <br>" );
    else
         out.println( "Transaction is Not NULL. <br>" );
    insertSQL = "Insert Into JAVA_TEST1( NAME, JOB, SAL ) Values( 'Anil', 'CEO', 500000.00 )";
    transactionDB.begin();
         insertStatement.executeUpdate( insertSQL );
    transactionDB.rollback();
    insertStatement.close();
    dbConn.close();
    %>
    Thanks in advance
    Ryan Norman

    There is one important thing you might be missing,
    To use JTA,
    1. Your JDBC Driver should be JTA complient and you
    2. Database server should also be JDBC and JTA complient,
    3. The JTS server should be able to handle your JTA complient JDBC driver
    which is not as simple as it looks,
    For example if you want to use Merant Datadirect Connect JDBC driver with Websphere and SQL Server, you need Websphere 4.0.2 to use JTA, webshere 4.0(JTS) does not support. And You need some installation on SQLServer also(Some .dll copy and Stored Procedures)
    Sanjay

  • CompilationException when upgrading from WebLogic7 to WebLogic9.1

    When I upgrade the server from Weblogic7 to Weblogic9.2. I had the following problems when executing the programs
              weblogic.servlet.jsp.CompilationException: Failed to compile JSP /core/code.jsp
              code.jsp:31:2: No end tag found.
              <html:html locale="true">
              ^-------^
              code.jsp:335:1: Unterminated tag.
              <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              ^-----------------^
              code.jsp:335:2: No end tag found.
              <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              ^----------^
              code.jsp:335:15: Specify a value for this attribute.
              <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              ^--^
              code.jsp:720:3: No start tag found.
              </html:html>
              ^-------^
                   at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:292)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
                   at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:224)
                   at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380)
                   at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
                   at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3150)
                   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
                   at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
                   at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
                   at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
                   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
                   at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
              >
              However, it works fine in WebLogic7.
              Many thanks.

    Irene,
              This issue has been resolved in 9.2, and you can ask for newest patch from
              your support.
              Regards
              Leon
              <Irene Ho> wrote in message news:[email protected]...
              > When I upgrade the server from Weblogic7 to Weblogic9.2. I had the
              > following problems when executing the programs
              >
              > weblogic.servlet.jsp.CompilationException: Failed to compile JSP
              > /core/code.jsp
              > code.jsp:31:2: No end tag found.
              > <html:html locale="true">
              > ^-------^
              > code.jsp:335:1: Unterminated tag.
              > <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              > ^-----------------^
              > code.jsp:335:2: No end tag found.
              > <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              > ^----------^
              > code.jsp:335:15: Specify a value for this attribute.
              > <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              > ^--^
              > code.jsp:720:3: No start tag found.
              > </html:html>
              > ^-------^
              >
              > at
              > weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:292)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
              > at
              > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:224)
              > at
              > weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380)
              > at
              > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
              > at
              > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
              > at
              > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3150)
              > at
              > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
              > at
              > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
              > at
              > weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
              > at
              > weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
              > at
              > weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
              > at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
              > at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
              >>
              >
              > However, it works fine in WebLogic7.
              > Many thanks.

  • Form  to Servlet

    Hi there
    When I send information to the servlet using method="POST" from a form
    The information is then stored into database
    But the servlet returns a blank htm page
    Is there a way to prevent this ?
    Thanks
    IB

    The servlet should do one of two things:
    Generate an HTML output stream itself with the resulting page.
    or (more in tune with J2EE thinking)
    Forward the transaction to a JSP or HTML page in the same webapp. This is done as follows:
    getServletContext().getRequestDispatcher("/resultpage.jsp").forward(request, response);Such a servlet normally validates the input fields. If it finds an error it returns to the form page, adding an error message and prepopulating the fields. If it succeeds it will switch, instead, to some kind of results page, or maybe the next form in a sequence.

  • Drill Down feature for pie chart in Java

    Hi,
    I have a JSP where the graph displayed should have �Drill Down� functionality i.e. when clicked on any sector of Pie chart it should come up with other graph giving more details.
    I need the code or how to proceed to get drill down feature.
    If anyone has idea about �drill down� or any sites which can help me please reply.
    Thanks in advance.
    Praveen.

    You have to generate the image and the surrounding HTML using two seperate transactions; typically a JSP delivers the HTML and a servlet, invoked by the SRC URL of an image tag, provides an image.
    Your HTML contains a form, and the image is displayed using a <Input type="image" .. Clicking on that submits the forn, providing X and Y coordinates as parameters to a servlet which can calculate which pie-slice has been clicked. You can't use a client-side image map because there are no suitable sensitive shapes available.

  • Rollback without loosing currency

    Hello,
    We moticed that when rolling back a transaction on a JSP
    (via the Rollback tag), curency is lost. Is there a way
    to do a rollback w/o loosing the curency?
    What about the refresh methods? Are those similar to
    a rollback?
    Chris

    Chris:
    refresh() will restore data from database on individual row basis. rollback() rolls back the entire transaction.
    refresh() will keep currency. rollback() loses currency for all VOs.
    If refresh() is good enough for your purpose, I'd recommend that. If you need to go with rollback(), you can get the currency info and restore it after rollback. But, this can be expensive. This is because after rollback the view row collections are all emptied out.
    getCurrentRowIndex() can be used to get the current row index. Then, setRangeStart() and setCurrentRowAtRangeIndex combination can be used to set the currency. However, this index may be skewed by new rows. Since rollback will remove these new rows from the collection, the current-row-index may be indeed incorrect after rollback().
    Thanks.
    Sung

  • Please suggest how to handle User Transactions in JSP using JTA

    we are using Websphere application server with DB2, Can anyone suggest how to maintain the transactions in JSP ?

    What transactions?

Maybe you are looking for

  • Sending an excel spreadsheet attachment on an E-Mail

    Afternoon, Based upon program BCS_EXAMPLE_5 I have created a program that generates an e-mail and creates a spreadsheet attachment. The problem I have is how do get the contents of an internal table into the spreadsheet attachment? My attempt at reso

  • Printing mailbox list

    Hi - is there an easy way to print the list of mailbox messages? I think I must be overlooking something obvious, but I can't seem to find this info. Thanks in advance for any assistance.

  • A few days ago(after a system restore) the firefox 15.0.1 crashes every time i opened(in a few secondes or in 1-2 minutes)

    a few days (after a system restore )the firefox 15.0.1 chrashing and freezing every time i open it.in a safe mode i dont have any problem ,but i cant find if blame any addon or anything else.im unistalling and reinstall the update or older version(14

  • Project open failure

    Any idea on what's going on with when you double-click a project file from finder, it launches After Effects, but the project doesn't actually open, only the application. I'm having the same issue after upgrading to CC. Unless that is just how CC wor

  • Where is TextExpander in Yosemite?

    iMac OS 10.10.2 Does Yosemite not include TextExpander? I can't locate it anywhere. I know it's a helper app, but where are they? Thanks for any suggestions.