File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 511
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
 
Similar Threads
how call javascript function from button in different frameset
change name on button
Not getting values
Problem retaining form field after submission
problem with struts1.1 please help me...