RE: Struts-EL and JSP 2.0

2008-02-14 Thread Karr, David
Just so it's clear, you not only don't need it, but it's presence would
probably cause subtle (well, maybe not so subtle) problems.  Don't use
it in a JSP 2.x+ container. 

> -Original Message-
> From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 14, 2008 8:50 AM
> To: Struts Users Mailing List
> Subject: Re: Struts-EL and JSP 2.0
> 
> 2008/2/14, javaskull <[EMAIL PROTECTED]>:
> >
> > I'm using RAD 7.0 and WAS 6.1 which is a JSP 2.0 container.  If I'm 
> > using the Struts 1.38 version, should I not put Struts-EL 
> in the WEB- 
> > INF\lib folder?  I had read that Struts-EL won't work with 
> JSP 2.0 and 
> > I should not use Struts-EL for that.  Thanks,
> 
> You don't need it since EL evaluation is made by the 
> container with JSP 2.x.
> 
> Antonio

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



Re: Struts-EL and JSP 2.0

2008-02-14 Thread Antonio Petrelli
2008/2/14, javaskull <[EMAIL PROTECTED]>:
>
> I'm using RAD 7.0 and WAS 6.1 which is a JSP 2.0 container.  If I'm
> using the Struts 1.38 version, should I not put Struts-EL in the WEB-
> INF\lib folder?  I had read that Struts-EL won't work with JSP 2.0 and
> I should not use Struts-EL for that.  Thanks,



You don't need it since EL evaluation is made by the container with JSP 2.x.

Antonio


Re: Struts-EL and Struts features not in JSTL and EL

2006-08-28 Thread Bob

Thanks.  That solution didn't quite work (I didn't need to reference the
"map") but led me to try something similar which worked.




Wendy Smoak-3 wrote:
> 
> On 8/28/06, Mead, Robert F (Titan) @ TITAN <[EMAIL PROTECTED]> wrote:
> 
>> > property="someProp">
>>
>> The Struts libraries are intelligent enough to take a dynamic form name
>> and find the property.
>>
>> I have not been able to get the same behavior to work using JSTL and EL.
>> For example the following fails (and I've tried a bunch of other guesses
>> to no avail):
>>  gives "unable to find value for
>> someProp in object String"
>>
>> Is there a way to get the same functionality without using the Struts
>> tags?
> 
> The first issue I see is that you need to find the form itself, using
> 'param.formName' as the key into the session or request map.  I think
> you're going to have to know where the form is stored for this to
> work.
> 
> Then you need to get the property out of the form.  You said it's a
> dynamic form, so you'll need to go through the form's 'map' property
> to do that.
> 
> Try something like this:
> 
>   
> 
> You may want to split it up with a , to make it more readable.
> 
> Now someone will probably point out that I'm making it far more
> complicated than it needs to be. :)
> 
> -- 
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-EL-and-Struts-features-not-in-JSTL-and-EL-tf2177786.html#a6024515
Sent from the Struts - User forum at Nabble.com.


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



Re: Struts-EL and Struts features not in JSTL and EL

2006-08-28 Thread Wendy Smoak

On 8/28/06, Mead, Robert F (Titan) @ TITAN <[EMAIL PROTECTED]> wrote:




The Struts libraries are intelligent enough to take a dynamic form name and 
find the property.

I have not been able to get the same behavior to work using JSTL and EL.
For example the following fails (and I've tried a bunch of other guesses to no 
avail):
 gives "unable to find value for someProp in 
object String"

Is there a way to get the same functionality without using the Struts tags?


The first issue I see is that you need to find the form itself, using
'param.formName' as the key into the session or request map.  I think
you're going to have to know where the form is stored for this to
work.

Then you need to get the property out of the form.  You said it's a
dynamic form, so you'll need to go through the form's 'map' property
to do that.

Try something like this:

 

You may want to split it up with a , to make it more readable.

Now someone will probably point out that I'm making it far more
complicated than it needs to be. :)

--
Wendy

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



Re: Struts-EL Tag Question

2006-03-24 Thread Michael Jouravlev
http://struts.apache.org/struts-el/tagreference-struts-bean-el.html#bean:size

Try "name" instead of "collection".

On 3/24/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:
> I have a collection in the Request called "processes" which is an array
> list of a Transfer Object I use in my application.  I am trying to make
> the following call from my JSP:
>
>
>
> 
>
>
>
> I am getting the following error:
>
>
>
> javax.servlet.jsp.JspException: No valid collection specified for size
> tag
>
>   at
> org.apache.struts.taglib.bean.SizeTag.doStartTag(SizeTag.java:165)
>
>   at
> org.apache.strutsel.taglib.bean.ELSizeTag.doStartTag(ELSizeTag.java:137)
>
>   at
> org.apache.jsp.jsp.batch_005fprocesses_jsp._jspService(org.apache.jsp.js
> p.batch_005fprocesses_jsp:133)
>
>   at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>
>
>
> Any ideas why the collection cannot be resolved? I'm on Tomcat 5.5.12
> using JSTL 1.1.
>
>
>
> Daniel
>
>
>

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



Re: Struts-el and Weblogic 9.1

2006-03-14 Thread Mujahid Ali
Weblogic has an option where you can force it load classes from the 
WEB-INF directory. I did that to eliminate any potential class loading 
conflicts...
Still the same issue. I found a known issue 
http://edocs.bea.com/wls/docs91/issues/known_resolved.html#1056681 
[CR210907] :


   Netui databinding expression language fails when BeanInfo overrides
   JavaBean property names.

   Evaluation of expressions in the Netui databinding expression
   language throws errors when BeanInfo netui databinding EL does not
   to work when java.beans.BeanInfo is used to override JavaBean
   property names.

   *Workaround or Solution*:

   Do not override JavaBean property names using BeanInfo if you use a
   JavaBean in Netui databinding. If you must databind to such a bean,
   wrap the bean in a UI version of the bean that follows the JavaBean
   property naming convention.

Struts-el is essentially doing the same thing with mapping the property 
names using BeanInfo for each tag class.


This is just a guess, at this point I am running out of idea...

Servlet 2.4 is an option, just have a very large application that we 
will have to figure out how to port over...


Thanks for all the comments/suggestions.

Mujahid

Wendy Smoak wrote:


On 3/14/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:

 


Slightly offtopic but still relevant: what is meant by "container
provides support for JSTL 1.1"? Because Tomcat 5 supports SRV 2.4, but
does not have jstl.jar and standard.jar in shared or endorsed
directory. At least 5.5.16 distro does not have them, but example WARs
bundled the this distro have these libraries in their respective
WEB-INF/lib directories.
   



I'm just guessing that perhaps Weblogic 9.1 *does* provide a JSTL 1.1
implementation in some shared area, and that it might be causing
conflicts.  The spec doesn't forbid a container from providing a JSTL
implementation, does it?

Something is clearly wrong, you should be able to drop a properly
configured Servlet 2.3 app into a container that supports Servlet 2.4,
and have it just work.  (For example, I have several Struts EL/Servlet
2.3/JSTL 1.0 apps deployed to Tomcat 5.5 with no problems.)

If Servlet 2.4 is  an option, my advice is to use that, plus JSTL 1.1
and the original Struts taglibs.

--
Wendy

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

 





Re: Struts-el and Weblogic 9.1

2006-03-14 Thread Wendy Smoak
On 3/14/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> Slightly offtopic but still relevant: what is meant by "container
> provides support for JSTL 1.1"? Because Tomcat 5 supports SRV 2.4, but
> does not have jstl.jar and standard.jar in shared or endorsed
> directory. At least 5.5.16 distro does not have them, but example WARs
> bundled the this distro have these libraries in their respective
> WEB-INF/lib directories.

