looping on a list of lists (or accessing custom attributes of a list)

2006-06-03 Thread Luca Passani
? - are there other ways to achieve my goals? Thanks Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: looping on a list of lists (or accessing custom attributes of a list)

2006-06-03 Thread Luca Passani
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

Weblogic 9.0 and JSTL 1.1 ${variable} expansion

2006-04-22 Thread Luca Passani
be missing? Thanks Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: c:set and runtime expressions

2006-04-05 Thread Luca Passani
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

Re: c:set and runtime expressions

2006-04-04 Thread Luca Passani
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

Re: Mixing EL and Java expressions

2006-03-22 Thread Luca Passani
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

Re: Pagination source code

2005-12-18 Thread Luca Passani
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

Re: JSTL and test for file existence

2005-11-25 Thread Luca Passani
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

random numbers and JSTL

2005-10-24 Thread Luca Passani
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]

Re: random numbers and JSTL

2005-10-24 Thread Luca Passani
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

translation from scriptlet

2005-09-09 Thread Luca Passani
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]

Re: JSTL and Java Constants

2005-08-31 Thread Luca Passani
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]

JSTL, struts and pagination

2005-08-31 Thread Luca Passani
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

JSTL and Java Constants

2005-08-30 Thread Luca Passani
} 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]

Re: JSTL and Java Constants

2005-08-30 Thread Luca Passani
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

Re: JSTL and Java Constants

2005-08-30 Thread Luca Passani
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]

Re: TagSupport vs BodyTagSupport

2005-07-24 Thread Luca Passani
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

TagSupport vs BodyTagSupport

2005-07-23 Thread Luca Passani
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

Optimizing tag-lib performance

2005-07-23 Thread Luca Passani
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

Re: TagSupport vs BodyTagSupport

2005-07-23 Thread Luca Passani
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

Re: Integrating Struts with my taglib

2005-07-21 Thread Luca Passani
the result of my effort once I am done. Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Integrating Struts with my taglib

2005-07-19 Thread Luca Passani
definitely help. Thanks Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Integrating Struts with my taglib

2005-07-19 Thread Luca Passani
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

Re: question about integration with log4j

2005-02-01 Thread luca passani
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

Struts integration

2005-01-17 Thread luca
? 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]

question about integration with log4j

2005-01-16 Thread luca
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

question about integration with Tiles

2005-01-06 Thread 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

Re: question about integration with Tiles

2005-01-06 Thread 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

Re: one class implementing many tags

2004-11-30 Thread luca
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

one class implementing many tags

2004-11-29 Thread luca
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]

Re: struts-logic counterpart of this...

2004-11-18 Thread luca
/ 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

nested tags

2004-11-18 Thread luca
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

Re: nested tags

2004-11-18 Thread 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

Struts integration

2004-11-02 Thread luca
Thanks Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Hot to get the ContentType from a ServletResponseWrapper (servlet 2.3)

2004-09-18 Thread luca
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

new tag-lib here too (wireless)

2004-09-17 Thread 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

ignoring whitespaces inside a tag

2004-08-29 Thread luca
-- 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

HashMap of HashMaps and nested loop

2004-07-09 Thread 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]