RE: using JSP2.0 / JSTL1.1 with Struts

2004-09-22 Thread Erez Efrati
Jason, 

Thanks for replying me though it took me sometime to try it out.
What about JSTL 1.1? Do I have to download it by myself and replace the 
Previous 1.0 version? Or is it part of JBoss or Tomcat 5.0?

Thanks again,

Erez


-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 11:49 PM
To: Struts Users Mailing List
Subject: Re: using JSP2.0 / JSTL1.1 with Struts

Erez Efrati wrote:

Hi all,
 
Until now I've been using Struts 1.1 with JSP1.2/JSTL 1.0 with the use
of JSTL EL extension for Struts tags.
Html-el etc..
Now I'd like to move on and take advantage of the JSP2.0 and JST1.1 new
features.
I am running with JBoss 3.2.5 + Tomcat 5.0.
 
Any special steps? Do I need to download JSTL 1.1 by myself ?
 
Thanks in advance,
 
Erez
  

Don't know about the JBoss side of things.  But I'm using Tomcat 
5.0+JSP2.0/JSTL1.1

I guess this question is going to come again too... :)

I think the main points are:

1. change the web.xml declaration to have

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

So that it uses Servlet 2.4 + JSP2.0

2. Tag-libs: no longer need to be specified in the web.xml, so you can 
remove those entries
You don't use the struts-el tags, as EL is provided by the container.
In the JSP you include the taglibs for example:

/WEB-INF/jsp/include/prelude.jspf:

%@   taglib prefix=c uri=http://java.sun.com/jsp/jstl/core;
%%@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt;
%%@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions;
%%@ taglib prefix=html
uri=http://jakarta.apache.org/struts/tags-html;
%%@ taglib prefix=logic 
uri=http://jakarta.apache.org/struts/tags-logic;
%%@ taglib prefix=bean
uri=http://jakarta.apache.org/struts/tags-bean;
%%@ taglib prefix=tiles 
uri=http://jakarta.apache.org/struts/tags-tiles;
%%@ taglib prefix=nested 
uri=http://jakarta.apache.org/struts/tags-nested;
%%@ taglib prefix=display uri=http://displaytag.sf.net;
%

I think that is all that is required, there is an optional step 3:
3. Read the JSP2.0 spec for the newweb.xml  jsp-config option for 
controlling JSPs
Which allows things like those tag-libs above to be included on every 
JSP page
eg

jsp-config
jsp-property-group
descriptionJSP Configuration/description
display-nameJSPConfiguration/display-name
url-pattern*.jsp/url-pattern
!-- no scriplets, only taglibs can be used --
scripting-invalidtrue/scripting-invalid
page-encodingUTF-8/page-encoding
 
include-prelude/WEB-INF/jsp/include/prelude.jspf/include-prelude
include-coda/WEB-INF/jsp/include/coda.jspf/include-coda
/jsp-property-group
/jsp-config


Let me know if I missed anything...

-- 
Jason Lea



-
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: using JSP2.0 / JSTL1.1 with Struts

2004-09-22 Thread Jason Lea
Hi Erez,
Yes, downloaded Standard 1.1 and use that in my app - it says on this page:
http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
Standard-1.1 (JSTL 1.1) requires a JSP container that supports the Java 
Servlet 2.4 and JavaServer Pages 2.0 specifications. Jakarta Tomcat 5 
http://jakarta.apache.org/tomcat/ supports the new specifications. The 
Standard-1.1 taglib has been tested with Tomcat 5.0.3.

Erez Efrati wrote:
Jason, 

Thanks for replying me though it took me sometime to try it out.
What about JSTL 1.1? Do I have to download it by myself and replace the 
Previous 1.0 version? Or is it part of JBoss or Tomcat 5.0?

Thanks again,
Erez
-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 11:49 PM
To: Struts Users Mailing List
Subject: Re: using JSP2.0 / JSTL1.1 with Struts

Erez Efrati wrote:
 

Hi all,
Until now I've been using Struts 1.1 with JSP1.2/JSTL 1.0 with the use
of JSTL EL extension for Struts tags.
Html-el etc..
Now I'd like to move on and take advantage of the JSP2.0 and JST1.1 new
features.
I am running with JBoss 3.2.5 + Tomcat 5.0.
Any special steps? Do I need to download JSTL 1.1 by myself ?
Thanks in advance,
Erez
   

Don't know about the JBoss side of things.  But I'm using Tomcat 
5.0+JSP2.0/JSTL1.1