I'm just guessing that perhaps Weblogic 9.1 *does* provide a JSTL 1.1
implementation in some shared area, and that it might be causing
conflicts.  The spec doesn't forbid a container from providing a JSTL
implementation, does it?

Something is clearly wrong, you should be able to drop a properly
configured Servlet 2.3 app into a container that supports Servlet 2.4,
and have it just work.  (For example, I have several Struts EL/Servlet
2.3/JSTL 1.0 apps deployed to Tomcat 5.5 with no problems.)

If Servlet 2.4 is  an option, my advice is to use that, plus JSTL 1.1
and the original Struts taglibs.

--
Wendy

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



Re: Struts-el and Weblogic 9.1

2006-03-14 Thread Michael Jouravlev
On 3/14/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 3/14/06, Mujahid Ali <[EMAIL PROTECTED]> wrote:
>
> > 9.1 used 2.4 and it is supposed to be backwards compatible. Just to make
> > things simple, I tried deploying the strutsel-exercise-taglib.war that
> > comes with the struts 1.2.8 release.
> >
> > The tags don't work without any modifications to the war.
>
> My guess is that Weblogic is providing a JSTL 1.1 implementation, and
> there is some conflict with the Servlet 2.3/JSTL 1.0 apps you are
> trying to run.
>
> > If I modify the web.xml in the war to be 2.4 compatible, it still doesn't 
> > work.
>
> If you want to use Servlet 2.4, then you don't need Struts EL -- the
> container will evaluate the expressions before passing the values to
> the taglib.
>
>  * http://wiki.wsmoak.net/cgi-bin/wiki.pl?StrutsAndJSTL

Slightly offtopic but still relevant: what is meant by "container
provides support for JSTL 1.1"? Because Tomcat 5 supports SRV 2.4, but
does not have jstl.jar and standard.jar in shared or endorsed
directory. At least 5.5.16 distro does not have them, but example WARs
bundled the this distro have these libraries in their respective
WEB-INF/lib directories.

Michael J.

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



Re: Struts-el and Weblogic 9.1

2006-03-14 Thread Mujahid Ali
When you say Weblogic is provdinig JSTL 1.1 version, you are reffering 
to standard.jar ?


I don't have anything deployed except the example war. So I am not sure 
about the conflicts.


Thanks,

Mujahid


Wendy Smoak wrote:


On 3/14/06, Mujahid Ali <[EMAIL PROTECTED]> wrote:

 


9.1 used 2.4 and it is supposed to be backwards compatible. Just to make
things simple, I tried deploying the strutsel-exercise-taglib.war that
comes with the struts 1.2.8 release.

The tags don't work without any modifications to the war.
   



My guess is that Weblogic is providing a JSTL 1.1 implementation, and
there is some conflict with the Servlet 2.3/JSTL 1.0 apps you are
trying to run.

 


If I modify the web.xml in the war to be 2.4 compatible, it still doesn't work.
   



If you want to use Servlet 2.4, then you don't need Struts EL -- the
container will evaluate the expressions before passing the values to
the taglib.

* http://wiki.wsmoak.net/cgi-bin/wiki.pl?StrutsAndJSTL

--
Wendy

-
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: Struts-el and Weblogic 9.1

2006-03-14 Thread Wendy Smoak
On 3/14/06, Mujahid Ali <[EMAIL PROTECTED]> wrote:

> 9.1 used 2.4 and it is supposed to be backwards compatible. Just to make
> things simple, I tried deploying the strutsel-exercise-taglib.war that
> comes with the struts 1.2.8 release.
>
> The tags don't work without any modifications to the war.

My guess is that Weblogic is providing a JSTL 1.1 implementation, and
there is some conflict with the Servlet 2.3/JSTL 1.0 apps you are
trying to run.

> If I modify the web.xml in the war to be 2.4 compatible, it still doesn't 
> work.

If you want to use Servlet 2.4, then you don't need Struts EL -- the
container will evaluate the expressions before passing the values to
the taglib.

 * http://wiki.wsmoak.net/cgi-bin/wiki.pl?StrutsAndJSTL

--
Wendy

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



RE: Struts-el and Weblogic 9.1

2006-03-14 Thread George.Dinwiddie
Wendy Smoak 
> My guess is that you've switched from Servlet 2.3 to 2.4, the 
> same as if you'd moved from Tomcat 4.x to 5.x.  Hard to tell, 
> though, without more information.

Yep, see http://e-docs.bea.com/wls/docs81/notes/new.html#1184292
and http://e-docs.bea.com/wls/docs90/notes/new.html#1199788

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



Re: Struts-el and Weblogic 9.1

2006-03-14 Thread Mujahid Ali
9.1 used 2.4 and it is supposed to be backwards compatible. Just to make 
things simple, I tried deploying the strutsel-exercise-taglib.war that 
comes with the struts 1.2.8 release.


The tags don't work without any modifications to the war. If I modify 
the web.xml in the war to be 2.4 compatible, it still doesn't work.


Here is the web.xml as modified to reflect 2.4 changes:


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";>


 Struts-EL Taglib Exerciser

 
 
   action
   org.apache.struts.action.ActionServlet
   
 application
 
org.apache.struts.webapp.exercise.ApplicationResources 


   
   
 config
 /WEB-INF/struts-config.xml
   
   
 debug
 2
   
   
 detail
 2
   
   2
 


 
 
   action
   *.do
 


 
 
   index.jsp
   index.html
 





When I execute the bean-size example, I get this error:

javax.servlet.jsp.JspException: No valid collection specified for size tag
at org.apache.struts.taglib.bean.SizeTag.doStartTag(SizeTag.java:165)
at 
org.apache.strutsel.taglib.bean.ELSizeTag.doStartTag(ELSizeTag.java:137)
at jsp_servlet.__bean_45_size._jspService(__bean_45_size.java:153)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at 
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at 
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at 
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at 
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at 
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
at 
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
at 
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)



If you need any more info, please let me know. I really want to find a 
way to resolve this...


Thanks,

Mujahid

Wendy Smoak wrote:


On 3/14/06, Mujahid Ali <[EMAIL PROTECTED]> wrote:
 


I am using some tags from the struts-el package and they used to work
fine under weblogic 8.1; After switching over to weblogic 9.1, it seems
that the BeanInfo class for a given tan is never called, so the jstl
expression ${...} is never evaluated. Has anyone seen similar problems?
Are there any workarounds? I am using struts-el jar from the struts
1.2.8 release.
   



Does anyone know which version of the Servlet spec Weblogic 8.1 and 
9.1 each support?  What version are you using in web.xml?


My guess is that you've switched from Servlet 2.3 to 2.4, the same as
if you'd moved from Tomcat 4.x to 5.x.  Hard to tell, though, without
more information.

--
Wendy

-
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: Struts-el and Weblogic 9.1

2006-03-14 Thread kalpesh modi
Weblogic 8.1 support servlet 2.3 and 9.1 should support servlet 2.4

Thanks,
-Kalpesh


-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

Re: Struts-el and Weblogic 9.1

2006-03-14 Thread Wendy Smoak
On 3/14/06, Mujahid Ali <[EMAIL PROTECTED]> wrote:
> I am using some tags from the struts-el package and they used to work
> fine under weblogic 8.1; After switching over to weblogic 9.1, it seems
> that the BeanInfo class for a given tan is never called, so the jstl
> expression ${...} is never evaluated. Has anyone seen similar problems?
> Are there any workarounds? I am using struts-el jar from the struts
> 1.2.8 release.

