Hi all,
I have 1 basic doubt,suppose i have 2 jsp,1 servlet,1 web.xml file.i need to redirect 1 page via servlet with help of web.xml file.Here just i need to redirect to mainCtrl.java file.Thats enough. for this purpose any thing i need to configure in web.xml .If it's Explain how do i it.(using apache tomcat)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
function clickMe() {
window.location.href="../controller/mainCtrl.jav";
}
</script>
</head>
<body>
<table>
<tr>
<td><input type="button" onclick="clickMe()"/></td>
</tr>
</table>
</body>
</html>