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 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 form in a jsp file, which I have used to get
I have a JSP form which is made of <input type=file/> tag alone for
I have a .jsp file that receives a request and checks the request's parameters.
I have a JSP file which creates an Excel document. I want to dynamically
I have following piece of code in my jsp file which getSession information: <jsp:useBean
I have a jsp file which contain javascript functions at top of file. These
I have a form from which users can select 100s of files to upload
I have a JSP file Signup.jsp which submits to UserDetails servlet which inserts the
I have a table that is filled with data from a database. When you
I have index.jsp from which I get the parameters to servlet LoginServlet.java The servlet

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.