please tell me more about Web.xml, what i intend to do is there are 2 jsp pages , a.jsp and b.jsp . suppose any user tries to query b.jsp it should automatically redirected to a.jsp!!! is there a way to do this in web.xml file
SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
In first JSP page at begining include following code... <jsp:forward page="URL for JSP2"> <jsp aram name="paramname" value="paramvalue"> </jsp> Second line is required only if u have any parameters to send... Rgds Manohar
no i think u did not yet understand my question!!! what i want is if a user queries b.jsp in the location bar of browser then he should be automatically taken to a.jsp thats what i need.
SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
Add following script at begining of b.jsp <script type=text/javascript> function doIt() { if (navigator.appName.indexOf("Netscape") != -1) window.location = "URL for JSPa"; if (navigator.appName.indexOf("Microsoft") != -1) window.location = "URL for JSPa"; else{ document.location = "URL for JSPa"; } } onload=doIt; </script>