Ospravedlnujem sa, nenapisal som to jasne, problem bol vsade, aj pre GET aj
pre POST, ci tam multipart/form-data bolo alebo nebolo, len v tomto forme
som to zistil prvy-krat ze na produkcnom servery to nefunguje. Samozrejme ze
ak sa jedna o takyto formular je spracovavany cez

org.apache.commons.fileupload.*;


...
if(DiskFileUpload.isMultipartContent(request))
        {
            DiskFileUpload uploader = new DiskFileUpload(uploadFactory);
            uploader.setSizeMax(uploadSizeLimit);
            try
            {
                List items = uploader.parseRequest(request);
                for(Iterator iter = items.iterator(); iter.hasNext();)
                {
....

Ivan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Martin Kuba
Sent: Wednesday, October 03, 2007 1:19 PM
To: Java
Subject: Re: problem s diakritikou na tomcat 5.5.7

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
--------------------------------------------------------------


Odpovedet emailem