Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet Configure Js request in Web.xml

Have Programming Question? Ask it here!
 
 
 


Murugadoss
Configure Js request in Web.xml
0 Answer(s)      10 months ago
Posted in : JSP-Servlet


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>

Advertisement
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
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
EXT JS
EXT JS   i want to create a grid in extjs to display data from mysql and if i want to edit the data i must update through extjs only and must update in mysql database. please help me with sample code. thank you
Lightbox JS
Lightbox JS/font>       Lightbox JS is a simple, unobtrusive script used to overlay images on the current page. It`s a snap to setup and works on all modern browsers. Read full
xls to js using javascript
xls to js using javascript  ![how can we convert a xls file in js file using javascript][1
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
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
js,,mysql - JSP-Servlet
js,,mysql  Hi, I want a jsp code for editing,deleting data retrieved from from the mysql database and displayed in a html page .Can anybody provide me a code for including edit and delete options with the following code
Ext Js form example.
; In this simplified application and easy to learn Ext Js Tutorial I will show you how to develop a form in Ext Js framework. The Ext Js form will take...; framework in shortest possible time. Ext JS provides UI elements for developing web
How will you configure Hibernate?
How will you configure Hibernate?  Hi, How will you configure Hibernate? Thanks
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 upendra.softengg@gmail.com   Hi Friend, Read Here Thanks
Ajax+servlet+js
() { super(); } protected void doGet(HttpServletRequest request... { } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws..."); //rd.forward(request, response); } } im enter something
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: ??.. ?.. ??? ?
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
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. Thanks
Assembling web.xml from fragments
This section contains detailed description on assembling web.xml from web fragments with an example
calling servlet from JS and return response from servlet to JS
calling servlet from JS and return response from servlet to JS  hello all, I am working on JSP-servlets n MVC.I am facing a problem. on the web..."; response.setContentType("text/plain"); response.getWriter().write(url); in js function
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 Spring using Annotation
How to configure Spring using Annotation  Hi, How to configure Spring using Annotation Thanks
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 pom.xml file in Maven ?
How to Configure pom.xml file in Maven ?  How to Configure pom.xml file in Maven
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
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
Create a input button inside js function
Create a input button inside js function  I call my js function from HTML code from another file. Now I would like to create a input button on page... is the right way   I call my js function from HTML code from another file
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
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
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
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
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
Easiest method for expiring the css and js headers
Easiest method for expiring the css and js headers  Hi, I have a website with many thousand users visiting per day. I have changes the css file and uploaded it on server. Now some user is getting the old css file. Let's know
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
Configure JMS connection factories and destinations
Configure JMS connection factories...;Next    Configure JMS connection factories... processes the request and then returns a message in another queue. Message
request to help
request to help   how to write the program for the following details in java Employee Information System An organization maintains the following data about each employee. Employee Class Fields: int Employee ID String Name
How to configure mvc:default-servlet-handler tag?
How to configure mvc:default-servlet-handler tag?  How to configure mvc:default-servlet-handler tag? Please feel free to suggest examples or any reference websites. Thanks
How to Configure Tomcat Apache in Netbeans IDE
How to Configure Tomcat Apache in Netbeans IDE  Can any one tell me how to add tomcat server in Netbeans IDE? With its steps ?? Thnx
Configure apache Tomcat to work with Eclipse and PDT in php
Configure apache Tomcat to work with Eclipse and PDT in php  I had... weather i had configure my apache Tomcat or not with Eclipse. May i know how to configure apache Tomcat with Eclipse? Besides, How to I know whether my localhost
without writing web.xml file we can write servlet program
without writing web.xml file we can write servlet program  Sir Morning... Sir I have one Question "without writing web.xml file we can write servlet program". if yes which way? if no why? but without use Annotation........ Plz
How to Send particular error to another page in Servlet from web.xml
How to Send particular error to another page in Servlet from web.xml  How to Send particular error to another page in Servlet from web.xml   Hi you can forward particular error from web.xml file as <error-page>
Advertisements
 

 

 

DMCA.com