Does anyone know which version of the Servlet spec Weblogic 8.1 and 
9.1 each support?  What version are you using in web.xml?

My guess is that you've switched from Servlet 2.3 to 2.4, the same as
if you'd moved from Tomcat 4.x to 5.x.  Hard to tell, though, without
more information.

--
Wendy

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



Re: Struts-EL

2006-03-06 Thread Wendy Smoak
On 3/6/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:

> That was it. My taglib definition was wrong.  But for reference
> purposes, I am using Tomcat 5.5.12 and whatever JSTL version came with
> Struts 1.2.8, which is 1.0 (I think?).

Since you're using Tomcat 5, as Michael pointed out, you have the
option of moving to Servlet 2.4 and JSTL 1.1.  In that case the
container will evaluate expressions before passing them to the Struts
taglib, so you don't need Struts-EL.

You can also continue using Servlet 2.3/JSTL 1.0 on Tomcat 5.5 -- it
will work fine.

--
Wendy
http://wiki.wsmoak.net/cgi-bin/wiki.pl?StrutsAndJSTL

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



Re: Struts-EL

2006-03-06 Thread Michael Jouravlev
You don't need Struts-EL on Tomcat 5 because it supports SRV2.4/JSP2.0/JSTL1.1.

Also it seems that you confuse Struts-EL with JSTL. These are different things.

