Hi,

 

Finally I have used Eclipse and created simple servlet and created web.xml as follow:

<?xml version="1.0" encoding="UTF-8"?>

<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>ServletSample</display-name>

<servlet>

<description>

</description>

<display-name>HelloServlet</display-name>

<servlet-name>HelloServlet</servlet-name>

<servlet-class>

test.HelloServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>HelloServlet</servlet-name>

<url-pattern>/HelloServlet</url-pattern>

</servlet-mapping>

 

</web-app>

 

In order to display the content of the servlet I have changed manually address in browser as follow:

http://localhost:8080/ServletSample/HelloServlet

 

I have used Tomcat and earlier I had to create war file.

 

Tomorrow I will be rebuilding the servlet for RSS code. The RSS code works fine in main method I hope that it will work also in Servlet :)

 

Thanks!

 

Regards,

Rafal

 

 

 

 

 

 

Dnia 31-01-2011 o godz. 17:35 José Luis Casiano Celestino napisał(a):

what is the error log?

2011/1/31 Rafał Laczek <rafal_lac...@wp.pl>
Hi,

I have a sample HelloWord servlet. I have also created web.xml
I have a problem to display it in the browser.
I use NeatBeans.
I don't want to have any jsp in this sample project. All htlm is in
servlet.
Can you help

BR
Rafal


--
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en



--
JosĂŠ Casiano


 

--
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en



--
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to