The getParamater("Parametername") returns the whole
string ( all words in one field). But if u have used the paramater name for
more then one fields in HTML page and on servlet u want to get values of
all
the fields then u can use getParameterValues("Parametername"). The second
method returns a String array containing values of all the fields for a
single parameter name.
Ashish Parnami
> ----- Original Message -----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
API
> Technology. <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 20, 2000 1:55 PM
> Subject: how to get multiple words from a field in request object
>
>
> >
> > From: chief crazy bLanKeT <[EMAIL PROTECTED]>@JAVA.SUN.COM> on 12/20/2000
> > 12:25 AM PST
> >
> > Please respond to "A mailing list for discussion about Sun Microsystem's
> > Java Servlet API Technology." <[EMAIL PROTECTED]>
> >
> > To: [EMAIL PROTECTED]
> > cc:
> > Subject: how to get multiple words from a field in request object
> >
> >
> > Hi,
> >
> > I have a JSP page that sends some values thru a form.
> > One field in the form is entered 2 or more words (like
> > in an address box '1780 Morning Street'). I need to get
> > the whole string as one but request.getParameter(fieldName) returns me
> only
> > the first word in the field.
> >
> > What should I use to to get it as one complete string ?
> >
> > rgds
> > --hikmet
> >
> >
>
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html