Ivan Polák wrote: > Dakujem za odpoved, jedna sa o odoslanie a spracovanie formulara, > method="POST", presne: > > <form id="mainRegistrationForm" action="/Registration" method="POST" > enctype="multipart/form-data">
No moment, ale to zcela meni situaci. Ten formular
ma enctype multipart/form-data, a tu neumi Servlet API
zpracovat na parametry. Cituji z Servlet API 2.4 Specification, strana 36:
4.4.1 When Parameters Are Available
The following are the conditions that must be met before post form data will
be populated to the parameter set:
1. The request is an HTTP or HTTPS request.
2. The HTTP method is POST.
3. The content type is application/x-www-form-urlencoded.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4. The servlet has made an initial call of any of the getParameter family of
methods
on the request object.
If the conditions are not met and the post form data is not included in the
parameter set, the post data must still be available to the servlet via the
request
object's input stream. If the conditions are met, post form data will no longer
be
available for reading directly from the request object's input stream.
Takze vubec nemuzete ocekavat, ze request.getParameter() vubec
neco vrati. Dost se divim, ze vam getParameter() vraci vubec
nejakou hodnotu, protoze jsem si to ted zkousel s TomCatem 5.5
a request.getParameter() mi vraci null.
Makub
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno Martin Kuba
Institute of Computer Science email: [EMAIL PROTECTED]
Masaryk University http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ mobil: +420-603-533775
--------------------------------------------------------------
smime.p7s
Description: S/MIME Cryptographic Signature
