You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wade Chandler <wc...@redesetgrow.com> on 2003/10/08 18:26:58 UTC
EL not working.
Has anyone been able to use the Expression Lanugage in Tomcat 5.x? I
tried to use code from the example pages, but I just get the expression
returned and not evaluated. Anyone with any ideas, thanks ahead of
time.
Wade
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: EL not working.
Posted by Tim Funk <fu...@joedog.org>.
Heh?
-Tim
Wade Chandler wrote:
> OK. What I have found to be the issue is that you have to define a
> context. If you don't for some reason that given directory can run
> jsp's and tag libraries fine, but the EL does not work in them. The
> setup I had was for a different host. So I had only defined my base
> context. Then I had a jsp directory which had not been defined to be in
> a context. This directory was sitting parallel to my ROOT directory so
> I have ROOT and jsp in the same directory. I guess the confusing part
> is the error messages. If tomcat would say. Context required to run
> JSP or servlets I think that would help some of the questions. Probably
> more informative error messages to match what the setup requires. Does
> this sound like a good idea?
>
> Wade
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JNDI context read only ??.
Posted by Tim Funk <fu...@joedog.org>.
AFAIK, no. If you need to put stuff in the JNDI context, you can do that via
this doc:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html
-Tim
Michael Remijan wrote:
> Hi,
>
> I want to put an object into the JNDI context, but I get an exception that
> says the context is read only. Is there a way to make it writable?
>
> Context ctx = (Context) new InitialContext().lookup("java:comp/env");
> ctx = ctx.createSubcontext("glqso");
> ctx.bind("ResourceManager", _rm);
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
JNDI context read only ??.
Posted by Michael Remijan <re...@ncsa.uiuc.edu>.
Hi,
I want to put an object into the JNDI context, but I get an exception that
says the context is read only. Is there a way to make it writable?
Context ctx = (Context) new InitialContext().lookup("java:comp/env");
ctx = ctx.createSubcontext("glqso");
ctx.bind("ResourceManager", _rm);
thanks,
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: EL not working.
Posted by Wade Chandler <wc...@redesetgrow.com>.
OK. What I have found to be the issue is that you have to define a
context. If you don't for some reason that given directory can run
jsp's and tag libraries fine, but the EL does not work in them. The
setup I had was for a different host. So I had only defined my base
context. Then I had a jsp directory which had not been defined to be in
a context. This directory was sitting parallel to my ROOT directory so
I have ROOT and jsp in the same directory. I guess the confusing part
is the error messages. If tomcat would say. Context required to run
JSP or servlets I think that would help some of the questions. Probably
more informative error messages to match what the setup requires. Does
this sound like a good idea?
Wade
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: EL not working.
Posted by Jean-Francois Arcand <jf...@apache.org>.
What do you mean by not working? It's like saying Tomcat 5 is not
working and you want help :-)
Please add example/config/more info about what you are trying to do.
Look at the jsp-eamples also. The EL the is working!
-- Jeanfrancois
Wade Chandler wrote:
>Has anyone been able to use the Expression Lanugage in Tomcat 5.x? I
>tried to use code from the example pages, but I just get the expression
>returned and not evaluated. Anyone with any ideas, thanks ahead of
>time.
>
>Wade
>
>
>
>---------------------------------------------------------------------
>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