Updating DB from beans with transactions

Hello,
I have a 4 step form to input data from a user.
step1.jsp, step2.jsp, step3.jsp, step4.jsp, submit.jsp
For every form, I am using a javabean (jsp:useBean) with session scope so that I can update all at the end. So in step2.jsp, I set the properties of Bean1, in step3.jsp- the properties of Bean2... and finally in submit.jsp I get all the 5 beans with session scope.
I now want to insert values from these different beans simultaneously into a Database. (single commit)
If I want to use Transactions, how can I get the values from these beans (Bean1, Bean2, Bean3, and Bean4) to a single class? Or can you suggest another method?
Thanks.

anand_agrawal wrote:
why not just use 1 object for all pages anyway?
why 4 beans, is it necessary?I'd like to have multiple beans. Is there a way it can be done?you should know that you can create a class to hold whatever you want
and you should also know that you can copy data from one class to another
so of course it's possible
what are you asking?

Similar Messages

  • Update table from SM30 with automatic Time Stamp

    Hi,
    I have created a table maintenance generator for updating table from SM30.
    Now there are fields in my table which are CRETING TIME and CHANGING TIME. Both being TIMESTAMP field (datatype: RSDDTZNTSTMPS).
    Is it possible while user updates records/create new record in the table from SM30, these time stamp field to automatically get populated.
    Also is there any F4 help available for TIMESTAMP field?
    ags.

    Hi,
    You need to do two things inorder to get the desired results.
    1) Go to Screen Layout of the Screen created by table maintenance generator and make the date/time columns to DISPLAY ONLY. This will ensure that user is not able to modify the values at runtime
    2) Write the code in PAI of the Module pool program to populate the values at runtime using Sy-datum/sy-uzeit. (Hint : Search for INSERT/MODIFY statements which will show the location before which you need to write your logic)
    Regards,
    Kshitija

  • Update termination error SAPSQL_ARRAY_INSERT_DUPREC with transaction f110

    Hi ,
      When we executed the transaction F110 for payment runs it gave an update termination error "Express document 'update was terminated' ".
    Update was terminated
    Error Info  00671: ABAP/4 Processor : SAPSQL_ARRAY_INSERT_DUPREC
    Could you please anyone suggest me how to overcome this express document error.
    Thanks,
    Saran

    Hi,
    I think u r getting this exception as ur trying to INSERt a record which ia already existing, so try to change the data and Run the tcode.
    Revert back if any issues,
    Reward with points if helpful ,
    Regards,
    Naveen

  • Disable transaction box and menue from wingui with transaction iview

    Dear all,
    has anyone a solution to disable or hide the menue and transactionfield in a portal transaction iview thats called with wingui.
    Webgui is no solution.
    Best regards
    Thorsten Stracke

    Hi Vineeth and Ramganesan,
    thanks for quick response, this will be a option when all clients shoul use this behavior.
    I search for a solution, where i can decided in a view to switch it of. Normally i can attach dynpro fields and values with the dynamicparameter, if this can use for hide .. the box or some functions in the gui state.
    An other idea is to use a new status for the reports and transactions, but i don't know who use this as parameter.
    Best regards
    Thorsten

  • Cant update apps from AppStore with iOS 8

    After I upgrade my iPad mini retina (A1490) to iOS 8, I found all my apps cannot update in AppStore.
    Neither clicking on the  'update' button for each app nor 'update all' in AppStore will work, and no progress was made, just the round indicator circling forever.
    Has any one met this problem and know what is going on?

    Did you do the "erase all content and settings" before performing the restore??  That was the key for me.  I had tried all the "normal" things, reboot, hard reboot, etc. 
    It had trouble even during the complete restore - it stalled at one particular app for a long time (15-20 minutes).  I disconnected the lightning (USB) cable, waited 30 seconds, reconnected and it picked up the restore.
    Still painful as most of my application data had to be restored through each app.  Kindle books reloaded, etc.

  • Bean-managed transaction with EJB 3.0

    Hi,
    I try to get a bean-managed transaction example running with EJB 3.0 under GlassFish v2ur2.
    In order to demarcate the scenario I have to get me the UserTransaction which I get from the SessionContext. I would like to use it then like: UserTransaction ut = context.getUserTransaction();
    I tried to get the SessionContext with the help of the EJB method setSessionContext which should be called by the container after instance creation.
    However, setting a log output into that method does not show any call of this method.
    So, how can I get this method called or is there another way to get the SessionContext for the UserTransaction to work ?
    Are there any good and fully implemented examples for bean-managed transactions ?
    Thanks for your help.
    Regards

    I found the solution for that my SessionContext was NULL and I could not use the UserTransaction.
    The reason for it is that I injected the EJB with @EJB into my servlet and did a MyBean mybean = new MyBean();
    That leads to a SessionContext which is NULL within my EJB.
    If I use it without instantiating it it works fine.
    Again, thanks for your help. At least it pointed me into the right direction.
    Regards

  • Update data from ODS to ODS with infopackage selection

    Hi,
    I am trying to update data from one ODS to another ODS with selection criteria in InfoPackage which is created manually.For Full load I can give selection criteria in InfoPackage. When I initialize data Selection is greyed out even selections for Full load exists. Please advise me how to give selections for delta loads from ODS to ODS loads.
    Thanks in advance.
    Ram

    Once you started an ODS as destination in FULL mode from a DS you cannot get back.
    So if you want to update from ODS to ODS using Change Log but considering only some data records you could create an Update Routine with a Start Routine that DELETES undesired records (e.g. DELETE DATA_PACKAGE WHERE ...) and then start an Init-Delta Loading.
    Hope it helps
    GFV

  • I recently bought, from the original website of Adobe, Photoshop elements 13. However, when I go with my mouse pointer over the menu, It hangs or he works very slow. Does anyone have an idea how I can fix it? I have already downloaded updates, both from A

    I recently bought, from the original website of Adobe, Photoshop elements 13. However, when I go with my mouse pointer over the menu, It hangs or he works very slow. Does anyone have an idea how I can fix it? I have already downloaded updates, both from Adobe and Windows. I have a new pc with window 8.1.

    It could be a coincidence, but I rebooted the machine and (knock on wood) PSE13 seems to be working ok.

  • App updated and syncing fine with ipad; updated from PC, but not for iphone. Updated on PC, but not on iphone

    Product: iPhone 5
    itune: 11.2.2.3; ios 7.1.1
    iPhone 5 app updated fine from PC, but will not sync with iPhone.
    Steps: Fire iTunes from PC, then connect iPhone, did app updates in iTunes, but did not sync with iPhone (the # updates stays the same next to "APP Store").
    It worked fine for iPad App updates. I tried connect, disconnect, did not work. I also read some posted comments, but still cannot resolve the problem. Please help. Thanks!

    Hello there, graced.
    The following link from the iPhone Basics provides another way to update an app on your iOS device:
    App Store - Learn more  about iOS 7 and iPhone - Apple Support
    http://support.apple.com/kb/index?page=tidetail&product=iphone&locale=en_US&tag= App%20Store#TI133
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Can i update itunes from one computer to the other with a thumb drive

    i have a computer that has no internet access but a laptop that does. is there a way i can update it with a file on a thumb drive?

    Hello Boyesreef,
    It sounds like you are wanting to update another iTunes library with files you have on a flash drive. You should be able to import them with this info:
    To add files to your iTunes library, you can use these options:
    Drag files from the Finder to the appropriate icon on the left side of the iTunes window.
    Choose File > Add to Library (on Windows, choose Add File to Library or Add Folder to Library) and select the song or folder that you want to add.
    From: iTunes: About the Add to Library, Import, and Convert functions
              http://support.apple.com/kb/ht1347
    If your end goal is that you would like both libraries to match on both computers, you can use the following article to copy the more complete library to the other computer all in one go:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • I have registered on my PC two devices iPhone 5 and iPod Touch 4 now I am using only the iPhone 5. I have two different apple ID`s and yesterday I have FB update and from app store wanted to sign in with the ID form iPod Touch 4 how to fix it?

    I have registered on my PC two devices iPhone 5 and iPod Touch 4 now I am using only the iPhone 5. I have two different apple ID`s and yesterday I have FB update and from app store wanted to sign in with the ID form iPod Touch 4 how to fix it? I want to use my current Apple ID not the old one. Regards!

    Try this
    http://support.apple.com/kb/ht1495
    Hope it helps.

  • After update 8.1.2 i had problem with sync my content from ITunes with IPod

    After update 8.1.2 i had problem with sync my content from ITunes with IPod. It stucks on moment when its waiting for implementing changes (step 5 of 5) Hours and hours i'm waiting but still the same. So i cant use my Ipod at all. I restarted Ipod and delete and download Itunes again. Still stuck in the same moment. Help please. Someone has some problems like that?

    I have an error message saying that "An unknown error occurred (-54)"

  • I updated my iphone 4S with iOS 6.1.3 and now my e-mails say, "This message has not been downloaded from the server".  We have an Exchange server at work.  ??

    I updated my iphone 4S with iOS 6.1.3 and now I cannot retreive or send my e-mails.  We have an Exchange server at work.  I still receive the e-mails on all my devices just fine and I can see the subject headings & a small portion of the body of the e-mail, but when I open the e-mails there is no body and it reads, "This message has not been downloaded from the server".  Very aggrevating and is not helping my business at ALL!!  Same has happened with both iPads we own now. 

    Delete then add back the exchange acct on each device.

  • BAPI to Update the OA/PO with the new partners from vendor masters

    Hello All,
    We got a requirement to update the Contract or purchase order with new partners from vendor  master.
    In brief the partner information of a  PO when created with reference to a contract  will be reflected from the contract but not from Vendor Master partners .So when the vendor master got changed after the creation of the Contract the partner information in the PO is not in synchronous with Vendor Master partnes.
    Hence please help us with any BAPI to update the PO partners with Vendor masters .
    Regards
    Kalyani

    MAP2e_lfa1_to_bapivendor_04
    MAP2e_lfa1_to_bapivendor_05
    will be helpful

  • Since i update my iPhone 5 with IOS 7.0.2, I start to have serious problems to call or receive calls from other telephones: is not possible to open the call at the first try. Somebody have the same problem?

    Since i update my iPhone 5 with IOS 7.0.2, I start to have serious problems to call or receive calls from other telephones: is not possible to open the call at the first try. Somebody have the same problem?

    Try
    Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data

Maybe you are looking for

  • Problem with iCloud and storage

    I have 13GB of 15GB available on iCloud and I back up my phone constantly, my phone still says I have no storage left on the device it self. I've had this problem on my iPad before, I bought more storage and still nothing was resolved. How do I creat

  • Fiscal Period ----- in BEx Report

    Hi All, I have a small issue. in my report i want to give single selection for fiscal period like 0102005. for these selection i want to display all previous period data in separate column like 0012005    0022005 ............ 0102005      KF value  

  • IPhoto doesn't open after migration/upgrade

    I see several discussions similar to mine, but not exactly. I just migrated from a MacBookPro 10.6.8 to a Pro 10.8.2. My iPhoto was iPhoto 8, vers 7.1.5. After migration and upgrade my iPhoto is vers 9.4.1. When I try to open iPhoto I get the message

  • What id my scratch off code doesn't allow me to redeem? Says "invalid code"

    When I input my scratch off code it says "invalid code" and I've tired four times, my mom twice!

  • How to auto save instrument output data to Excel with preset file path and names

    Hi, I'm having this auto saving problem. The type of my instrument output is ''1-D array of cluster of two elements''. I tried to use ''Report Generation Toolkit", but it seems the data type doesn't match. Anybody got ideas about the data type conver