Solved

getting the form name

Posted on 2002-04-15
3
174 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
logging jar 1 106
jason format for rest webservices and sub resourcing 1 88
Apache server configuration 7 80
JavaScript parse form with colon separated values 2 74
Note: This is the third blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   We’ve been talki…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

896 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now