RE: EL not working...

2005-07-07 Thread Allistair Crossley
EL comes with the Servlet 2.4 spec which is supported in Tomcat 5x. I believe 
you may be able to get EL like behaviour with the Struts-EL taglib, but you 
won't get it out of the box on Tomcat 4.

Allistair.

 -Original Message-
 From: Richard Reyes [mailto:[EMAIL PROTECTED]
 Sent: 07 July 2005 09:38
 To: Tomcat Users List
 Subject: EL not working...
 
 
 Hello Guys,
 
 EL is not working under tomcat 4. how can i make it work?
 Please help
 
 Thanks
 Richard
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: EL not working...

2005-07-07 Thread Richard Reyes
Hi Guys/Allistair,

I got this code .

bean:cookie name=%= Konstants.COOKIE_USERNAME  % id=username/
.
.
.
td align=lefthtml:text property=usernamesize=15
value=${username.value} //td

Any suggestions how to access the cookie value?

Thanks
Richard

On 7/7/05, Allistair Crossley [EMAIL PROTECTED] wrote:
 EL comes with the Servlet 2.4 spec which is supported in Tomcat 5x. I believe 
 you may be able to get EL like behaviour with the Struts-EL taglib, but you 
 won't get it out of the box on Tomcat 4.
 
 Allistair.
 
  -Original Message-
  From: Richard Reyes [mailto:[EMAIL PROTECTED]
  Sent: 07 July 2005 09:38
  To: Tomcat Users List
  Subject: EL not working...
 
 
  Hello Guys,
 
  EL is not working under tomcat 4. how can i make it work?
  Please help
 
  Thanks
  Richard
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: EL not working...

2005-07-07 Thread Allistair Crossley
Yes it will be in pageContext, so

%= pageContext.getAttribute(username) %

 Hi Guys/Allistair,
 
 I got this code .
 
 bean:cookie name=%= Konstants.COOKIE_USERNAME  % id=username/
 .
 .
 .
 td align=lefthtml:text property=usernamesize=15
 value=${username.value} //td
 
 Any suggestions how to access the cookie value?
 
 Thanks
 Richard
 
 On 7/7/05, Allistair Crossley [EMAIL PROTECTED] wrote:
  EL comes with the Servlet 2.4 spec which is supported in 
 Tomcat 5x. I believe you may be able to get EL like behaviour 
 with the Struts-EL taglib, but you won't get it out of the 
 box on Tomcat 4.
  
  Allistair.
  
   -Original Message-
   From: Richard Reyes [mailto:[EMAIL PROTECTED]
   Sent: 07 July 2005 09:38
   To: Tomcat Users List
   Subject: EL not working...
  
  
   Hello Guys,
  
   EL is not working under tomcat 4. how can i make it work?
   Please help
  
   Thanks
   Richard
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  
  
  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: EL not working...

2005-07-07 Thread Richard Reyes
Thanks Allistair,

But it throws an error...

E:\LABDRIVE\jakarta-tomcat-5.0.28\work\Catalina\localhost\wds-ap\org\apache\jsp\bigler\serverpages\login_jsp.java:237:
cannot resolve symbol
symbol  : method setValue (java.lang.Object)
location: class org.apache.struts.taglib.html.TextTag
  _jspx_th_html_text_0.setValue(
pageContext.getAttribute(username) );
  ^

On 7/7/05, Allistair Crossley [EMAIL PROTECTED] wrote:
 Yes it will be in pageContext, so
 
 %= pageContext.getAttribute(username) %
 
  Hi Guys/Allistair,
 
  I got this code .
 
  bean:cookie name=%= Konstants.COOKIE_USERNAME  % id=username/
  .
  .
  .
  td align=lefthtml:text property=usernamesize=15
  value=${username.value} //td
 
  Any suggestions how to access the cookie value?
 
  Thanks
  Richard
 
  On 7/7/05, Allistair Crossley [EMAIL PROTECTED] wrote:
   EL comes with the Servlet 2.4 spec which is supported in
  Tomcat 5x. I believe you may be able to get EL like behaviour
  with the Struts-EL taglib, but you won't get it out of the
  box on Tomcat 4.
  
   Allistair.
  
-Original Message-
From: Richard Reyes [mailto:[EMAIL PROTECTED]
Sent: 07 July 2005 09:38
To: Tomcat Users List
Subject: EL not working...
   
   
Hello Guys,
   
EL is not working under tomcat 4. how can i make it work?
Please help
   
Thanks
Richard
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]
   
   
  
  
   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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: EL not working...

2005-07-07 Thread Richard Reyes
Hi Allistair,

This is the value of 

[EMAIL PROTECTED]

%= pageContext.getAttribute(username) %

On 7/7/05, Richard Reyes [EMAIL PROTECTED] wrote:
 Thanks Allistair,
 
 But it throws an error...
 
 E:\LABDRIVE\jakarta-tomcat-5.0.28\work\Catalina\localhost\wds-ap\org\apache\jsp\bigler\serverpages\login_jsp.java:237:
 cannot resolve symbol
 symbol  : method setValue (java.lang.Object)
 location: class org.apache.struts.taglib.html.TextTag
   _jspx_th_html_text_0.setValue(
 pageContext.getAttribute(username) );
   ^
 
 On 7/7/05, Allistair Crossley [EMAIL PROTECTED] wrote:
  Yes it will be in pageContext, so
 
  %= pageContext.getAttribute(username) %
 
   Hi Guys/Allistair,
  
   I got this code .
  
   bean:cookie name=%= Konstants.COOKIE_USERNAME  % id=username/
   .
   .
   .
   td align=lefthtml:text property=usernamesize=15
   value=${username.value} //td
  
   Any suggestions how to access the cookie value?
  
   Thanks
   Richard
  
   On 7/7/05, Allistair Crossley [EMAIL PROTECTED] wrote:
EL comes with the Servlet 2.4 spec which is supported in
   Tomcat 5x. I believe you may be able to get EL like behaviour
   with the Struts-EL taglib, but you won't get it out of the
   box on Tomcat 4.
   
Allistair.
   
 -Original Message-
 From: Richard Reyes [mailto:[EMAIL PROTECTED]
 Sent: 07 July 2005 09:38
 To: Tomcat Users List
 Subject: EL not working...


 Hello Guys,

 EL is not working under tomcat 4. how can i make it work?
 Please help

 Thanks
 Richard


   -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
   [EMAIL PROTECTED]


   
   
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: EL not working...

2005-07-07 Thread Allistair Crossley
Hi,

I've just checked the bean taglib api and id is the page scope variable name 
that the cookie value gets put into, therefore

bean:cookie name=%= Konstants.COOKIE_USERNAME  % id=username /

%= pageContext.getAttribute(username) %

Really ought to be doing the job :)

 -Original Message-
 From: Richard Reyes [mailto:[EMAIL PROTECTED]
 Sent: 07 July 2005 10:24
 To: Allistair Crossley
 Cc: Tomcat Users List
 Subject: Re: EL not working...
 
 
 Thanks Allistair,
 
 But it throws an error...
 
 E:\LABDRIVE\jakarta-tomcat-5.0.28\work\Catalina\localhost\wds-
 ap\org\apache\jsp\bigler\serverpages\login_jsp.java:237:
 cannot resolve symbol
 symbol  : method setValue (java.lang.Object)
 location: class org.apache.struts.taglib.html.TextTag
   _jspx_th_html_text_0.setValue(
 pageContext.getAttribute(username) );
   ^
 
 On 7/7/05, Allistair Crossley [EMAIL PROTECTED] wrote:
  Yes it will be in pageContext, so
  
  %= pageContext.getAttribute(username) %
  
   Hi Guys/Allistair,
  
   I got this code .
  
   bean:cookie name=%= Konstants.COOKIE_USERNAME  % 
 id=username/
   .
   .
   .
   td align=lefthtml:text property=usernamesize=15
   value=${username.value} //td
  
   Any suggestions how to access the cookie value?
  
   Thanks
   Richard
  
   On 7/7/05, Allistair Crossley [EMAIL PROTECTED] wrote:
EL comes with the Servlet 2.4 spec which is supported in
   Tomcat 5x. I believe you may be able to get EL like behaviour
   with the Struts-EL taglib, but you won't get it out of the
   box on Tomcat 4.
   
Allistair.
   
 -Original Message-
 From: Richard Reyes [mailto:[EMAIL PROTECTED]
 Sent: 07 July 2005 09:38
 To: Tomcat Users List
 Subject: EL not working...


 Hello Guys,

 EL is not working under tomcat 4. how can i make it work?
 Please help

 Thanks
 Richard


   
 -
 To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
 For additional commands, e-mail:
   [EMAIL PROTECTED]


   
   
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: EL not working.

2003-10-08 Thread Jean-Francois Arcand
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: EL not working.

2003-10-08 Thread Wade Chandler
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: EL not working.

2003-10-08 Thread Tim Funk
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]