tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fermin Jimenez Najar" <fermin.jime...@compac.com.mx>
Subject RE: Problems with context
Date Fri, 12 Aug 2005 08:38:50 GMT
This is the question (by example)
a) In my computer (where the tomcat is installed)
   1. I call this page who have the
sendRedirect("http://192.168.1.64/activation/secondpage.jsp")
       http://192.168.1.64/activation/firstpage.jsp

   2. Works fine, in the browser of my machine appears:
	http://192.168.1.64/activation/secondpage.jsp

b)But the ERROR happens when i try to access from another computer:
      1. I call this page who have the
sendRedirect("http://192.168.1.64/activation/secondpage.jsp")
       http://192.168.1.64/activation/firstpage.jsp

	2. I get this as URL in the browser:
	http://localhost/secondpage.jsp

      and this error:
      "The page is not enabled" (or something like that, without error
number)

-----Message d'origine-----
De : Allistair Crossley [mailto:Allistair.Crossley@QAS.com]
Envoyé : Viernes, 12 de Agosto de 2005 05:22 p.m.
À : Tomcat Users List
Objet : RE: Problems with context


And what is the error you are getting? 404? 500? Exception? What?

Allistair.

> -----Original Message-----
> From: Fermin Jimenez Najar [mailto:fermin.jimenez@compac.com.mx]
> Sent: 12 August 2005 08:54
> To: Tomcat Users List
> Subject: Problems with context
>
>
> Hi. I just has beginning to use the Tomcat, for programming in JSP.
> I have the 5.0 version.
>
> I make a web app that uses, in some jsp's files, the command
> "response.sendRedirect".
>
> When i execute the pages locally in my computer, works fine,
> but, i if try
> to
> test the pages from another computer, i get an error.
>
> This is the way i was executed the sendRedirect for test in
> another machine,
> and always get an error:
> response.sendRedirect("http://localhost:8080/activation/obliga
> torios.jsp")
> response.sendRedirect("http://192.168.1.137:8080/activation/ob
> ligatorios.jsp
> ")
> response.sendRedirect("http://mycomputer:8080/activation/oblig
> atorios.jsp")
> response.sendRedirect("/obligatorios.jsp")
> response.sendRedirect("activation/obligatorios.jsp")
>
>
> I think that could be some context problems because, for make
> the webapp
> structure, i
> copied one example webapp that comes with the tomcat, then i
> deleted and
> renamed
> those files and directories that i dont use (off course, the
> web-inf still
> exist)
>
> What can i do ? Is there is some file where i must configure
> the context of
> the webapp ?
>
> Thanks !!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE>
-------------------------------------------------------
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message