• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

back-button generated by servlet doesn't work

 
Jan Volkmann
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
in order to learn something about servlets I wrote a simple one which merely selects entries from a remote database (method=post, only doPost() implemented). It works fine and creates a new page with all results displayed. The only trouble is the back-button which is created by the servlet on the results-page:
- the browser's back-button works just fine.
- the generated back-button works within jBuilder but not with the normal browser.
- if the mouse-pointer is above the generated button, the correct url is displayed in the status bar. If I push the button, however, nothing happens (i.e. no error, no success).
- a refresh on the generated results-page produces a warning (something like: page cannot be refreshed unless information is sent again)
strange, innit?
any hints?
I searched this site for similar problems but couldn't find anything. Hints on that are welcome, too.
so long,
Jan
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the code for the button and its hyperlink?
What browser are you using?
Are you triggering the link via an "onClick()" JavaScript event or not?
"Inquiring minds want to know..."
 
Jan Volkmann
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tony,
thanks for answering. I figured it out. Now look at this mess:
1. a normal hyperlink works fine anyway
2. a button created with (no JavaScript implemented):

works with jBuilder4 but not with IE5 and is not displayed at all in NCommunicator4.6
3. a button created with (using JavaScript):

does NOT work with jBuilder4 but with IE5 and (yet again) is not displayed in NC4.6
That's strange, 'cos Netscape's Browsers should be able to interpret a simple JavaScript statement since v2.0 onwards. Maybe my settings are wrong (although I'd think JavaScript should be activated by default).
Anyway...
This is rather a HTML/JavaScript kind of problem and since it is not related to pure Java you should remove the whole topic.

regards,
Jan
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jan:
Part of the problem is that Netscape does not render an <INPUT> element if it is not enclosed in a <FORM>
IE does.
The best book on HTML IMHO is Dynamic Html : The Definitive Reference:
http://www.amazon.com/exec/obidos/ASIN/1565924940/qid%3D981829779/104-8414896-9559954
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic