aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Problem with History object Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Problem with History object" Watch "Problem with History object" New topic
Author

Problem with History object

Kishore Shewani
Greenhorn

Joined: Jan 23, 2004
Posts: 14
I 've got two jsp's and a controller servlet.
On moving from jsp1 to jsp2 via controller servlet:
jsp1 --> Servlet --> jsp2
In jsp2 when i try to access history object of javascript
( like alert (history.current) ) it gives undefined.
Any known reasons ?......


Toil and see your dreams coming true. <br />:-)
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50677

Moving to the HTML/Javascript forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
It is a Netscape only object
if you want the current page URL then you need to use
docuent.location.href
Eric
 
 
subject: Problem with History object
 
Threads others viewed
How does ActionAervlet find the action class ?
how to transfer Object or request between jsp??help??
file upload
sendRedirect Vs requestdispatcher.forward
MVC Achitecture
developer file tools