Configure Js request in Web.xml

Configure Js request in Web.xml

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>
View Answers

Ads









Related Tutorials/Questions & Answers:
Configure Js request in Web.xml
Configure Js request in Web.xml  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... file.Thats enough. for this purpose any thing i need to configure in web.xml
How to Configure Spring in web.xml file ?
How to Configure Spring in web.xml file ?  How to Configure Spring in web.xml file ?   Hi you need to map the DispatcherServlet in web.xml as <servlet> <servlet-name>dispatcherServlet<
Advertisements
web.xml
web.xml  what is web.xml file..? explain its types..?   The web.xml file is important file for j2ee application. this file is also called... this file to initiate the servltes for getting request and generating response
web.xml
web xml  which url address is given in web.xml?   When using prefixes in XML, a so-called namespace for the prefix must be defined. The namespace is defined by the xmlns attribute in the start tag of an element
how to get request url in node js
how to get request url in node js  Hi, I want to get the request url in Node js. how to get request url in node js? Thanks   Hi, Node... of request. how to get request url in node js? Here is the code: console.log
how to get request url in node js
how to get request url in node js  Hi, I want to get the request url in Node js. how to get request url in node js? Thanks   Hi, Node... of request. how to get request url in node js? Here is the code: console.log
Access web.xml init parameters
Access web.xml init parameters  How to access web.xml init parameters from java code
What are the elements in the deployment descriptor(web.xml)?
What are the elements in the deployment descriptor(web.xml)?  What do the following elements in the deployment descriptor(web.xml)are: ??.. ?.. ??? ?
how to configure the hibernate in netbean
how to configure the hibernate in netbean  how to configure the hibernate in netbean 6.5
Configure the configuration file
Configure the configuration file  How do I configure the configuration file
Assembling web.xml from fragments
This section contains detailed description on assembling web.xml from web fragments with an example
How will you configure Hibernate?
How will you configure Hibernate?  Hi, How will you configure Hibernate? Thanks
ModuleNotFoundError: No module named 'configure'
ModuleNotFoundError: No module named 'configure'  Hi, My Python... 'configure' How to remove the ModuleNotFoundError: No module named 'configure' error? Thanks   Hi, In your python environment you
loacation of errorpage in web.xml for 404 error
loacation of errorpage in web.xml for 404 error   The webpage cannot be found HTTP 404 Most likely causes: ?There might be a typing error in the address. ?If you clicked on a link, it may be out of date. What you
How to Configure pom.xml file in Maven ?
How to Configure pom.xml file in Maven ?  How to Configure pom.xml file in Maven
What are different environments to configure hibernate?
What are different environments to configure hibernate?  Hi, What are different environments to configure hibernate? Thanks
How to configure Spring using Annotation
How to configure Spring using Annotation  Hi, How to configure Spring using Annotation Thanks
ModuleNotFoundError: No module named 'aws-configure'
ModuleNotFoundError: No module named 'aws-configure'  Hi, My... 'aws-configure' How to remove the ModuleNotFoundError: No module named 'aws-configure' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'aws-configure'
ModuleNotFoundError: No module named 'aws-configure'  Hi, My... 'aws-configure' How to remove the ModuleNotFoundError: No module named 'aws-configure' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'configure-with-sudo'
ModuleNotFoundError: No module named 'configure-with-sudo'  Hi, My... named 'configure-with-sudo' How to remove the ModuleNotFoundError: No module named 'configure-with-sudo' error? Thanks   Hi
ModuleNotFoundError: No module named 'configure-with-sudo'
ModuleNotFoundError: No module named 'configure-with-sudo'  Hi, My... named 'configure-with-sudo' How to remove the ModuleNotFoundError: No module named 'configure-with-sudo' error? Thanks   Hi
ModuleNotFoundError: No module named 'configure-django'
ModuleNotFoundError: No module named 'configure-django'  Hi, My... named 'configure-django' How to remove the ModuleNotFoundError: No module named 'configure-django' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'configure-fork'
ModuleNotFoundError: No module named 'configure-fork'  Hi, My... named 'configure-fork' How to remove the ModuleNotFoundError: No module named 'configure-fork' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'configure-gpu'
ModuleNotFoundError: No module named 'configure-gpu'  Hi, My... 'configure-gpu' How to remove the ModuleNotFoundError: No module named 'configure-gpu' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'configure-with-sudo'
ModuleNotFoundError: No module named 'configure-with-sudo'  Hi, My... named 'configure-with-sudo' How to remove the ModuleNotFoundError: No module named 'configure-with-sudo' error? Thanks   Hi
ModuleNotFoundError: No module named 'ctypes_configure'
ModuleNotFoundError: No module named 'ctypes_configure'  Hi, My... named 'ctypes_configure' How to remove the ModuleNotFoundError: No module named 'ctypes_configure' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'ctypes_configure'
ModuleNotFoundError: No module named 'ctypes_configure'  Hi, My... named 'ctypes_configure' How to remove the ModuleNotFoundError: No module named 'ctypes_configure' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'django-configure'
ModuleNotFoundError: No module named 'django-configure'  Hi, My... named 'django-configure' How to remove the ModuleNotFoundError: No module named 'django-configure' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'gogeta-configure'
ModuleNotFoundError: No module named 'gogeta-configure'  Hi, My... named 'gogeta-configure' How to remove the ModuleNotFoundError: No module named 'gogeta-configure' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'gogeta-configure'
ModuleNotFoundError: No module named 'gogeta-configure'  Hi, My... named 'gogeta-configure' How to remove the ModuleNotFoundError: No module named 'gogeta-configure' error? Thanks   Hi, In your
How to use web.xml in Servlet 3.0
How to use web.xml in Servlet 3.0 In this tutorial you will learn how to use web.xml in Servlet 3.0. Here I am giving the simple example of a Servlet...); } } web.xml <?xml version="1.0" encoding="UTF-8"?> <web

Ads