File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Getting form name in request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Getting form name in request" Watch "Getting form name in request" New topic

Getting form name in request

Anandhakrishnan Venkataramanan

Joined: Feb 11, 2011
Posts: 2

I would like to get the name of the form used to post parameters from a Java HTTPServletRequest object. Is this possible. I don't see any method that looks like it will return it to me.
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 544
You can add a hidden field that has the same value as form name.
You might have already considered this but just trying to put my thoughts here.

I agree. Here's the link:
subject: Getting form name in request
It's not a secret anymore!