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]
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]