Frank Z is correct
check out
<input type="file" id="uploaded_file" name="uploaded_file" size="50" />
example at
http://validator.w3.org/file-upload.html
M-
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "Rizwan Merchant" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Sunday, May 28, 2006 7:04 PM
Subject: Re: Session form IE problem
I tried your suggestion and put a <input type="file" name"myfile"/>
instead of the <html:file> tag...still having the same problem. So we know
its not the struts tag, but the html:file element and the
multipart/form-data encoding thats the problem..
any further suggestions? I am out of ideas on this one now!!
Frank W. Zammetti wrote:
I didn't see anything unusual in the rendered HTML... I didn't really
expect to, but you never know.
Like Paul, I too have been burned plenty of times by IE settings or
simply clearing cache, etc... to be fair, I've been burned quite a few
times by FF doing similar things, like when you clear the cache and it
doesn't actually clear it until you restart for instance... so you may
well find that's the problem.
However, you say removing the <html:file> tag resolves the issue... since
I doubt retaining the value of that field matters, and I'm not even sure
that has meaning in the case of a file input, how about simply putting
the HTML there yourself rather than using <html:file> and see if that
resolves the issue... at least then you'd narrow it down a little more,
either the Struts tag has a problem or the presence of an input "file"
element is.
Frank
Paul Benedict wrote:
Do you have auto complete turned on? Make sure you don't.
Also for good measure, clear out any form field data in your browser
through IE preferences. I've seen something simlar happen before;
this is most likely a browser setting issue.
--- Rizwan Merchant <[EMAIL PROTECTED]> wrote:
Rendered HTML is attached below. I did find a couple of posts on the
Struts mailing list, just trying to figure out if i am having the same
problem as mentioned in these posts..
http://marc.theaimsgroup.com/?l=struts-user&m=113102415703809&w=2
http://issues.apache.org/bugzilla/show_bug.cgi?id=17583
Thanks again..
-------------------------------------------------------------------------------------------------------
<html>
<head>
<!-- <link href="/style.css" type="text/css" rel="stylesheet"/> -->
<script type='text/javascript'
src='/scripts/commonScripts.js'></script>
<script type="text/javascript"
src="/scripts/jsCalendar/calendar.js"></script>
<script type="text/javascript"
src="/scripts/jsCalendar/lang/calendar-en.js"></script>
<script type="text/javascript"
src="/scripts/jsCalendar/calendar-setup.js"></script>
<link rel="stylesheet" type="text/css"
href="/scripts/jsCalendar/skins/aqua/theme.css">
<link rel="stylesheet" type="text/css" href="/scripts/cww.css">
<link rel="stylesheet" type="text/css" href="/scripts/tabs.css">
</head>
<body onLoad="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" height="46" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="11"><img src="images/navTopLeft.png" width="11"
height="46" /></td>
<td nowrap="nowrap" class="bg" width="100%"><div id="header">
<ul style="display:inline;">
<li>
<a
href="/OrderManager.do?method=search">TRACK</a>
</li>
<li>
<a href="/News.do">NEWS</a>
</li>
<li id="current">
<a href="/UserManager.do"
onmouseover="submenus('sub_administration');">ADMIN</a>
</li>
<li>
<a href="/Manifest.do">MANIFEST</a>
</li>
</ul>
</div></td>
<td width="122"><img src="images/navCurve.png" width="122"
height="46" /></td>
<td width="74" align="center" valign="bottom"
background="images/navContentBG.gif"><a href="logout.jsp">Logout</a>
</td>
<td align="right" width="77"><img src="images/logoTop.png"
width="77" height="46" /></td>
<td width="9"><img src="images/navRight.png" width="9" height="46"
/></td>
</tr>
<tr>
<td width="11"><img src="images/pgLeftBG.png" width="11"
height="100%" /></td>
<td align="left" valign="middle" nowrap="nowrap"
colspan="3"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/secLvlLeft.gif" width="8"
height="25" /></td>
<td valign="middle" background="images/secLvlBG.gif"
nowrap="nowrap" colspan="3"> <a href="/UserManager.do"
class="secondLevel">User Management</a> <img src="images/divider.gif"
width="8" height="12" hspace="3" />
<a href="/CustomerManager.do"
class="secondLevel">Customer Management</a> <img
src="images/divider.gif" width="8" height="12" hspace="3" /> <a
href="/CustomerMarkup.do?id=0" class="secondLevel">Default Markups</a>
<img src="images/divider.gif" width="8" height="12" hspace="3" /> <a
href="/FuelSurcharge.do?id=0" class="secondLevel">Fuel Surcharges</a>
</td>
<td><img src="images/secLvlRight.gif" width="7"
height="25" /></td>
</tr>
</table></td>
<td align="right" width="77"><img src="images/logoBottom.png"
width="77" height="41" /></td>
<td width="9"><img src="images/pgRightBG.png" width="9"
height="100%" /></td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" height="100%" align="left" valign="top"><table
width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="11" background="images/pgLeftBG.png"><img
src="images/pgLeftBG.png" width="11" height="100%" /></td>
<td align="left" valign="top">
<div class="error">
</div> <div class="message"> </div>
<form name="customerForm" method="post"
action="/CustomerManager.do" enctype="multipart/form-data">
<input type="hidden" name="customer.id" value="11">
<input type="hidden" name="method" value="save"/>
<p id="title" >Additional Customer Information</p>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td valign="top"><table border="0" cellpadding="3"
cellspacing="0">
<tr>
<td colspan="2"><strong>Address Book</strong> </td>
</tr>
<tr>
<td>Upload</td>
<td><input type="file" name="web.addressBookFile"
value="" class="coloredButtons">
<input name="button" type="button"
class="coloredButtons"
onclick="this.form.method.value='save_address_book';this.form.submit();"
value="save file"/></td>
</tr>
<tr>
<td height="70" colspan="2" valign="top"
nowrap="nowrap">For Address Book template click here <a
href="#">link</a> </td>
</tr>
<tr>
<td colspan="2"><strong>Product List</strong> </td>
</tr>
<tr>
<td>Upload</td>
<td><input type="file" name="web.productListFile"
value="" class="coloredButtons">
<input name="button" type="button"
class="coloredButtons"
onclick="this.form.method.value='save_product_list';this.form.submit();"
value="save file" /></td>
</tr>
<tr>
<td colspan="2">For Product List template click here <a
href="#">link</a></td>
</tr>
</table>
<br />
<br />
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td colspan="3"><strong>FedEx Account
Information</strong> </td>
</tr>
<!--tr>
<td class="form">Account #:</td>
<td><input type="text" name="carrier.account" value=""></td>
</tr-->
<tr>
<td class="form">Meter #:</td>
<td><input type="text" name="carrier.webMeterNumber"
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]