Solved

getting the form name

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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Display current date,month,and year to JTextField 3 63
Help with LDAp login using jsp 6 118
AlarmClock Challenge 35 156
Looking for some programs to resell or buy source codes 1 78
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
Read  the original post  on Monitis Blog. Hi.  My name is Erik Dietrich, and this is the first time I’ve posted on the Monitis blog.  By way of introduction, I thought it would make sense to talk about my initial experience with Monitis.   Befo…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 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