On 3/6/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:
> Wendy,
>
> That was it. My taglib definition was wrong.  But for reference
> purposes, I am using Tomcat 5.5.12 and whatever JSTL version came with
> Struts 1.2.8, which is 1.0 (I think?).
>
> Daniel
>
> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 06, 2006 9:09 AM
> To: Struts Users Mailing List
> Subject: Re: Struts-EL
>
> On 3/6/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:
>
> > I would like to setup Struts-EL in my application.  I am currently
> > running Struts 1.2.8 with Spring.  I did the following:
> >
> > 1.  Added the Struts-el.jar, jstl.jar, and standard.jar to my
> > WEB-INF/lib.
> > 2.  Added the line "<%@ taglib prefix="c"
> > uri="http://java.sun.com/jsp/jstl/core"; %>" to my JSP Page
> > 3.  Changed the Struts tag library to refer to the logic-el one.
> >
> > When I try to use the  tag in my page, it is not evaluating the
> > expression correctly.  It just writes it out as is, with the ${expr}
> > dollar sign and bracket around it.  What am I missing?
>
> Thanks for stating what version of Struts you're using. :)  We also
> need to know what version of the Servlet specification (or what
> version of what container if you're not sure).
>
> If youre using Servlet 2.3 and JSTL 1.0, then it should be:
>   <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
> (No 'jsp' in the uri.)
>
> If you're using Servlet 2.4, the answer changes.

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



RE: Struts-EL

2006-03-06 Thread Kalcevich, Daniel
Wendy,

That was it. My taglib definition was wrong.  But for reference
purposes, I am using Tomcat 5.5.12 and whatever JSTL version came with
Struts 1.2.8, which is 1.0 (I think?).

Daniel

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 9:09 AM
To: Struts Users Mailing List
Subject: Re: Struts-EL

On 3/6/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:

> I would like to setup Struts-EL in my application.  I am currently
> running Struts 1.2.8 with Spring.  I did the following:
>
> 1.  Added the Struts-el.jar, jstl.jar, and standard.jar to my
> WEB-INF/lib.
> 2.  Added the line "<%@ taglib prefix="c"
> uri="http://java.sun.com/jsp/jstl/core"; %>" to my JSP Page
> 3.  Changed the Struts tag library to refer to the logic-el one.
>
> When I try to use the  tag in my page, it is not evaluating the
> expression correctly.  It just writes it out as is, with the ${expr}
> dollar sign and bracket around it.  What am I missing?

Thanks for stating what version of Struts you're using. :)  We also
need to know what version of the Servlet specification (or what
version of what container if you're not sure).

If youre using Servlet 2.3 and JSTL 1.0, then it should be:
  <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
(No 'jsp' in the uri.)

If you're using Servlet 2.4, the answer changes.

--
Wendy

-
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: Struts-EL

2006-03-06 Thread Wendy Smoak
On 3/6/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:

> I would like to setup Struts-EL in my application.  I am currently
> running Struts 1.2.8 with Spring.  I did the following:
>
> 1.  Added the Struts-el.jar, jstl.jar, and standard.jar to my
> WEB-INF/lib.
> 2.  Added the line "<%@ taglib prefix="c"
> uri="http://java.sun.com/jsp/jstl/core"; %>" to my JSP Page
> 3.  Changed the Struts tag library to refer to the logic-el one.
>
> When I try to use the  tag in my page, it is not evaluating the
> expression correctly.  It just writes it out as is, with the ${expr}
> dollar sign and bracket around it.  What am I missing?

Thanks for stating what version of Struts you're using. :)  We also
need to know what version of the Servlet specification (or what
version of what container if you're not sure).

If youre using Servlet 2.3 and JSTL 1.0, then it should be:
  <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
(No 'jsp' in the uri.)

If you're using Servlet 2.4, the answer changes.

--
Wendy

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



RE: [Struts EL & JSTL]

2006-01-23 Thread Karr, David
To answer this a little differently than Laurie did, the Struts-EL tag
library is a collection of tags that all inherit the behavior of the
Struts tags they replace, except the tag attribute values are passed
through the JSTL expression evaluation engine implemented by the Jakarta
standard taglib implementation.

The Struts-EL tag library is only useful in a JSP 1.2 container (or in a
JSP 2.0 container if not specifying the Servlet 2.4 spec).  If you have
a JSP 2.0 container, and you specify the Servlet 2.4 spec, then EL
evaluation is done "natively" in the container, so you don't need a
special tag library to implement it (and it would probably cause
unexpected problems if you used it).

If you just used the Struts tag library, then attribute values in the
Struts tags like "${stuff}" would just produce the value "${stuff}".  If
you were instead to use Struts-EL, then it would produce a value based
on the value of the "stuff" scoped attribute.

In fact, the Java classes in the Struts-EL library all inherit from the
corresponding Java classes from the Struts tag library, it's just their
setters/getters that cause the values to be passed through the EL
engine.

> -Original Message-
> From: Garner, Shawn [mailto:[EMAIL PROTECTED] 
> 
> I'm not sure what exactly is Struts EL and how it compares to 
> the JSTL tags.
> 
> I've used JSTL 1.0 tags and see how there is overlap between 
> some of the Struts logic/bean tags but I fail to see what 
> exactly Struts EL is.
> 
> I've read http://struts.apache.org/struts-el/index.html
>   but I still 
> fail to see what it is.
> 
> Can somebody clarify this for me?

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



Re: [Struts EL & JSTL]

2006-01-23 Thread Laurie Harper

Garner, Shawn wrote:

I'm not sure what exactly is Struts EL and how it compares to the JSTL tags.

I've used JSTL 1.0 tags and see how there is overlap between some of the
Struts logic/bean tags but I fail to see what exactly Struts EL is.

I've read http://struts.apache.org/struts-el/index.html
  but I still fail to see
what it is.


The EL tags are variants of the standard tags that know how to evaluate 
JSTL expressions. They're useful when you're running on a pre-JSP 2.0 
container which doesn't do this automatically.


L.


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



[OT] Re: struts-el tags

2006-01-04 Thread Dave Newton

Sandhya Lakshmi wrote:


Thanks, Wendy I was looking for the libraries which are in the
struts-el-1.3.0-dev.jar file.
 

Just as a point of distinction and to reiterate what Wendy said, those 
aren't libraries; they're TLDs, which are descriptions _of_ the 
libraries: Tag Library Descriptors.


Dave



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



RE: struts-el tags

2006-01-03 Thread Sandhya Lakshmi
Thanks, Wendy I was looking for the libraries which are in the
struts-el-1.3.0-dev.jar file.

Sandhya


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 03, 2006 1:47 PM
To: Struts Users Mailing List
Subject: Re: struts-el tags

On 1/3/06, Sandhya Lakshmi <[EMAIL PROTECTED]> wrote:

> I downloaded from nightly builds but it has
> code(struts-el-1.3.0-dev-20060103-src.zip) and
> documentation(struts-el-1.3.0-dev-20060103.zip) of the Struts EL tags
> but not the libraries.

The struts-el-1.3.0-dev.jar file is there. By "libraries" do you mean
the tld files?

If so, they are inside the jar, but normally you don't need to extract
them (except possibly to find the URIs).  Try this:
 <%@ taglib prefix="html"
uri="http://struts.apache.org/tags-html-el"; %>

The Taglibdoc, which shows the syntax, is here:
http://struts.apache.org/struts-el/tlddoc/index.html

> Eventhough on downloading the latest version of struts
> 1.2.8(struts-1.2.8-lib.zip ) version I did not find the EL tag
> libraries.please guide to the appropriate link.

For 1.2.8, you'll want the full binary distribution
(struts-1.2.8-bin.zip) instead.  Then look in the "contrib/struts-el"
directory for Struts EL.

Please let us know if you still can't find what you need.

--
Wendy

-
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: struts-el tags

2006-01-03 Thread Wendy Smoak
On 1/3/06, Sandhya Lakshmi <[EMAIL PROTECTED]> wrote:

> I downloaded from nightly builds but it has
> code(struts-el-1.3.0-dev-20060103-src.zip) and
> documentation(struts-el-1.3.0-dev-20060103.zip) of the Struts EL tags
> but not the libraries.

The struts-el-1.3.0-dev.jar file is there. By "libraries" do you mean
the tld files?

If so, they are inside the jar, but normally you don't need to extract
them (except possibly to find the URIs).  Try this:
 <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html-el"; %>

The Taglibdoc, which shows the syntax, is here:
http://struts.apache.org/struts-el/tlddoc/index.html

> Eventhough on downloading the latest version of struts
> 1.2.8(struts-1.2.8-lib.zip ) version I did not find the EL tag
> libraries.please guide to the appropriate link.

For 1.2.8, you'll want the full binary distribution
(struts-1.2.8-bin.zip) instead.  Then look in the "contrib/struts-el"
directory for Struts EL.

Please let us know if you still can't find what you need.

--
Wendy

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



RE: struts-el tags

2006-01-03 Thread Sandhya Lakshmi
Ted,

I downloaded from nightly builds but it has
code(struts-el-1.3.0-dev-20060103-src.zip) and
documentation(struts-el-1.3.0-dev-20060103.zip) of the Struts EL tags
but not the libraries.

Eventhough on downloading the latest version of struts
1.2.8(struts-1.2.8-lib.zip ) version I did not find the EL tag
libraries.please guide to the appropriate link. 

Thanks
Sandhya


-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 03, 2006 1:00 PM
To: Struts Users Mailing List
Subject: Re: struts-el tags

The nightly builds for the upcoming Struts EL 1.3.0 release are here:

* http://svn.apache.org/builds/struts/maven/trunk/nightly/struts-el/

The best available version is bundled with the Struts 1.2.8 release:

* http://struts.apache.org/download.cgi

The libaries are labeled struts-bean-el, struts-html-el, and so forth.

The Struts 1.2.8 documention for EL is here:

* http://struts.apache.org//struts-doc-1.2.8/faqs/struts-el.html

-- HTH, Ted.
http://www.husted.com/poe/

On 1/3/06, Sandhya Lakshmi <[EMAIL PROTECTED]> wrote:
>
> I am trying to download  struts-el tags .But I could not find them can
> anyone mail me the link to download the struts-el tag library
>
>
> Thanks
> Sandhya
>

-
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: struts-el tags

2006-01-03 Thread Ted Husted
The nightly builds for the upcoming Struts EL 1.3.0 release are here:

* http://svn.apache.org/builds/struts/maven/trunk/nightly/struts-el/

The best available version is bundled with the Struts 1.2.8 release:

* http://struts.apache.org/download.cgi

The libaries are labeled struts-bean-el, struts-html-el, and so forth.

The Struts 1.2.8 documention for EL is here:

* http://struts.apache.org//struts-doc-1.2.8/faqs/struts-el.html

-- HTH, Ted.
http://www.husted.com/poe/

On 1/3/06, Sandhya Lakshmi <[EMAIL PROTECTED]> wrote:
>
> I am trying to download  struts-el tags .But I could not find them can
> anyone mail me the link to download the struts-el tag library
>
>
> Thanks
> Sandhya
>

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



Re: Struts-EL problem with struts-el-1.3.0-dev

2005-07-28 Thread Jeff Beal
On 7/28/05, Marco Mistroni <[EMAIL PROTECTED]> wrote:
> 
> Hello Wendy,
> I missed one point of your statement..
> 
> >> 
> 
> >Even if you're going to use an expression, the 'name' attribute should
> >still
> >evaluate to the _name_ of the bean, not the bean itself.
> >   http://struts.apache.org/userGuide/struts-logic.html#present
> 
> what do you mean? If I store the bean under the attribute name 'result',
> why
> the above EL is wrong?

What you want is:


This will check for a bean stored under the name 'results' in session scope.

${sessionScope.results} evaluates to the bean itself.  The logic tag
receives *that bean* where before it received a String.  I believe
that the logic tag would then convert that bean to a String and look
for an object stored under that name, instead.

Instead of dealing with all of this, just try the following JSTL:



-- Jeff

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



RE: Struts-EL problem with struts-el-1.3.0-dev

2005-07-28 Thread Marco Mistroni

Hello Wendy,
I missed one point of your statement..

>> 

>Even if you're going to use an expression, the 'name' attribute should
>still
>evaluate to the _name_ of the bean, not the bean itself.
>   http://struts.apache.org/userGuide/struts-logic.html#present

what do you mean? If I store the bean under the attribute name 'result',
why
the above EL is wrong?

>Then the  tag would be:
>   <%@ taglib uri="http://struts.apache.org/tags-logic-el";
prefix="logic"%>
>   

>No EL required for that one.  But do use the JSTL tags instead whenever
>possible. :)

I use EL to replace   
where Constants.RESULT  has value 'results'

Where does the above declaration differ from the EL?

What does  ${sessionScope.result} represent in this case?



can you show me a quick sample on a simple  use of EL ?
if I store objects in session/request/applicationScope, why can't I use

struts-el with EL to retrieve them?


Thanx in advance for your time and regards
Marco mistroni




[BTW, in a Servlet 2.3 container, you do not need all those 
tags in 
web.xml.  If you use the correct URI, the tlds will be located in the
.jar 
files in WEB-INF/lib.]

-- 
Wendy Smoak



-
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: Struts-EL problem with struts-el-1.3.0-dev

2005-07-28 Thread Wendy Smoak

From: "Marco Mistroni" <[EMAIL PROTECTED]>


Yes I actually reverted to using c:if, and it worked
Just fine

I wanted just to report the situation to see if I was
Using the taglib incorrectly...






Even if you're going to use an expression, the 'name' attribute should still
evaluate to the _name_ of the bean, not the bean itself.
  http://struts.apache.org/userGuide/struts-logic.html#present

If this works:


   // this displays the loop data



Then the  tag would be:
  <%@ taglib uri="http://struts.apache.org/tags-logic-el"; prefix="logic" %>
  

No EL required for that one.  But do use the JSTL tags instead whenever
possible. :)

[BTW, in a Servlet 2.3 container, you do not need all those  tags in 
web.xml.  If you use the correct URI, the tlds will be located in the .jar 
files in WEB-INF/lib.]


--
Wendy Smoak



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



RE: Struts-EL problem with struts-el-1.3.0-dev

2005-07-28 Thread Marco Mistroni
Hello Joe,
Yes I actually reverted to using c:if, and it worked
Just fine

I wanted just to report the situation to see if I was 
Using the taglib incorrectly...


Thanx again and regards
marco


-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED] 
Sent: 28 July 2005 12:15
To: Marco Mistroni; 'Struts Users Mailing List'
Subject: Re: Struts-EL problem with struts-el-1.3.0-dev

At 11:08 AM +0100 7/28/05, Marco Mistroni wrote:
>anyone could give me some hints on what's wrong?
>Do you think the fact that I have both  struts-taglib and struts-el in
>my
>Lib directory could cause problems?

No, because el actually depends on taglib -- you have to have taglib to
use el.

If you're also using JSTL, I would always advise using  
whereever it works -- not that this shouldn't be fixed if it turns 
out to be a bug.

Joe


>Hello all,
>I have an app which is using struts 1.3.. I wanted to 'replace'
>existing struts tag with struts-el tag.
>So I downloaded struts-el-1.3.0-dev and put it into my jar, (along with
>struts-taglib-1.3.0-dev)
>
>I have declared taglibs in web.xml, and I wrote a simple page which
uses
>Struts-el inside a logic:tag
>
>And, to my surprise, it did't work 
>Basically I have an attribute of type collection in my HttpSession, and
>I was trying to access it from the page using
>
>
>
>
>for doublechecking, I wrote a scriptlet code that was trying to get the
>'results' attribute from the session, to see that if it was actually
>there..
>and it was there
>
>Even the c:forEAch loop that uses JSTL to get that attribute works
>fine..
>
>for providing as much info as I can, here is my web.xml
>
>** WEB.XML (TAGLIBS ONLY) *
>
>   
> /WEB-INF/struts-bean.tld
> /WEB-INF/struts-bean.tld
>   
>
>   
> /WEB-INF/struts-html.tld
> /WEB-INF/struts-html.tld
>   
>
>   
> /WEB-INF/struts-logic.tld
> /WEB-INF/struts-logic.tld
>   
>
>   
> /WEB-INF/struts-nested.tld
> /WEB-INF/struts-nested.tld
>   
>
>   
> /WEB-INF/struts-tiles.tld
> /WEB-INF/struts-tiles.tld
>   
>
>
>   
> /WEB-INF/struts-bean-el.tld
> /WEB-INF/struts-bean-el.tld
>   
>
>   
> /WEB-INF/struts-html-el.tld
> /WEB-INF/struts-html-el.tld
>   
>
>   
> /WEB-INF/struts-logic-el.tld
> /WEB-INF/struts-logic-el.tld
>   
>
>   
> /WEB-INF/struts-tiles-el.tld
> /WEB-INF/struts-tiles-el.tld
> 
>***
>
>and here is my JSP (only relevant part)***
>
><%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %>
><%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
><%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html" %>
><%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean" %>
><%@ taglib uri="/WEB-INF/struts-logic-el.tld" prefix="logic"%>
>
><% if(session.getAttribute("results") != null) {
>   java.util.Collection coll =
>(java.util.Collection)session.getAttribute("RESULTS");
>   System.out.println(" in session there are " + coll.size() +
>" elements!!!"); // this print successfully
> }
>%>
>
>
>
> name="${sessionScope.results}">hellovalue="${statusMsg}"/>
> 
>   
>
>
> 
> // this displays the loop data
>
>
>***
>
>
>other than that, in my \lib directory I have both
>struts-taglib-1.3.0-dev and struts-el-1.3.0-dev,
>and I am running my code on Jboss 3.2.5
>
>
>Thanks in advance and regards
>   marco
>
>
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


-- 
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

-
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: Struts-EL problem with struts-el-1.3.0-dev

2005-07-28 Thread Joe Germuska

At 11:08 AM +0100 7/28/05, Marco Mistroni wrote:

anyone could give me some hints on what's wrong?
Do you think the fact that I have both  struts-taglib and struts-el in
my
Lib directory could cause problems?


No, because el actually depends on taglib -- you have to have taglib to use el.

If you're also using JSTL, I would always advise using  
whereever it works -- not that this shouldn't be fixed if it turns 
out to be a bug.


Joe



Hello all,
 I have an app which is using struts 1.3.. I wanted to 'replace'
existing struts tag with struts-el tag.
So I downloaded struts-el-1.3.0-dev and put it into my jar, (along with
struts-taglib-1.3.0-dev)

I have declared taglibs in web.xml, and I wrote a simple page which uses
Struts-el inside a logic:tag

And, to my surprise, it did't work 
Basically I have an attribute of type collection in my HttpSession, and

I was trying to access it from the page using




for doublechecking, I wrote a scriptlet code that was trying to get the
'results' attribute from the session, to see that if it was actually
there..
and it was there

Even the c:forEAch loop that uses JSTL to get that attribute works
fine..

for providing as much info as I can, here is my web.xml

** WEB.XML (TAGLIBS ONLY) *
   
  
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
  

  
/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
  

  
/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
  

  
/WEB-INF/struts-nested.tld
/WEB-INF/struts-nested.tld
  

  
/WEB-INF/struts-tiles.tld
/WEB-INF/struts-tiles.tld
  

   
  
/WEB-INF/struts-bean-el.tld
/WEB-INF/struts-bean-el.tld
  

  
/WEB-INF/struts-html-el.tld
/WEB-INF/struts-html-el.tld
  

  
/WEB-INF/struts-logic-el.tld
/WEB-INF/struts-logic-el.tld
  

  
/WEB-INF/struts-tiles-el.tld
/WEB-INF/struts-tiles-el.tld

***


and here is my JSP (only relevant part)***

<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic-el.tld" prefix="logic"%>

<% if(session.getAttribute("results") != null) {
java.util.Collection coll =
(java.util.Collection)session.getAttribute("RESULTS");
System.out.println(" in session there are " + coll.size() +
" elements!!!"); // this print successfully
}
%>



hello

  


 
    // this displays the loop data



***


other than that, in my \lib directory I have both
struts-taglib-1.3.0-dev and struts-el-1.3.0-dev,
and I am running my code on Jboss 3.2.5


Thanks in advance and regards
marco







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



--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex


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



RE: STruts-EL

2005-07-26 Thread Karr, David
Another good suggestion would be to NOT use a different taglib prefix
for the struts-el tag libraries.  In the initial examples, you might
have seen examples like "html" and "html-el".  I don't recommend that
(anymore).  If you use the same prefix, then that will be less to change
when you port your code to JSP 2.0.

> -Original Message-
> From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 26, 2005 7:36 AM
> To: 'Struts Users Mailing List'
> Subject: STruts-EL
> 
> 
> Hello all,
>   Anyone can suggest me a good link from where I can 
> learn Struts-EL?
> 
> Thanx and regards
>   Marco
> 
> 
> 
> 
> -
> 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: STruts-EL

2005-07-26 Thread Jeff Beal
The second example would actually have to be:

"
/>

-- Jeff

On 7/26/05, Jeff Beal <[EMAIL PROTECTED]> wrote:
> It's a lot more clear to compare the difference between:
> 
> 
> 
> and
> 
> "/>
> 
> Especially considering the following scenarios that "just work" in EL:
> 
>   -- What if "someObj" may be in more than one scope?
>   -- What if there *is* no 'someObj'?
>   -- What if someProp is null?
> 
> -- Jeff
> 
> On 7/26/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> > M4RC0 wrote:
> >
> > >I mean, why to use
> > >
> > >instead
> > >
> > >
> > >
> > Because typing ${} is easier/cleaner than typing <%= %> and it's JSP 2.0
> > syntax.
> >
> > Dave
> >
> >
> >
> > -
> > 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: STruts-EL

2005-07-26 Thread Wendy Smoak
From: "M4RC0" <[EMAIL PROTECTED]>
> But, a newbie question: whitch are the beneficts of using Struts-EL
> instead standar struts taglibs or JSTL???

These aren't mutually exclusive, typically you'll use the original Struts
taglib alone, or Struts-EL and JSTL 1.0 together [in a Servlet 2.3/JSP 1.2
container].

(Then when you move to Servlet 2.4/JSP 2.0, you go back to the original
Struts tags, plus JSTL 1.1.)

> After reading documentation, i really don't understand why, when and
> where to use Struts-EL.

What typically happens is that you discover JSTL, and then get frustrated by
the fact that you _can't_ use expressions in the Struts taglibs [with JSP
1.2].  Enter Struts-EL, which gives you that ability.

