Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6125169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:13:00+00:00 2026-05-23T16:13:00+00:00

Im using Struts2 and Hibernate, trying to create a simple form to edit an

  • 0

Im using Struts2 and Hibernate, trying to create a simple form to edit an object and all its children (one-to-many).

I’ve attached an image to show what im trying to do.

Does anyone have any idea/examples of how I can do this the easiest way? I just cannot understand how to create this kind of form. I’ve looked for answers for 2 days now, without getting anywhere.

I have been able to create the simple person-form and persisting it, and I have also been able to display a list of the pets in the form, but I have not come any closer to a solution as to how to create new pets and edit them.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:13:01+00:00Added an answer on May 23, 2026 at 4:13 pm

    The easiest way is probably to use ajax; this way adding/editing a pet can be persisted immediately and the owner can be persisted when submitting the form. The other solution would be to add all the information into the request when submitting the form and figuring out in your Action class what to do; it is feasible but will require some thinking and javascript (although also for the ajax solution you will require this).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to save a data in a simple form through Hibernate using struts
I am trying to build a login page using hibernate and struts2. My design
In a web application using struts2 ejb hibernate, is it possible to tell the
I am developing a web application using Struts 2.1.2 and Hibernate 3.2.6.GA. I have
I'm writing a website in JSP using Struts and Hibernate. I'm looking for a
While using Struts2, I am using several annotations to do my validations inside the
Well.. we've developed a j2ee application using struts2 ajax capabilities. We find that the
I am using hibernate 3.2 with struts 1.2 framework here is the details of
I am trying to generate struts 2 modular archetype using maven but always getting
I am using hibernate, spring, struts framework for my application. In my application, each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.