Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

history.back problem with firefox

Thread view: 
mohammed.naghman@gmail.com - 22 Feb 2007 22:18 GMT
Hi,

I have 2 submit buttons in a jsp page. One of them takes me to
page2.jsp and also passes the values enetered to page2.I have a link
in the page2 that does a history.back to come to the previous page to
make any chnages necessary. Now after making my changes, instead of
going to page2.jsp if I want to submit the page, Instead of submitting
the page it takes me to page2.jsp again.

This problem is only with firefox. It works fine with IE. Can anyone
help me on this?
Andrew Thompson - 22 Feb 2007 22:40 GMT
On Feb 23, 9:18 am, mohammed.nagh...@gmail.com wrote:
...
> I have 2 submit buttons in a jsp page.

Have you validated the HTML?

Andrew T.
mohammed.naghman@gmail.com - 25 Feb 2007 07:20 GMT
> On Feb 23, 9:18 am, mohammed.nagh...@gmail.com wrote:
> ...
[quoted text clipped - 4 lines]
>
> Andrew T.

Yes I have. I hope u mean the validation of the fields in the html
page. Correct me if I am wrong.
Andrew Thompson - 25 Feb 2007 07:41 GMT
On Feb 25, 6:20 pm, mohammed.nagh...@gmail.com wrote:

> > On Feb 23, 9:18 am, mohammed.nagh...@gmail.com wrote:
> > ...
>
> > > I have 2 submit buttons in a jsp page.
>
> > Have you validated the HTML?
..
> Yes I have. I hope u mean the validation of the fields in the html
> page. Correct me if I am wrong.

No.  I do *not* mean a validation (via JavaScript
or other means) of the *content* of the fields.

I mean, have you validated the HTML that is
produced by the JSP?

It is possible to validate HTML here..
<http://validator.w3.org/>

Note. If this is some 'local server' or
intranet that is not expeosed ot the
wider internet, you may need to save a
static version of the HTML to file before
it can be validated.

I suggest this, because Java programmers
have a habit of assuming 'any old rubbish'
they write is (valid) 'HTML', when it is
not valid HTML.

Andrew T.
mohammed.naghman@gmail.com - 26 Feb 2007 19:11 GMT
> On Feb 25, 6:20 pm, mohammed.nagh...@gmail.com wrote:
>
[quoted text clipped - 29 lines]
>
> Andrew T.

Oh yes, I have validates using the w3c validator. The page has no
errors.
mohammed.naghman@gmail.com - 26 Feb 2007 19:21 GMT
On Feb 26, 11:11 am, mohammed.nagh...@gmail.com wrote:

> > On Feb 25, 6:20 pm, mohammed.nagh...@gmail.com wrote:
>
[quoted text clipped - 34 lines]
>
> - Show quoted text -

And I have re-written my problem here:

I have Page1.jsp with 2 buttons. One button is used to navigate to
Page2.jsp and is a submit button. It submits the values enterd in
page1 to page2. This is done since some of the fields are common in
both pages and we do not want the user to re-enter the values if he
has already done so in page1.

The second button is again a submit button. But this one submits the
values of the fields entered in Page1.jsp and writes into the
database.

Now I use button1 and go to Page2.jsp, And I come back to page1.jsp
using a link that does a history.back(). I do this becoz I dont want
to enter anything in page2.jsp. So I come back to page1 and try to
submit the page using button2. Now instead of submitting the page and
writing to the databse, button2 behaves like button1 nad takes me to
page2.jsp again.

And this problem is only with firefox.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.