Re: RE : [jelly] include or import ?

2005-01-28 Thread Paul Libbrecht
Oh... interesting!
Now... is there one of them who "caches", if that makes sense in JSP 
(class-loading ?).

thanks
paul
Le 28 janv. 05, à 13:26, Marc DEXET a écrit :
-Message d'origine-
De : Paul Libbrecht [mailto:[EMAIL PROTECTED]
Do I understand correctly that the following should be true:
- j:import includes the script at compilation time (special from the
script-parsing ?) or at least the first time it's read then caches it.
- j:include loads and runs the script but dumps it out right away 
after

I think "include" is here according to JSP tag "include"
http://java.sun.com/products/jsp/syntax/1.1/syntaxref1112.html
and "import" to JSTL tag "import"
http://www.onjava.com/pub/a/pub/a/onjava/2002/05/08/jstl.html?page=2
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL5.html#65106
So it's for historical reasons in my opinion.
--
Marc DeXeT

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


RE : [jelly] include or import ?

2005-01-28 Thread Marc DEXET


> -Message d'origine-
> De : Paul Libbrecht [mailto:[EMAIL PROTECTED]
> Do I understand correctly that the following should be true:
> - j:import includes the script at compilation time (special from the
> script-parsing ?) or at least the first time it's read then caches it.
> - j:include loads and runs the script but dumps it out right away after
> 
I think "include" is here according to JSP tag "include"

http://java.sun.com/products/jsp/syntax/1.1/syntaxref1112.html

and "import" to JSTL tag "import"

http://www.onjava.com/pub/a/pub/a/onjava/2002/05/08/jstl.html?page=2
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL5.html#65106

So it's for historical reasons in my opinion.
-- 
Marc DeXeT


Re: [jelly] include or import ?

2005-01-28 Thread Paul Libbrecht
Dion,
Did we clear-up the differentiation of j:include and j:import?
I looked at the code some days ago and found simply no difference. Plus 
the tag-doc for one of them is wrong.

Do I understand correctly that the following should be true:
- j:import includes the script at compilation time (special from the 
script-parsing ?) or at least the first time it's read then caches it.
- j:include loads and runs the script but dumps it out right away after

thanks

Le 28 janv. 05, à 12:56, dion gillard (JIRA) a écrit :
 [ http://issues.apache.org/jira/browse/JELLY-171?page=history ]
dion gillard closed JELLY-171:
--
Resolution: Duplicate
Dupe of JELLY-170
Nested scripts should be compiled and cached

 Key: JELLY-171
 URL: http://issues.apache.org/jira/browse/JELLY-171
 Project: jelly
Type: Improvement
  Components: core / taglib.core
Versions: 1.0
 Environment: tomcat 5.0, Jelly 1.0 RC1
Reporter: Arnaud Masson

In the current version of jelly "import" tag, imported scripts are 
always parsed and recompiled each time the containing script runs, 
even if this script has already been compiled.
It isn't optimized if the compiled version of the main script must be 
cached for multiple read, for instance a web page.
In a JSP context, all included pages are compiled when the main jsp 
is compiled, so there is no performance penalty. That would be nice 
to have the same thing in jelly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira
-
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]