Results 1 to 2 of 2
  1. #1
    sumanth35 is offline Member
    Join Date
    Feb 2012
    Posts
    1
    Rep Power
    0

    Default Old Form Bean data VS New Form Bean Data

    In my application we use Struts 1.2, Hibernate 3 , Struts Form bean is used for populating and displaying data to the JSP to and fro.

    The application has a Feature which is editing of record retrieved from a database. So when a user clicks the edit button on a JSP page a database query is made and data is populated in a formBean and displayed onto to the JSP.

    So suppose a user edits some data in the form which has about 30 fields And then Submits how would I get to know the difference in old form bean object and the new edited form bean object??

    As the user can edit any field it might 1 field or 20 fields. How would I come to know which field is edited in the form??

    Please can somebody give me idea??

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default Re: Old Form Bean data VS New Form Bean Data

    Why do you need to know?
    Since you're using Hibernate then Hibernate will figure out which fields have been changed.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 8
    Last Post: 10-03-2010, 09:45 AM
  2. Dynamic fields in form using Form Bean
    By janu.c in forum Java Software
    Replies: 1
    Last Post: 09-23-2009, 04:26 AM
  3. Replies: 10
    Last Post: 08-12-2009, 04:02 PM
  4. enctype=multipart/form-data with form data in struts
    By vk_satheesh in forum New To Java
    Replies: 0
    Last Post: 09-19-2008, 12:48 PM
  5. Struts Form Bean with property
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-27-2007, 10:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •