aspose file tools*
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
Author

Getting form name in request

Anandhakrishnan Venkataramanan
Greenhorn

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: 514
Hi,
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.

regds,
Amit
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting form name in request