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 3238766
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:53:31+00:00 2026-05-17T17:53:31+00:00

I have a jsp file in which I have a form. It shows data

  • 0

I have a jsp file in which I have a form. It shows data about an “account” data structure we have. There’s a button to remove the data from that data structure.

<form action="removeThisData.html" method="post">
  ... blah blah blah ...
  <input type="submit" value="Remove"/>
</form>

Now, there’s a component that I want to be editable. Basically, I want that third blah to be turned into a date. Here’s what I wish I could do.

<form action="removeThisData.html" method="post">
  ... blah blah blah ...
  <input type="submit" value="Change blah to date"/>
  <input type="submit" value="Remove"/>
</form>

Unfortunately, that button just acts upon the form action, which invokes the functionality mapped to “removeThisData.html”.

How can I get two different behaviors from the same form? Is the invocation of multiple actions even possible within the same form? If it is not, is there a way to preserve all the information within a single scope or do I have to repeat the data/information in two different forms?

Thanks!

  • 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-17T17:53:31+00:00Added an answer on May 17, 2026 at 5:53 pm

    You could rename removeThisData.html to, say, "manageThisData.html“. You can examine the "value" of the submit button on the server-side and perform suitable action, based on the value, which would be one of “Remove” or “Change blah to date“.

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

Sidebar

Related Questions

I have a JSP form which is made of <input type=file/> tag alone for
I have a JSP that is using Spring:form tags to bind controls to a
I have a JSP which attaches a XSL to an XML document pulled from
I have a JSP page that needs to accept some info into a form,
I want to ask some questions about the JSP and JSON file. I have
For simplicity, i have the following file named test.jsp: <script language=javascript> alert(a$b.replace(/\$/g,k)); </script> I
Right now I have a JSP page that allows to sort some items, when
I'm running tomcat and have some jsp pages that display a subset of a
i have coded a header file which contains a input textbox for search.this header
I have a JSF/RichFaces setup with an index.jsp which a4j:include s another piece of

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.