Solved

getting the form name

Posted on 2002-04-15
3
179 Views
Last Modified: 2010-04-01
How can I get the name of a form that posts to a JSP, or Servlet ?
Thanks.
0
Comment
Question by:simi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
pellep earned 25 total points
ID: 6942931
Short answer, you can't. The name of the form is not submitted in the HTTP protocol, regardless of wheather you do POST or GET. You'll have to add the name of the form as a hidden input field in the form.
0
 

Author Comment

by:simi
ID: 6943262
Thanks.
I thought of the solution with the hidden form.
However I was wondering if I am just creating a redundant variable.
Weird, why do they allow you to have a name attribute for the form, when you can't use it.
0
 
LVL 4

Expert Comment

by:pellep
ID: 6943284
Well, the name is useful if you intend to use javascript for any dynamic feature on your page.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
We take a look at some of the most common obstacles that IT teams run into as they work relentlessly to keep all the alarms and sirens from going off at once.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question