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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:28:16+00:00 2026-05-22T03:28:16+00:00

I wonder if anyone can advise? I have a JSP which contains two forms,

  • 0

I wonder if anyone can advise? I have a JSP which contains two forms, both of which are mapped to the same servlet on the server.

Everything seems fine although when I submit one form, a necessary piece of data entered on the other form is not being submitted at the same time.

The first form is used to add or delete the address of an RSS feed. As there may be several addresses on the page, a table is used to store them. Each cell of the table contains a form like this for deletion:

<form action = "<c:url value = '/deleteRSSFeed?rssFeedURL=${rssFeedURL}' />" method = "post">                           
<input type = "image" src = "${imageFileURL}myApp_rightArrow.png" />                            
<input name = "writeWordcloud" type = "hidden" value = "true" />
</form>

And there is another form for adding a feed.

The situation is that upon submission of either of these forms, a wordcloud must be redrawn on the page. But the wordcloud’s settings are contained in the other form.

As it not possible for me to merge the forms, can anyone tell me if I can share data betwen forms in HTML? Or better yet, is it possible to submit one form, and have this action submit the second form?

At this point, it is not practical for me to have the forms served by different servlets.

Thanks

Mr Morgan

  • 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-22T03:28:16+00:00Added an answer on May 22, 2026 at 3:28 am

    By using Javascript (or better, jQuery), you can have hidden fields in one form get the other form’s fields values before submitting.

    Update

    This fiddle shows the code you need: http://jsfiddle.net/MqsK8/1/

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

Sidebar

Related Questions

wonder if anyone can help; I have an a two dimensional array which I
I wonder if anyone can advise: I have a scenario where a scheduled job
I wonder if anyone can advise on a Java webapp question? I have a
I wonder if anyone can advise. I have written a .NET 4 WCF service
I wonder if anyone can help with the following. I have integrated both iAds
I wonder if anyone can help I have a simple SQL Query which was
I wonder if anyone can help - I have this error showing recently when
I have a bit of a pickle here and wonder if anyone can give
I wonder if anyone else is facing the same issue. I have a UITextView
I have a VC++ Win32 DLL project. I wonder if anyone can help me

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.