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"
value="1160166">
<!--<table cellspacing="2" cellpadding="2">
<tr>
<td><input type="radio" name="carrier.serverType"
value="web" checked="checked">WEB API</td>
<td></td>
<td> </td>
</tr>
<tr>
<td><input type="radio" name="carrier.serverType"
value="server">Direct Server</td>
<td><input type="text"
name="carrier.serverMeterNumber" value=""></td>
<td> </td>
</tr>
</table> -->
</td>
<td><input name="button2" type="button"
class="coloredButtons"
onclick="document.customerForm.method.value='get_meter_number';document.customerForm.submit();"
value="Get New Meter Number"/></td>
</tr>
</table></td>
</tr>
<tr>
<td height="35" colspan="2" align="right" valign="middle"><input
type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel"
onclick="bCancel=true;" class="coloredButtons">
<input type="submit" value="Save"
onclick="this.form.method.value='save';this.form.submit();"
class="coloredButtons">
<input type="submit" value="Basic Info."
onclick="this.form.method.value='stage1';this.form.submit();"
class="coloredButtons"> </td>
</tr>
</table>
<input type="hidden" name="web.id" value="">
<input type="hidden" name="carrier.id" value="27">
<input type="hidden" name="carrier.carrierId" value="1">
</form></td>
<td width="9" height="100%"
background="images/pgRightBG.png"><img src="images/pgRightBG.png"
width="9" height="100%" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="11"><img src="images/pgBLeftCorner.png" width="11"
height="9" /></td>
<td><img src="images/pgBottomBG.png" width="100%" height="9"
/></td>
<td width="9"><img src="images/pgRBottomCorner.png" width="9"
height="9" /></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Frank W. Zammetti wrote:
Could you post the RENDERED HTML? Sometimes something sticks out
there that isn't apparent in the source.
Frank
Rizwan Merchant wrote:
ok..!! more on this..I was playing around with the page that was
giving me the problem...(I have attached the entire page below).
When I comment out the rows that define an html:file element
everything seems to work fine...going back and forth between the 2
pages works and the data in the session form is retained. Note that
we are using enctype attribute in the html:form ... although I did
not comment that out, just the html:file elements
So basically it seems html:file is the problem, and that too..only
with IE..other browsers are ok....any further ideas???
<%@ include file="/taglibs.jsp" %>
<html:form action="/CustomerManager" enctype="multipart/form-data">
<html:hidden property="customer.id"/>
<input type="hidden" name="method" value="save"/>
<c:if test="${not empty customerForm.map.customer.id}">
<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><html:file styleClass="coloredButtons"
property="web.addressBookFile"/>
<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><html:file styleClass="coloredButtons"
property="web.productListFile"/>
<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><html:text property="carrier.account"/></td>
</tr-->
<tr>
<td class="form">Meter #:</td>
<td><html:text property="carrier.webMeterNumber"/>
<!--<table cellspacing="2" cellpadding="2">
<tr>
<td><html:radio property="carrier.serverType"
value="web"/>WEB API</td>
<td></td>
<td> </td>
</tr>
<tr>
<td><html:radio property="carrier.serverType"
value="server"/>Direct Server</td>
<td><html:text
property="carrier.serverMeterNumber"/></td>
<td> </td> </tr>
</table> -->
</td>
<td><input name="button2" type="button"
class="coloredButtons"
onclick="document.customerForm.method.value='get_meter_number';document.customerForm.submit();"
value="Get New Meter Number"/></td>
</tr>
</table></td>
</tr>
<tr>
<td height="35" colspan="2" align="right"
valign="middle"><html:cancel styleClass="coloredButtons" />
<html:submit styleClass="coloredButtons"
onclick="this.form.method.value='save';this.form.submit();">Save</html:submit>
<html:submit styleClass="coloredButtons"
onclick="this.form.method.value='stage1';this.form.submit();">Basic
Info.</html:submit> </td>
</tr>
</table>
</c:if>
<html:hidden property="web.id"/>
<html:hidden property="carrier.id"/>
<html:hidden property="carrier.carrierId"/>
</html:form>
Frank W. Zammetti wrote:
Actually, I believe GET is the default:
http://www.htmlhelp.com/reference/html40/forms/form.html
Are you using Struts tags? I don't remember if you said... they may
render a method attribute that overrides this... do a view source
and see what's there. If nothing, then it's probably a GET... of
course, FireBug, or similar browser tools will answer it for certain :)
Frank
Rizwan Merchant wrote:
Thanks Bart,
silly question..but where do I determine if post is being used or
get? My <html:form> element does not specify a method attribute
(which would determine "post" or "get" as far as i know)..so
wouldnt it default to post?
its probably 4.30 in the evening there...so no excuses abt the time
this time ;) jk...
Bart Busschots wrote:
OK, that unfortunately makes this all a bit more odd. I do this
kind of thing a lot and I don't believe I've run into this problem
yet. Mind you I'm also certain I haven't used a file upload in
this context before so perhaps you're on to something with your
suspicion that that could have something to do with it. Have you
tried setting both forms with the same enctype even though it's
obviously not needed on one? Also, are both forms being submitted
with post at all times, even when going "back"? Someone mentioned
previously that IE can be a bit over-zealous when it comes to
caching if you use get so it would be no harm to rule that problem
out.
Not sure that's a lot of help but it's the best I can come up with
at 2:20 AM!
Bart.
Rizwan Merchant wrote:
Navigation between the 2 pages is done by submitting a request to
the server...there are 2 methods in the action ...stage1() and
stage2() which are invoked to move back and forth. I am pretty
sure that the form is in session scope. Like I mentioned before,
this works with FF and Netscape..having issues with IE.
One thing, on the second page, we allow the user to upload files
as part of the customer set up process..the form tag looks like
<html:form action="/CustomerManager" enctype="multipart/form-data">
Could the enctype attribute be a problem??
Please let me know what other information I can provide to help
you understand the problem better..appreciate your help.
Bart Busschots wrote:
Hi,
When you say "go back" what exactly do you mean? HOW are you
going back? Are you relying on the browser's back button? If yes
then that's your problem straight off. Don't do that. Use Struts
forms for holding your Data and the struts JSP tags for creating
the form. Make sure the form is in session scope and get back to
the page with a call to the server and all should be well. If
that's what you are doing and it's not working then something
funnier is a foot and you'll need to give us a lot more details
if we're to have any chance at all of helping.
Bart.
Rizwan Merchant wrote:
We have a wizard style customer set up process that is spread
out over 2 pages. The scope of the form is session (action
definition is shown below)
In firefox and netscape, when we fill out some data on page 1
(stage1) and then move to page2 (stage2), the data in page 1 is
retained (this can be confirmed by going back to page 1 before
we even save the info).
But in IE, when I go from page 1 to page 2, and then back to
page 1..all the data previously entered is lost.
Not sure why IE is behaving this way. FF and Netscape seem to
be fine...
Please help..
Thanks,
-Riz.
<action path="/CustomerManager"
type="org.springframework.web.struts.DelegatingActionProxy"
parameter="method"
scope="session"
name="customerForm"
validate="false"
>
<forward name="list" path="/customerManagerList.jsp"/>
<forward name="search"
path="/customerManagerSearch.jsp"/>
<forward name="stage1"
path="/customerManagerForm.jsp"/>
<forward name="stage2"
path="/customerManagerForm2.jsp"/>
<forward name="user"
path="/UserManager.do?method=edit"/>
<forward name="order"
path="/OrderManager.do?method=new_order"/>
<forward name="shipping_log"
path="/OrderManager.do?method=search"/>
</action>
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]