You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nikola Milutinovic <Ni...@ev.co.yu> on 2005/07/12 12:12:29 UTC
Re: web.xml breaks EL
Dewitte Rémi wrote:
>Hi !
>I have a simple test jsp :
><%@ taglib
> uri="http://java.sun.com/jsp/jstl/core"
> prefix="c" %>
><c:forEach begin="1" end="3" var="ind">
> <h${ind}> ${ind}aBaa</h${ind}>
></c:forEach>
>
>When I delete my web.xml, everything works well but when I reload the context
>with it, the EL replacement doesn't work.
>I can't see why.
>
>I have a very simple web.xml :
><?xml version="1.0" encoding="iso-8859-1"?>
><!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>
>
This is web.xml for a Servlet 2.2 specification and you need 2.4:
<web-app 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" version="2.4">
Nix.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: web.xml breaks EL
Posted by Dewitte Rémi <re...@gide.net>.
Thanks very much !
Rémi
Le Mardi 12 Juillet 2005 12:12, Nikola Milutinovic a écrit :
> Dewitte Rémi wrote:
> >Hi !
> >I have a simple test jsp :
> ><%@ taglib
> > uri="http://java.sun.com/jsp/jstl/core"
> > prefix="c" %>
> ><c:forEach begin="1" end="3" var="ind">
> > <h${ind}> ${ind}aBaa</h${ind}>
> ></c:forEach>
> >
> >When I delete my web.xml, everything works well but when I reload the
> > context with it, the EL replacement doesn't work.
> >I can't see why.
> >
> >I have a very simple web.xml :
> ><?xml version="1.0" encoding="iso-8859-1"?>
> ><!DOCTYPE web-app
> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>
> This is web.xml for a Servlet 2.2 specification and you need 2.4:
>
> <web-app 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" version="2.4">
>
> Nix.
>
>
> ---------------------------------------------------------------------
> 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
Re: Http Refferer
Posted by Oscar Mechanic <os...@ufomechanic.net>.
Yes apologies of coarse you are right but in this scenario It is a link
from a different site.
On Thu, 2005-08-11 at 14:32 -0400, Charles Meier wrote:
>
> Oscar Mechanic wrote:
>
> >Why would it get a null ? Every page has a referrer.
> >
> Are you sure? What if I click on a bookmark or type in the URL manually?
>
>
>
> ---------------------------------------------------------------------
> 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
Re: Http Refferer
Posted by Charles Meier <cm...@peerpro.net>.
Oscar Mechanic wrote:
>Why would it get a null ? Every page has a referrer.
>
Are you sure? What if I click on a bookmark or type in the URL manually?
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Http Refferer
Posted by Oscar Mechanic <os...@ufomechanic.net>.
Thanks I will conclude that the REFERER is not a reliable source of info
so cannot be used.
On Thu, 2005-08-11 at 11:38 -0700, Hassan Schroeder wrote:
> Oscar Mechanic wrote:
>
> > Why would it get a null ? Every page has a referrer.
>
> Simply not true -- a page accessed by having the URL hand-typed into
> a browser's address field has no referer. And PC anti-virus software
> frequently *blocks* sending a referer header regardless...
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Http Refferer
Posted by Hassan Schroeder <ha...@webtuitive.com>.
Oscar Mechanic wrote:
> Why would it get a null ? Every page has a referrer.
Simply not true -- a page accessed by having the URL hand-typed into
a browser's address field has no referer. And PC anti-virus software
frequently *blocks* sending a referer header regardless...
--
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Http Refferer
Posted by Oscar Mechanic <os...@ufomechanic.net>.
Well
String referer = req.getHeader("Referer");
Log.say("INTERNALE: referer is ["+referer+"]");
Date d = new Date( );
Log.say("INTERNALE: ["+d+"] Dumping HTTP header START");
Enumeration e = req.getHeaderNames( );
while(e.hasMoreElements()){
String name = (String)e.nextElement();
String value = req.getHeader(name);
Log.say("INTERNAL: name ["+name+"] value ["+value+"]");
}
Log.say("INTERNALE: ["+d+"] Dumping HTTP header END");
}
Should get the Referer
But it gets a null
Why would it get a null ? Every page has a referrer.
On Thu, 2005-08-11 at 18:14 +0100, Oscar Mechanic wrote:
> Hi
>
> Does anyone know how to get the refferal address from a servlet
> request I have dumped the header and it does not seem to be there. On
> apache it was an enviroment variable called HTTP_REFERER (May of had 2
> f's)
>
> Thanks
> Oscar
>
>
> ---------------------------------------------------------------------
> 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
Http Refferer
Posted by Oscar Mechanic <os...@ufomechanic.net>.
Hi
Does anyone know how to get the refferal address from a servlet
request I have dumped the header and it does not seem to be there. On
apache it was an enviroment variable called HTTP_REFERER (May of had 2
f's)
Thanks
Oscar
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org