I have a trubles with upload files:
If the HTML-form with attribute enctype="multipart/form-data" has additional text fields, besides a field "<input type="file"/>", values (national characters) of these fields come in the broken kind.
;(
For example:
<html> <head> <base href="http://localhost/kka/"> <link href="css/kka.css" type="text/css" rel="stylesheet"> <title>Uniform Register</title> </head> <body>
<table> <form method="post" action="http://localhost/kka/portal" enctype="multipart/form-data">
<INPUT TYPE="hidden" NAME="js_peid" VALUE="P-fd45ded0f7-10004"/> <input type="hidden" name="currPage" value="1"/>
<tr> <td>Description:</td> <-- ----------------------------- --> <-- --> <-- THIS FIELD A BROKEN in request --> <-- --> <-- --> <td>*<input type="text" name="title" size="100" maxlength="255"/>*</td> <-- --> <-- ----------------------------- --> </tr> <tr> <td>Specify a file for loading ( <=100 Kbyte):</td>
<td><input type="file" name="content_file"/></td> </tr> <tr> <td colspan="2" > <input type="submit" name="eventSubmit_doAdd" value="Add"/> </td> </tr> </form> </table>
</body>
</html>
CODE in xxxAction.java:
...
ParameterParser parameters = rundata.getParameters();
String title = parameters.getString("title",null); <-- BROKEN National characters 8(((
--
Vladimir
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]