This is exactly what I was looking for.
Do you have a good reference for any and all request methods.

Thanks
Tony

-----Original Message-----
From: Chris Pratt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: Looking for a suggestion


How about using request.getParameterNames().  Another possibility is a
hidden field with the form names.
    (*Chris*).

----- Original Message -----
From: "Anthony Diodato" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 08, 2002 5:56 AM
Subject: [JSP-INTEREST] Looking for a suggestion


> Im creating a form in a jsp and naming the radio buttons on the fly.
> The form lists through 20 "resources" and each one has a radio button set
to
> either update it, or not. (YES, NO)
> The value for the radio buttons is YES or NO, but the name of the radio
> button is the id of the resource.
>
> My problem is when I take the results of the submitted form.
> I wanted to do something like this
>
>         if (FORM NAME.equals("NO")) {           // This is just here for
the
> hell of it, I cant figure out what to test in the IF
>                 expireTime = new SimpleDate("1-1-2000 00:00:00 000",
> "mm-dd-yyyy hh:mi:ss mil");
>                 eTime = expireTime.toDate();
>                 resource.setExpireTime(eTime);
>         } else {
>                 expireTime = new SimpleDate("7-31-2002 00:00:00 000",
> "mm-dd-yyyy hh:mi:ss mil");
>                 eTime = expireTime.toDate();
>                 resource.setExpireTime(eTime);
>         }
>
> In the IF, I cant do a request.getParameter("FORM_NAME") because I don't
> know the form name.
> How would you do this, or does someone have a better way
>
> Thanks
>
> Anthony Diodato
> Webmaster - IT
> Prophet 21, Inc.
> 19 West College Avenue
> Yardley, PA 19067
> 1-800-776-7438, ext. 4600
> Fax: 215-321-8014
> [EMAIL PROTECTED]
> http://www.p21.com/
> Prophet 21 -- Powering the Distribution Industry for the Digital Age
>
> For the latest press releases from Prophet 21 --
> http://www.p21.com/press/press.html
> *       2/12/2001 - Trading Partner Connect Offers
Enterprise-to-Enterprise
> (E2E) Commerce
> *       2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available
> *       2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim
> For the latest articles on Prophet 21
>
http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate.
> htm
> http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm
> http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm
>
>
>
>
> Visit our website at http://www.p21.com/visit
> The information in this e-mail is confidential and may contain legally
> privileged information.  It is intended solely for the person or entity to
> which it is addressed.  Access to this e-mail by anyone else is
> unauthorized. If you are not the intended recipient, any disclosure,
> copying, distribution, action taken, or action omitted to be taken in
> reliance on it, is prohibited and may be unlawful.  If you received this
> e-mail in error, please contact the sender and delete the material from
any
> computer.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


Visit our website at http://www.p21.com/visit
The information in this e-mail is confidential and may contain legally
privileged information.  It is intended solely for the person or entity to
which it is addressed.  Access to this e-mail by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution, action taken, or action omitted to be taken in
reliance on it, is prohibited and may be unlawful.  If you received this
e-mail in error, please contact the sender and delete the material from any
computer.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to