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

  • SEARCH
  • Home
  • 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 4338306
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:03:51+00:00 2026-05-21T11:03:51+00:00

I have the following scenario . There is a jsp (let’s call it user.jsp)

  • 0

I have the following scenario .

There is a jsp (let’s call it user.jsp) .

The user.jsp contains 2 buttons (Submit and Register). The two buttons are referring to entirely different actions (let us call it A and B).

Now when I click on Register button , since the same form is submitted , there are certain attributes in A which are not in B . Therefore I get an error saying , setter methods are not present .

how to solve this situation .

Please let me know if the question is not clear.

  • 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-21T11:03:52+00:00Added an answer on May 21, 2026 at 11:03 am

    You can always add dummy setters -or even manipulate the fields in javascript before submiting. But your implementation problem points to a conceptual-design problem. I find conceptually objectionable to send a form with same inputs field to two actions, specially if some of the fields only apply (make sense) for one of the actions.

    In general, it doesn’t seem right to me to have two submit buttons in a form pointing to different actions. The standard way is to make the different submits buttons in the same form point to different methods in the same action. The alternative, if the actions are really unrelated, is to make two different forms.

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

Sidebar

Related Questions

So lets say I have the following scenario. http://website.com:8080 and http://website.com:8080/demo Is there any
I have the following scenario: in activity A, when a user clicks a button,
I have the following scenario (in Java / Hibernate): I have two entity classes:
I have the following scenario: class Task { int id; Group group; User user;
I have the following scenario: The user will input an interval and/or single comma-separated
In a Windows Phone project I have the following scenario: The user types some
I have the following scenario: QProcess*p; // later p->start(); //later p->terminate(); // there might
Let's say I have the following scenario: <form action=/something.php method=GET>Click me</div> <script type=text/javascript><!-- $('form').submit(function(e)
I have the following scenario: there are a database that generates a new logTable
I have the following scenario: My page has a dropdown list that allows user

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.