In your example, that runtime expression will not be able to "see" variables
set with JSTL, such as the status of a loop inside  or anything
set with .  Try this:
   <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
   
   <%= myval %>
(It won't even compile...)

The flip side of that is:  JSTL cannot "see" scripting variables.  This is
intentional. :)

If you're going to use JSTL 1.0, then you should use Struts-EL along with
it.

-- 
Wendy Smoak


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



Re: STruts-EL

2005-07-26 Thread Jeff Beal
It's a lot more clear to compare the difference between:



and

"/>

Especially considering the following scenarios that "just work" in EL:

  -- What if "someObj" may be in more than one scope?
  -- What if there *is* no 'someObj'?
  -- What if someProp is null?

-- Jeff

On 7/26/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> M4RC0 wrote:
> 
> >I mean, why to use
> >
> >instead
> >
> >
> >
> Because typing ${} is easier/cleaner than typing <%= %> and it's JSP 2.0
> syntax.
> 
> Dave
> 
> 
> 
> -
> 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: STruts-EL

2005-07-26 Thread Dave Newton

M4RC0 wrote:

I mean, why to use 


instead

 

Because typing ${} is easier/cleaner than typing <%= %> and it's JSP 2.0 
syntax.


Dave



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



Re: STruts-EL

2005-07-26 Thread M4RC0
But, a newbie question: whitch are the beneficts of using Struts-EL
instead standar struts taglibs or JSTL???
After reading documentation, i really don't understand why, when and
where to use Struts-EL.
I mean, why to use 