I guess this question is going to come again too... :)
I think the main points are:
1. change the web.xml declaration to have
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

So that it uses Servlet 2.4 + JSP2.0
2. Tag-libs: no longer need to be specified in the web.xml, so you can 
remove those entries
You don't use the struts-el tags, as EL is provided by the container.
In the JSP you include the taglibs for example:

/WEB-INF/jsp/include/prelude.jspf:
%@   taglib prefix=c uri=http://java.sun.com/jsp/jstl/core;
%%@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt;
%%@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions;
%%@ taglib prefix=html
uri=http://jakarta.apache.org/struts/tags-html;
%%@ taglib prefix=logic 
uri=http://jakarta.apache.org/struts/tags-logic;
%%@ taglib prefix=bean
uri=http://jakarta.apache.org/struts/tags-bean;
%%@ taglib prefix=tiles 
uri=http://jakarta.apache.org/struts/tags-tiles;
%%@ taglib prefix=nested 
uri=http://jakarta.apache.org/struts/tags-nested;
%%@ taglib prefix=display uri=http://displaytag.sf.net;
%

I think that is all that is required, there is an optional step 3:
3. Read the JSP2.0 spec for the newweb.xml  jsp-config option for 
controlling JSPs
Which allows things like those tag-libs above to be included on every 
JSP page
eg

   jsp-config
   jsp-property-group
   descriptionJSP Configuration/description
   display-nameJSPConfiguration/display-name
   url-pattern*.jsp/url-pattern
   !-- no scriplets, only taglibs can be used --
   scripting-invalidtrue/scripting-invalid
   page-encodingUTF-8/page-encoding
include-prelude/WEB-INF/jsp/include/prelude.jspf/include-prelude
   include-coda/WEB-INF/jsp/include/coda.jspf/include-coda
   /jsp-property-group
   /jsp-config
Let me know if I missed anything...
 


--
Jason Lea



Re: using JSP2.0 / JSTL1.1 with Struts

2004-09-16 Thread Jason Lea
Erez Efrati wrote:
Hi all,
Until now I've been using Struts 1.1 with JSP1.2/JSTL 1.0 with the use
of JSTL EL extension for Struts tags.
Html-el etc..
Now I'd like to move on and take advantage of the JSP2.0 and JST1.1 new
features.
I am running with JBoss 3.2.5 + Tomcat 5.0.
Any special steps? Do I need to download JSTL 1.1 by myself ?
Thanks in advance,
Erez
 

Don't know about the JBoss side of things.  But I'm using Tomcat 
5.0+JSP2.0/JSTL1.1

I guess this question is going to come again too... :)
I think the main points are:
1. change the web.xml declaration to have
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

So that it uses Servlet 2.4 + JSP2.0
2. Tag-libs: no longer need to be specified in the web.xml, so you can 
remove those entries
You don't use the struts-el tags, as EL is provided by the container.
In the JSP you include the taglibs for example:

/WEB-INF/jsp/include/prelude.jspf:
%@   taglib prefix=c uri=http://java.sun.com/jsp/jstl/core;
%%@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt;
%%@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions;
%%@ taglib prefix=html uri=http://jakarta.apache.org/struts/tags-html;
%%@ taglib prefix=logic 
uri=http://jakarta.apache.org/struts/tags-logic;
%%@ taglib prefix=bean uri=http://jakarta.apache.org/struts/tags-bean;
%%@ taglib prefix=tiles 
uri=http://jakarta.apache.org/struts/tags-tiles;
%%@ taglib prefix=nested 
uri=http://jakarta.apache.org/struts/tags-nested;
%%@ taglib prefix=display uri=http://displaytag.sf.net;
%

I think that is all that is required, there is an optional step 3:
3. Read the JSP2.0 spec for the newweb.xml  jsp-config option for 
controlling JSPs
Which allows things like those tag-libs above to be included on every 
JSP page
eg

   jsp-config
   jsp-property-group
   descriptionJSP Configuration/description
   display-nameJSPConfiguration/display-name
   url-pattern*.jsp/url-pattern
   !-- no scriplets, only taglibs can be used --
   scripting-invalidtrue/scripting-invalid
   page-encodingUTF-8/page-encoding
   include-prelude/WEB-INF/jsp/include/prelude.jspf/include-prelude
   include-coda/WEB-INF/jsp/include/coda.jspf/include-coda
   /jsp-property-group
   /jsp-config
Let me know if I missed anything...
--
Jason Lea

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