> Well I'll be retrieving many different parameters, as my servlet generates
> new html forms with different fields, so I don't want to write lines and
> lines of getParameter()...however the previous suggestion about using it
> once just to get the hidden field first will work as that's the only field
> that must be "ordered". I'll then use my enumerator for the rest. Which
> makes me think of something else...once a parameter has been "got" - what
> happens to it? I don't want to end up getting a parameter twice if I do an
> ordinary getParameter and then an enumeration for the others...
>
> Any thoughts folks??

That is why you should use a Parameter wrapper class like this one...

<http://www.working-dogs.com/dash/cvsweb/index.cgi/dash/com/workingdogs/dash
/util/ParameterParser.java?rev=1.10&content-type=text/x-cvsweb-markup>

this class will parse GET/POST/PATH_INFO data. makes it really easy to work
with Parameters because it also allows you to get them and then cast them to
various objects like int, double, etc.

You will also need this helper class to decode the URLEncoded data...

<http://www.working-dogs.com/dash/cvsweb/index.cgi/dash/org/apache/jserv/JSe
rvUtils.java?rev=1.3&content-type=text/x-cvsweb-markup>

I hope that helps...

-jon

___________________________________________________________________________
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

Reply via email to