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



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


sunu
web.xml
1 Answer(s)      6 years and 3 months ago
Posted in : XML



Advertisement
View Answers

August 1, 2008 at 11:32 AM


Hi friend,


<?xml version="1.0" encoding="ISO-8859-1"?>



<web-app xmlns="http://java.sun.com/xml/ns/javaee";

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";

version="2.5">



<description>

Servlet and JSP Examples.

</description>

<display-name>Servlet and JSP Examples</display-name>





<!-- Define servlets that are included in the example application -->



<servlet>

<servlet-name>n</servlet-name>

<servlet-class>nn</servlet-class>

</servlet>



<servlet-mapping>

<servlet-name>n</servlet-name>

<url-pattern>/nn</url-pattern>

</servlet-mapping>

</web-app>


-----------------------------------------------------

Thanks.




Related Tutorials/Questions & Answers:
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 the deployment descriptor. When you web application started the web server reads
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
Advertisements
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
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 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
web.xml - servlet - Java Beginners
web.xml - servlet  Hi All, In my web application, I have one servlet that has to run automatically when ever I start my web application... application. I was suggested to use tag in the web.xml file to run that servlet
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 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<
Assembling web.xml from fragments
This section contains detailed description on assembling web.xml from web fragments with an example
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
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... ... with JSP in tomcat.Thanks  Hi,Here is the code of web.xml:<?xml version
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 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
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>
How can I call a Servlet that is declare on web.xml with spring framework
How can I call a Servlet that is declare on web.xml with spring framework ... is declare on web.xml, but the spring dispacher don't find it so how I can make spring dispacher to call a servlet that is declare on my Web.xml here is my
Getting Context Parameter Names
in the web.xml file. ServletContext is a interface which helps us to communicate.... In web.xml, do the following: <servlet> <servlet-name>
Getting Init Parameter Names
values which we have given in the web.xml file. Whenever the container...;PhoneNo"));   } } web.xml file
Spring Context Loader Servlet
in the web.xml file to load the Spring Context. Spring ContextLoaderServlet... Modification in the web.xml file Following code needs to be added to the web.xml file to register the ContextLoaderServlet
servlets
servlets  which url address is given in web.xml
Question
Question  which url address should be given in web.xml
wexml for jsp
wexml for jsp  an exaample for web.xml for sample jsp program
struts.xml - Struts
struts.xml  I have tried again and again, but somehow, my web.xml is not able to find struts.xml. Where should I be placing struts.xml?? The filter tags in web.xml are correct. Thanx
xml
xml  how to creatte html file and validate using java and finally i need get web.xml file
filters in java - Struts
filters in java  I have implement Gzip filters in my web application, but web.xml is not supporting to filters in struts, i have implement the same code for servlet its working fine on local host but online web.xml is creating
jav - Spring
jav  In PART2 of the Spring tutorial it says "Add entry to web.xml file". Can you tell me what I should enter. Here is my web.xml file: servletclient servletclient 1 servletclient
XML - JSP-Servlet
XML  Hello have a nice time, how to write an web.xml which can access both jsp page and servlet file can you explain with example.. thanking you.   Hi Friend, Do you want the web.xml file? Please clarify
servlet and xml - XML
servlet and xml  how to call or invoke a form.html with a servlet using web.xml  hi friend, we will call or invoke the form.html...://localhost:8080/webapp/form.html. in web.xml: abc myservlet
servlet - Servlet Interview Questions
Servlet Priority  How to set priority for servlet?  in web.xml file we can set priority of servlet. 1 2
war file
war file  where should we create this war file in servlet program for example servlet structure like this 1.app(servlet) 2.WEB-inf(web.xml) 3.class(.class
Advertisements
 

 

 

DMCA.com