I have a jsp page called display.jsp ,where i have a hyperlink which redirects to a HTML page called check.html.
[B]display.jsp
[code]
%@ page language=”java” contentType=”text/html; charset=ISO-8859-1″
pageEncoding=”ISO-8859-1″%>
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″>
<title>Insert title here</title>
</head>
<body>
<% String FromAdd= “delhi”;
session.setAttribute(“from” , FromAdd);
String ToAdd = “agra”;
session.setAttribute(“to” , ToAdd);
%>
<a href=”check.html” >Click here </a>
</body>
</html>
……………………………………………………………
check.html
[code]
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″>
<title>Insert title here</title>
<script type=”text/javascript”>
function intialize()
{
[COLOR=”Red”]here temme hw i can retrive the values of FromAdd and ToAdd form abv page and display them [/COLOR]
}
</script>
</head>
<body onload=”initialize()”>
</body>
</html>
so what i want to know is how i can retrive the values of FromAdd and ToAdd from check.html’s javascript funt ..i.e intialize();