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.