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









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
web.xml - XML
web.xml  Can you please help me to create web.xml I tried to create like this in editplus.. and enter ctrl + B It shows some error.... Is there any thing wrong with this web.xml otherwise please help me... Thanks
web.xml - servlet - Java Beginners
web.xml - servlet  Hi All, In my web application, I have one... application. I was suggested to use tag in the web.xml file to run that servlet... a servlet file when the server starts instead of waiting for the first request
Access web.xml init parameters
Access web.xml init parameters  How to access web.xml init parameters from java code
regarding web.xml - JSP-Servlet
regarding web.xml  I am the java beginner, please send the web.xml code and how to run a servlet for apache5.0.... my problem is in tomcat manager am getting the message 'fail' in web.xml  Hello,Please check the tomcat
Configure the configuration file
Configure the configuration file  How do I configure the configuration file
how to configure the hibernate in netbean
how to configure the hibernate in netbean  how to configure the hibernate in netbean 6.5
web.xml deployment descriptor - JSP-Servlet
web.xml deployment descriptor  Pls guide about how to write the web.xml file to deploy our web applications that uses JSP, by using tomcat... ... request, HttpServletResponse response) throws IOException, ServletException
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 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
Assembling web.xml from fragments
This section contains detailed description on assembling web.xml from web fragments with an example
configure mail sever
configure mail sever  ok James is a best server for javamail but how to configure and run program if you have any program pls send me at [email protected]   Hi Friend, Read HereADS_TO_REPLACE_1 Thanks
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
configure mail sever
configure mail sever  which is the best server for java mail?   Hi, James is the best mail server in Java. You can download the James for free. Read more at Apache Mail server.ADS_TO_REPLACE_1 Thanks
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 '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 '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 '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 '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-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 '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
configure Datasource in enterprise application - EJB
configure Datasource in enterprise application  I wanted to know that how can configure the DataSource in the Enterprise Application.Thanks Rohit Chauhan  which type of IDE u r using???If NetBeans ..Then i have
Why <servlet-name> use in web.xml - JSP-Servlet
Why <servlet-name> use in web.xml  WHY DO WE USE THE <SERVLET-NAME>TAG IN WEB.XML APPLCATION   WHY DO WE USE THE <SERVLET-NAME>TAG IN WEB.XML APPLCATION AND HOW A simple program of using <servlet
Configure Strtus 2.0 in Netbeans5.5 - Struts
Configure Strtus 2.0 in Netbeans5.5  Hi All, I am using netbeans... the Information & steps to configure Struts2.0 on Net beans and develop Struts 2.0 applications. Already I have downloaded struts 2.0 jar's zip from http
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...; + id); } } web.xml <?xml version="1.0" encoding="UTF-8"
How to configure Maven, MySQL, Eclipse IDE and hibernate?
How to configure Maven, MySQL, Eclipse IDE and hibernate?  How to configure Maven, MySQL, Eclipse IDE and hibernate
Configure resource and security-role references
Configure resource and security-role...; Configure resource and security-role references... into servers  Home  Create and configure WebSphere test
How to send the request and get the request?
How to send the request and get the request?  how to send a request to a JSP file in another domain in the same server and get the request done i.e how to include JSP file of one domain to another doamin JSP within in the same
ModuleNotFoundError: No module named 'azure-cli-configure'
ModuleNotFoundError: No module named 'azure-cli-configure'  Hi, My... named 'azure-cli-configure' How to remove the ModuleNotFoundError: No module named 'azure-cli-configure' error? Thanks   Hi
ModuleNotFoundError: No module named 'opal-azure-cli-configure'
ModuleNotFoundError: No module named 'opal-azure-cli-configure'  Hi...: No module named 'opal-azure-cli-configure' How to remove the ModuleNotFoundError: No module named 'opal-azure-cli-configure' error? Thanks  
ModuleNotFoundError: No module named 'azure-cli-configure'
ModuleNotFoundError: No module named 'azure-cli-configure'  Hi, My... named 'azure-cli-configure' How to remove the ModuleNotFoundError: No module named 'azure-cli-configure' error? Thanks   Hi
ModuleNotFoundError: No module named 'datasette-configure-asgi'
ModuleNotFoundError: No module named 'datasette-configure-asgi'  Hi...: No module named 'datasette-configure-asgi' How to remove the ModuleNotFoundError: No module named 'datasette-configure-asgi' error? Thanks  
ModuleNotFoundError: No module named 'datasette-configure-fts'
ModuleNotFoundError: No module named 'datasette-configure-fts'  Hi...: No module named 'datasette-configure-fts' How to remove the ModuleNotFoundError: No module named 'datasette-configure-fts' error? Thanks   
ModuleNotFoundError: No module named 'dev-pipeline-configure'
ModuleNotFoundError: No module named 'dev-pipeline-configure'  Hi...: No module named 'dev-pipeline-configure' How to remove the ModuleNotFoundError: No module named 'dev-pipeline-configure' error? Thanks   Hi
request this program
request this program  if three text box value in my program i want to check the three input boxes values and display greatest two values

Ads