instead

???

Thanks!

-- 
M4RC0

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



Re: STruts-EL

2005-07-26 Thread Wendy Smoak
> Anyone can suggest me a good link from where I can learn
> Struts-EL?

http://struts.apache.org/userGuide/building_view.html#struts-el
http://struts.apache.org/faqs/struts-el.html

You can find Struts-EL in the 'contrib' directory of the 1.2.7 binary
distribution.

-- 
Wendy Smoak


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



Re: Struts-EL

2005-05-08 Thread Niall Pemberton
The "EL" flavour tags allow you to use "expression language" (EL) in the
attributes of the struts tags in a Servlet 2.3 container (which Tomcat
4.1.31 is). Once you upgrade to a Servlet 2.4 container (e.g. Tomcat 5.x),
which comes with EL support provided then you will need to switch back to
the "regular" flavour struts tags.

If you need/want to use expression language then yes its a good choice - as
is using version 1.0.x of the standard tag library (JSTL). Both allow you to
use Servlet 2.4 features before you actually upgrade to a Servlet 2.4
container.

You can do one thing so that upgrading to a Servlet 2.4 container in the
future is a painless exercise. That is to put all your taglib declarations
into a separate jsp file (say "TaglibDirectives.jsp") as follows:

-- START TaglibDirectives.jsp -
<%@ taglib uri=http://struts.apache.org/tags-html-el  prefix="html"
%><%@ taglib uri=http://struts.apache.org/tags-bean-el  prefix="bean"
%><%@ taglib uri=http://struts.apache.org/tags-logic-el  prefix="logic"
%><%@ taglib uri=http://struts.apache.org/tags-tiles-el  prefix="tiles"
%>
-- END   TaglibDirectives.jsp -

Then in your jsps where you use these tags, you simply include this
directives jsp:

<%@ include file="/TaglibDirectives.jsp" %>

The advantage of doing this is when you upgrade to a Servlet 2.4 container,
all you need to do is change this one file to switch back to the "regular"
struts tags:

-- START TaglibDirectives.jsp -
<%@ taglib uri=http://struts.apache.org/tags-html  prefix="html"
%><%@ taglib uri=http://struts.apache.org/tags-bean  prefix="bean"
%><%@ taglib uri=http://struts.apache.org/tags-logic  prefix="logic"
%><%@ taglib uri=http://struts.apache.org/tags-tiles  prefix="tiles"
%>
-- END   TaglibDirectives.jsp -

This also works well for the "JSTL" tags - because their URI changed from
JSTL 1.0.x (for use with Servlet 2.3) to JSTL 1.1.x (for use with Servlet
2.4)

Niall

- Original Message - 
From: "Vano Beridze" <[EMAIL PROTECTED]>
Sent: Sunday, May 08, 2005 7:41 PM


> I'm new to struts.
> I'm going to use only struts-el tags in my jsps.
> The web server is tomcat 4.1.31.
>
> Is it a good choice? Is there any reason I should use basic (old) struts
> tags?



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



Re: struts-el webapp NullPointerException

2005-04-27 Thread Woodchuck
yup, that's what i do now.  works great :)


--- Morris Jones <[EMAIL PROTECTED]> wrote:
> Hmmm!  I must have missed that in the docs.  Thanks!
> 
> So for the same functionality, I should include the JSTL _and_ Struts
> 
> taglibs in my JSPs and write expressions with abandon?  And perhaps
> that 
> explains why the struts-el webapp doesn't work with Tomcat 5 ...
> 
> Mojo
> 
> Woodchuck wrote:
> > hihi Morris,
> > 
> > sorry but i have to ask, why do you need the struts-el library when
> you
> > are using Tomcat 5.0.28?
> > 
> > Tomcat 5 already has EL capability built-in.
> > 
> > 
> > woodchuck
> > 
> > 
> > --- Morris Jones <[EMAIL PROTECTED]> wrote:
> > 
> >>I can't find any record in the bugzilla of this being a known
> >>problem, but
> >>maybe the struts-el libraries aren't tracked in the bugzilla:
> >>
> >>Tomcat 5.0.28
> >>Struts 1.2.4
> >>Windows 2000
> >>
> >>I installed the strutsel-exercise-taglib webapp from
> >>contrib/struts-el/webapp.
> >>
> >>The index page gives a NullPointerException:
> >>
> >>java.lang.NullPointerException
> >>org.apache.struts.taglib.TagUtils.pageURL(TagUtils.java:1114)
> >>
> >>
> > 
> >
>
rg.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:466)
> > 
> >>
> >
>
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:329)
> > 
> >>
> org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:475)
> >>org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:334)
> >>
> >>
> > 
> >
>
org.apache.strutsel.taglib.html.ELLinkTag.doStartTag(ELLinkTag.java:666)
> > 
> >>
> >
>
org.apache.jsp.index_jsp._jspx_meth_html$1el_link_0(index_jsp.java:146)
> > 
> >>org.apache.jsp.index_jsp._jspService(index_jsp.java:118)
> >>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>
> >>
> > 
> >
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> > 
> >>
> >
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> > 
> >>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>
> >>Is this webapp DOA, or just not useful in this environment?
> >>
> >>Mojo
> >>-- 
> >>Morris Jones
> >>Monrovia, CA
> >>http://www.whiteoaks.com
> >>Old Town Astronomers: http://www.otastro.org
> >>-- 
> >>Morris Jones
> >>Monrovia, CA
> >>http://www.whiteoaks.com
> >>Old Town Astronomers: http://www.otastro.org
> >>
>
>>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > 
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> Morris Jones
> Monrovia, CA
> http://www.whiteoaks.com
> Old Town Astronomers: http://www.otastro.org
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: struts-el webapp NullPointerException

