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



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

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Murugadoss
Configure Js request in Web.xml
0 Answer(s)      a year 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
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
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
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
Ajax+servlet+js
() { super(); } protected void doGet(HttpServletRequest request... { } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws..."); //rd.forward(request, response); } } im enter something
Help for website development on Angular JS
Help for website development on Angular JS  want to develop a website using angular JS. I am new to the platform or coding on angular JS. Can i update a database column and get that data uploaded on my webpage simultaneosuly
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  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
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  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
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
Advertisements
 

 

 

DMCA.com