?
- are there other ways to achieve my goals?
Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
of instanceOf in Java.
I know that premature optimization is the root of all evil, but this app
I am working on must deal with a lot of list manipulation
thank you, Martin.
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED
be missing?
Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Tarek Nabil wrote:
Thanks a lot Luca for pointing this out. I must say it's completely new
information to me. I wonder if it's really accurate and relevant to all
containers.
For example, in Oracle Containers for Java (OC4J), when you redeploy an
application, the OC4J instance is restarted
only marginally relevant to this thread, I recently read arguments
against using Singletons in web apps:
http://wiki.apache.org/tomcat/OutOfMemory
Luca
Tarek Nabil wrote:
Thanks a lot Kris for the explanation.
Actually, I'm starting to feel that moving to JSTL 1.0 was not such a
wise
if this helps
Luca
Tarek Nabil wrote:
Hi everyone,
I'm moving from the Struts tag libraries to JSTL and I'm having a bit of
a hard time. Things don't work as I thought they would. For example, I'm
not able to use constants defined in classes for comparison, which is
something I used to do
too.
- I exported the range value as Context parameters
- in the JSP view I used JSTL variables to access the parameters and
build navigation links between pages without any scriptlets
this was powerful, simple and flexible, but then again, that was just me.
Luca
[EMAIL PROTECTED] wrote
all, there even is no guarantee that there's an SQL DB the webapp can
talk to.
Those tag-libs would still be good to have in the toolset for quick and
dirty tasks (prototyping for examples), even though they are far from
ideal in many cases...
Just my 2 cents of euro.
Luca
this with a scriptlet of course, but I have made so much to
avoid this, that I would like to stick to JSTL 1.0 as much as possible
Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks! I had to turn it inot this for Tomcat4:
cache_buster=c:out value=${now.time}/
but it did the job
Luca
Hassan Schroeder wrote:
Luca Passani wrote:
is there a JSTL trick to generate a random number?
Not random, but for the cache-busting behavior you want, how about
How can I translate this:
%=(name.length()20 ? name.substring(0,20) : name)%
into its JSTL equivalent?
Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Martin Cooper wrote:
Yes, it will work the same.
It works like a charm. You rock. Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
and split it in pages, possibly
with backward and forward navigation. I would really like to avoid scriptlets.
BTW is pagination part of the view or is it part of the business logic
according to struts?
Thanks
Luca
-
To unsubscribe, e
}
but makes me wonder if having this code in the action really makes sense.
Any ideas?
Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Martin Cooper wrote:
Take a look at the 'bind' tag in the Jakarta Taglibs Unstandard tag library.
See:
http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#bind
interesting. Do you have an example of how that should be used?
Thanks
Luca
action from the underlying API. Should I hold my breath?
Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
corrected
Luca
Rahul Akolkar wrote:
Yes, ofcourse.
Luca - I probably should've clarified, but my comments weren't about
the example you used, rather the question whether tags in your taglib
should extend BodyTagSupport as a rule
for the returned source markup.
My question is, in general, what is the rationale for inheriting from
BodyTagSupport everywhere?
what is the performance hit when inheriting from BodyTagSupport as
compared to TagSupport?
Thank you
Luca
because the compiler/JVM already did the optimization for me?
- are there better ways/tools to measure tag-lib performance?
Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
ooops, I felt this was a general taglib question, more than a Struts
question. It only takes struts as an example,
but the question is is there a reason why it makes sense to always
subclass BodyTagSupport in a tag-library?
Luca
Martin Cooper wrote:
Once again, please ask questions about
the result of my effort once I am done.
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
definitely help.
Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
are independent.
What I really want is to mimic in my tag what html:link does behind the
scenes to turn the link to an action
into an actual link.
Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
Do you use some tricks to make the compiler remove the debugging info
completelly at build time?
for ex, making isBebug() return a constant false value?
Luca
David McReynolds wrote:
On the last two struts projects we have adopted the policy of wrapping
our log4j info and debug statements
?
For good measure I just downloaded the struts source code...
Thanks
Luca
PS: Martin, thanks for your answer to the other question.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
about the way log4j works?
- do the Struts tags use log4J?
- if not, do struts tag use some other strategy for logging?
- where do I find the source code of the Struts tag? I guess I could
probably learn a lot by looking at them :)
Thanks
Luca
(tag 'menu' must be nested inside a
'document' tag);
}
}
Questions:
- Will this work, as far as you can tell?
- is there a performance hit in doing this?
- can someone think of other solutions?
Thank you
Luca
thank you. Very instructive.
luca
Martin Cooper wrote:
A long time ago, we had the exact same issue with the Struts
html:form tag, since the form element tags wanted to talk to the
form tag itself. The problem also manifests itself when using
jsp:include, as well as Tiles. The solution we chose
you were right. The six classes boiled down to something
as simple as:
public class WallH2 extends HeadingHelper {
public WallH2 () {
super.level = 2;
}
}
thanks
Luca
Rahul P Akolkar wrote:
luca wrote:
are you saying 6 simple classes + a complicated one?
Yes.
That would work
tag-lib
is supposed to look as much as possible as HTML to be easy to
learn and use.
thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
/
become in that case?
Thank you for your time
Luca
-Original Message-
From: luca [mailto:[EMAIL PROTECTED]
Hi, I'm a bit familiar with JSTL, but right now I need to
integrate with some existing JSP code which uses the struts
tag-lib and I am a bit lost there.
How do I turn this JSTL
not sure how I can fix this.
I do have some instance variables (necessary to allow the two tags too
cooperate), but I make sure they are initialized by doStartTag().
I attach the code of the two tags, if this can help...
thanks
Luca
differently app servers may behave
thank you
Luca
===
Sorry to be a pain, but maybe someone has a clue about this absolute
mistery with Weblogic and nested tags. First I created a minimal JSP
with just two tags:
wall:img src
Thanks
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to ServletResponseWrapper
inly in version 2.4.
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/servletapi/javax/servlet/ServletResponseWrapper.html#getContentType()
Does anyone have any idea of how to get to the same
info also for version 2.3?
thanks
Luca
/tools/java/wurflapi-xom/antbuild/src/net/sourceforge/wurfl/wall/
Downloads:
http://wurfl.sourceforge.net/java/installation.php
Thank you
Luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
--
since the internal tags only add info to the main tag and have no output
per se.
Right now I am using
return(EVAL_BODY_INCLUDE);
at the end of the onStartTag() method
Is there a way to tell the JSP engine to parse the tags but
discard the output?
thank you
Luca
() //rather than getVar_name()
is this a deadly sin?
thanks
luca
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
38 matches
Mail list logo