2005-04-27 Thread Morris Jones
Hmmm!  I must have missed that in the docs.  Thanks!
So for the same functionality, I should include the JSTL _and_ Struts 
taglibs in my JSPs and write expressions with abandon?  And perhaps that 
explains why the struts-el webapp doesn't work with Tomcat 5 ...

Mojo
Woodchuck wrote:
hihi Morris,
sorry but i have to ask, why do you need the struts-el library when you
are using Tomcat 5.0.28?
Tomcat 5 already has EL capability built-in.
woodchuck
--- Morris Jones <[EMAIL PROTECTED]> wrote:
I can't find any record in the bugzilla of this being a known
problem, but
maybe the struts-el libraries aren't tracked in the bugzilla:
Tomcat 5.0.28
Struts 1.2.4
Windows 2000
I installed the strutsel-exercise-taglib webapp from
contrib/struts-el/webapp.
The index page gives a NullPointerException:
java.lang.NullPointerException
org.apache.struts.taglib.TagUtils.pageURL(TagUtils.java:1114)

rg.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:466)

org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:329)
org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:475)
org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:334)

org.apache.strutsel.taglib.html.ELLinkTag.doStartTag(ELLinkTag.java:666)

org.apache.jsp.index_jsp._jspx_meth_html$1el_link_0(index_jsp.java:146)
org.apache.jsp.index_jsp._jspService(index_jsp.java:118)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Is this webapp DOA, or just not useful in this environment?
Mojo
--
Morris Jones
Monrovia, CA
http://www.whiteoaks.com
Old Town Astronomers: http://www.otastro.org
--
Morris Jones
Monrovia, CA
http://www.whiteoaks.com
Old Town Astronomers: http://www.otastro.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

--
Morris Jones
Monrovia, CA
http://www.whiteoaks.com
Old Town Astronomers: http://www.otastro.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: struts-el webapp NullPointerException

2005-04-27 Thread Woodchuck
hihi Morris,

sorry but i have to ask, why do you need the struts-el library when you
are using Tomcat 5.0.28?

Tomcat 5 already has EL capability built-in.


woodchuck


--- Morris Jones <[EMAIL PROTECTED]> wrote:
> I can't find any record in the bugzilla of this being a known
> problem, but
> maybe the struts-el libraries aren't tracked in the bugzilla:
> 
> Tomcat 5.0.28
> Struts 1.2.4
> Windows 2000
> 
> I installed the strutsel-exercise-taglib webapp from
> contrib/struts-el/webapp.
> 
> The index page gives a NullPointerException:
> 
> java.lang.NullPointerException
>   org.apache.struts.taglib.TagUtils.pageURL(TagUtils.java:1114)
> 
>
rg.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:466)
> 
>
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:329)
>   org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:475)
>   org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:334)
> 
>
org.apache.strutsel.taglib.html.ELLinkTag.doStartTag(ELLinkTag.java:666)
> 
>
org.apache.jsp.index_jsp._jspx_meth_html$1el_link_0(index_jsp.java:146)
>   org.apache.jsp.index_jsp._jspService(index_jsp.java:118)
>   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> 
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
> Is this webapp DOA, or just not useful in this environment?
> 
> Mojo
> -- 
> Morris Jones
> Monrovia, CA
> http://www.whiteoaks.com
> Old Town Astronomers: http://www.otastro.org
> -- 
> Morris Jones
> Monrovia, CA
> http://www.whiteoaks.com
> Old Town Astronomers: http://www.otastro.org
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Struts-EL with Hibernate and LazyInitializationException (no session)

2004-12-20 Thread Marius Botha
Thanks David,

I thought "loading the object directly before putting it in the scope" would
be the best option for now, but will check out the hibernate docs.

Our controllers and hibernate mapping file is generated from a UML model.
The mapping file specifies that the collection should be loaded "lazily".
What I am doing is I am calling a method on an object called Resource that
will attempt to go through all the user's properties (a collection) and find
the object in the collection that matches and then return it. However, the
collection has not been initialized at that time and that is when I get the
exception.

Thanks again.

Marius

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: 21 December 2004 07:07
To: Struts Users Mailing List
Subject: RE: Struts-EL with Hibernate and LazyInitializationException
(no session)


Marius,

In Hibernate when you use Lazy initialization it means no attempt is made to
read your data from the database UNTIL you ask for a component of the
object.  So, if you save your object to a scope (request, session, tile,
application) and close your "session" object.  You might get around this
problem if you put your Session object into the client's session scope but
that would eat up connections.  I recommend you check out hibernate.org's
suggestions on this in their documentation.  Offhand, I would suggest
loading the object directly before putting it in the scope.  How are you
"lazily" loading it?

Regards,
David

-Original Message-
From: Marius Botha [mailto:[EMAIL PROTECTED]
Sent: Monday, December 20, 2004 9:56 AM
To: [EMAIL PROTECTED]
Subject: Struts-EL with Hibernate and LazyInitializationException (no
session)


Hi there,

I'm hoping someone out there have some experience with struts and Hibernate
and can point me in the right direction. I'm fairly new to struts and have
actually been using JSF, Hibernate and JBoss for the last couple of months
so this was my only reference point. In JSF using the EL is quite powerful
and I believed I would have the same functionality in struts but must be
missing something somewhere

My Hibernate and JBoss experience is also very limited so please excuse me
if I'm not technically correct. I use Hibernate, which Lazily initializes
the objects and collections as required all running in JBoss. I created my
own JSTL calendar tag to use with struts, the parameters of which is
populated using the standard expression language. For example:



The "user" object is of type Resource.class (my own class) which contains a
collection (lazily initialized by Hibernate) called "userProperties". The
getDateFormat() method reads from this collection and is supposed to return
the user's date format preference.

This works perfectly if I use any other normal String property for example
like ${user.name}, which is initialized when the object is added to the
session (I think...?). Using JSF this also works perfectly as faces seems to
manage the EL and Lazily initialization of objects differently (i.e. without
any problems). However when I use struts, this fails and I get the exception
below. I think it indicates that the tag cannot find the Hibernate session
associated with the current user at runtime. I had a similar problem with
ActionForms, however I created a servlet filter which wraps the request in a
user transaction, but it doesn't seem to work...

Any help or hints will be much appreciated.

Thanks,

Marius Botha


net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a
collection - no session or session was closed
at
net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollec
tion.java:209)
at
net.sf.hibernate.collection.PersistentCollection.write(PersistentCollection.
java:84)
at net.sf.hibernate.collection.Bag.add(Bag.java:281)
at
com.workpool.resource.AbstractResource.addUserProperty(AbstractResource.java
:234)
at com.workpool.resource.Resource.getProperty(Resource.java:316)
at com.workpool.resource.Resource.getDateFormat(Resource.java:406)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:
278)
at
org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.jav
a:107)
at
org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:
204)
at
org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:
163)
at
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:101

