HTTP 404 in Tomcat - Servlet - XHTML generation

Hi all,

It seems to be a stupid problem but I cannot find out its source. I磛e a Servlets (Servicio) wich generates a xHTML page. It resides in Tomcat-5.5 inside the following directory :

<Tomcat-Inst-dir>/webapps/rnasini/WEB-INF/classes, where "rnasini" is my app-base directory. I mapped the servlet inside web.xml file setting:

<servlet>

<servlet-name>Servicio</servlet-name>

<servlet-class>Servicio</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>Servicio</servlet-name>

<url-pattern>/servlet/Servicio/*</url-pattern>

</servlet-mapping>

Then, just to try I磛e a very simple xHtml page:

<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>NSN Movil</title>

</head>

<body>

<h2>TEST</h2>

<form action="www.nasinibursatil.com.ar/rnasini/servlet/Servicio" method="post">

Dato:

<input name="dato"/>

<input type="submit" />

</form>

</body>

</html>

When I submit the data, I磛e error: HTTP error 404: URL /www.nasinibursatil.com.ar/rnasini/servlet/Servicio was not foun on this server.

But, If I try from OpenWave emulator or from Opera explorer by entering the URL: www.nasinibursatil.com.ar/rnasini/servlet/Servicio?dato="xxxx", the servlet works fine and the received data is showed.

Please, I would need some sugestion / idea about this issue.!!!!!

Regards.

BlufsteinEJ.

Message was edited by:

BlufsteinEJ

[1874 byte] By [403993BlufsteinEJa] at [2007-11-26 12:19:07]
# 1
You have to add http:// in oyur form action:...<form action=" http://www.nasinibursatil.com.ar/rnasini/servlet/Servicio" method="post"> ...
563630danielkarda at 2007-7-7 14:59:45 > top of Java-index,Archived Forums,Socket Programming...
# 2
Dear danielkard.It seems to be unbeleable but some times working in the nigth I comit this kind of mistakes.Lot of thanks for open my mind!!!.BlusfteinEJ.
403993BlufsteinEJa at 2007-7-7 14:59:45 > top of Java-index,Archived Forums,Socket Programming...