RE: Struts-EL with Hibernate and LazyInitializationException (no session)

2004-12-20 Thread David G. Friedman
Marius,

In Hibernate when you use Lazy initialization it means no attempt is made to
read your data from the database UNTIL you ask for a component of the
object.  So, if you save your object to a scope (request, session, tile,
application) and close your "session" object.  You might get around this
problem if you put your Session object into the client's session scope but
that would eat up connections.  I recommend you check out hibernate.org's
suggestions on this in their documentation.  Offhand, I would suggest
loading the object directly before putting it in the scope.  How are you
"lazily" loading it?

Regards,
David

-Original Message-
From: Marius Botha [mailto:[EMAIL PROTECTED]
Sent: Monday, December 20, 2004 9:56 AM
To: [EMAIL PROTECTED]
Subject: Struts-EL with Hibernate and LazyInitializationException (no
session)


Hi there,

I'm hoping someone out there have some experience with struts and Hibernate
and can point me in the right direction. I'm fairly new to struts and have
actually been using JSF, Hibernate and JBoss for the last couple of months
so this was my only reference point. In JSF using the EL is quite powerful
and I believed I would have the same functionality in struts but must be
missing something somewhere

My Hibernate and JBoss experience is also very limited so please excuse me
if I'm not technically correct. I use Hibernate, which Lazily initializes
the objects and collections as required all running in JBoss. I created my
own JSTL calendar tag to use with struts, the parameters of which is
populated using the standard expression language. For example:



The "user" object is of type Resource.class (my own class) which contains a
collection (lazily initialized by Hibernate) called "userProperties". The
getDateFormat() method reads from this collection and is supposed to return
the user's date format preference.

This works perfectly if I use any other normal String property for example
like ${user.name}, which is initialized when the object is added to the
session (I think...?). Using JSF this also works perfectly as faces seems to
manage the EL and Lazily initialization of objects differently (i.e. without
any problems). However when I use struts, this fails and I get the exception
below. I think it indicates that the tag cannot find the Hibernate session
associated with the current user at runtime. I had a similar problem with
ActionForms, however I created a servlet filter which wraps the request in a
user transaction, but it doesn't seem to work...

Any help or hints will be much appreciated.

Thanks,

Marius Botha


net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a
collection - no session or session was closed
at
net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollec
tion.java:209)
at
net.sf.hibernate.collection.PersistentCollection.write(PersistentCollection.
java:84)
at net.sf.hibernate.collection.Bag.add(Bag.java:281)
at
com.workpool.resource.AbstractResource.addUserProperty(AbstractResource.java
:234)
at com.workpool.resource.Resource.getProperty(Resource.java:316)
at com.workpool.resource.Resource.getDateFormat(Resource.java:406)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:
278)
at
org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.jav
a:107)
at
org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:
204)
at
org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:
163)
at
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:101)
at
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:129)
at
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate
(ExpressionEvaluatorManager.java:75)
at
org.apache.strutsel.taglib.utils.EvalHelper.evalString(EvalHelper.java:74)
at
com.workpool.struts.component.calendar.CalendarMonthPopupTag.setFormatPatter
n(CalendarMonthPopupTag.java:28)
at
org.apache.jsp.notebook.note_005flist_jsp._jspx_meth_c_monthViewPopup_0(note
_005flist_jsp.java:176)
at
org.apache.jsp.notebook.note_005flist_jsp._jspService(note_005flist_jsp.java
:106)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.se

Re: struts-el

2004-09-10 Thread Jason Lea
Woodchuck wrote:
--- Craig McClanahan <[EMAIL PROTECTED]> wrote:
 

On Fri, 10 Sep 2004 18:23:46 +1200, Jason Lea <[EMAIL PROTECTED]>
wrote:
   

Though, if you are using tomcat 5 (which has JSP2/JSTL1.1) then you
don't need struts el, just use the normal struts tags as Tomcat
 

takes
   

care of the EL expressions.
 

To be a little bit more verbose, this behavior is only enabled (in
Tomcat 5 or any other container that implements JSP 2.0) if your
web.xml file declares itself to be compatible with Servlet 2.4, by
including the following text at the top:
   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">
   

is it good practice in general to not use live references to the
various definition files in web.xml?
do servlet containers cache these definition files?  (ie. only fetch
them once at startup?)
is it possible to store all of these definition files locally and
reference them all locally in web.xml?
 

From what I understand those are not live references, they just look 
like URLs but they are not fetched.  I think they are treated as an 
identifier/version.  You will find the web-app_2_4.xsd file in Tomcat 
5's servlet-api.jar for example

thanks,
woodchuck
 

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


		
__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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


--
Jason Lea



Re: struts-el

2004-09-10 Thread Woodchuck

--- Craig McClanahan <[EMAIL PROTECTED]> wrote:

> On Fri, 10 Sep 2004 18:23:46 +1200, Jason Lea <[EMAIL PROTECTED]>
> wrote:
> 
> > Though, if you are using tomcat 5 (which has JSP2/JSTL1.1) then you
> > don't need struts el, just use the normal struts tags as Tomcat
> takes
> > care of the EL expressions.
> 
> To be a little bit more verbose, this behavior is only enabled (in
> Tomcat 5 or any other container that implements JSP 2.0) if your
> web.xml file declares itself to be compatible with Servlet 2.4, by
> including the following text at the top:
> 
> 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">

is it good practice in general to not use live references to the
various definition files in web.xml?

do servlet containers cache these definition files?  (ie. only fetch
them once at startup?)

is it possible to store all of these definition files locally and
reference them all locally in web.xml?

thanks,
woodchuck

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




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Re: struts-el

2004-09-09 Thread Craig McClanahan
On Fri, 10 Sep 2004 18:23:46 +1200, Jason Lea <[EMAIL PROTECTED]> wrote:

> Though, if you are using tomcat 5 (which has JSP2/JSTL1.1) then you
> don't need struts el, just use the normal struts tags as Tomcat takes
> care of the EL expressions.

To be a little bit more verbose, this behavior is only enabled (in
Tomcat 5 or any other container that implements JSP 2.0) if your
web.xml file declares itself to be compatible with Servlet 2.4, by
including the following text at the top:

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">

Craig

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



Re: struts-el

2004-09-09 Thread Jason Lea
Claudia Woestheinrich wrote:
Hallo,
I want to uses Struts-el but I can't find the source.
Where can I get it?
 

If you download struts and unzip the file it will have 3 directories:  
contrib, lib and webapp
look in contrib/struts-el

Though, if you are using tomcat 5 (which has JSP2/JSTL1.1) then you 
don't need struts el, just use the normal struts tags as Tomcat takes 
care of the EL expressions.

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


--
Jason Lea

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


Re: struts-el

2004-09-09 Thread Craig McClanahan
On Fri, 10 Sep 2004 08:15:19 +0200, Claudia Woestheinrich
<[EMAIL PROTECTED]> wrote:
> Hallo,
> 
> I want to uses Struts-el but I can't find the source.
> Where can I get it?
> 

It's in the standard Struts source distribution (or CVS), under
"contrib/struts-el".

> Thanks Claudia

Craig

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