I'm not sure I made my question clear. If I use c:out / (which
escapeXml is set to false by default so you don't have to define that),
everything works fine. My issue is that I have to convert certain
characters (new line or carriage returns are an example) into
their Javascript literals for
to my pages with core:out escapeXml=false
-Original Message-
From: Eric W Hauser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 10:35 AM
To: Tag Libraries Users List
Subject: RE: Java String to Javascript String
I'm not sure I made my question clear. If I use c:out
In the the resin.conf file, you need to specify:
caucho.com
http-server
jsp fast-jstl='false'/
/http-server
/caucho.com
If you are just using the core and fmt tag libraries, I would just
recommend using Resin's internal JSTL implementation. I've been using it
on production applications
Resin won't load from the webapp/lib directory unless you turn on the
classloader hack. I've been using the following method of defining jars
specific to a webapp with a lot of success (in web.xml):
classpath id=/path/to/jarfile.jar /
Also if you to add a whole directory:
classpath
Stored your month information in a scoped variable as a map, I would
recommend creating a static map that is a
org.apache.commons.collections.SequencedHashMap.
select name=startMonth
c:forEach items=monthMap var=month
c:choose
c:when test=${month.key == 10}
keep in mind that a TreeMap only supports natural ordering. if you use a
SequencedHashMap, it supports fifo ordering (first in first out). i
believe that the LinkedHashMap available in 1.4 JVM's operates the same
way.
On Wed, 5 Nov 2003, Popova, Marina wrote:
you could also try using TreeMap
Whenever I can't figure out what is going on with an evaluation, I just
debug. Download the source for taglibs and run the compiled jsp through a
debugger. That should give you some insight as to how the expression is
being evaluated and whether or not there is a bug that needs to be fixed.
On
Depending on what servlet container you are using, I would just recommend
not using tiles. If you are using a Servlet 2.3 container, then I would
recommend attempting to accomplish the same functionality of tiles using a
filter instead. It's pretty simple to implement, not to mention a lot
less
that give me the same functionality as tiles?
-Original Message-
From: Eric W Hauser [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 10:19 AM
To: Tag Libraries Users List
Subject: RE: tiles+wsad [OT??]
Depending on what servlet container you are using, I would just
-
From: Eric W Hauser [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 12:34 PM
To: Tag Libraries Users List
Subject: RE: tiles+wsad [OT??]
Yes, this is what I am talking about. You can write a filter to do
the same thing as tiles. It is very simple if all you need as a header
I'm not sure why implementing ExpressionEvaluatorManager is that
difficult. It is fairly simple to add this to existing tag libraries.
Not to mention that this is the way that all of the standard taglibs
evaluate their EL expressions. If you are looking for a good way to
implement this, look at
On Wed, 3 Sep 2003, Felipe Leme wrote:
- you *have* to add the code that evaluates the expression. With JSP 2.0 you
won't need to, it's done automatically
Although this is obviously a valid point, waiting for JSP 2.0 is not
really a good solution for the present. Especially if you are
Vim is an excellent editor for JSP and XML files...It's syntax
highlighting is good for pointing out when you miss a quote...
On Mon, 11 Aug 2003, Sgarlata Matt wrote:
I use Eclipse for Java and EditPlus for JSP. However, I don't see any
syntax highlighting files posted for the JSTL on
I would try using the Struts html-el tag libraries for doing this:
html:options property=po collection=${searchForm.po}/
You would obviously have to create a collection of beans that contained
the labelName and labelProperty accessors. More information on this
method can be obtained here:
The problem is with the locale on your Unix box. You have two choices.
Talk to your system administrator and make sure this is set properly on
your Unix box, or explicitly define the locale in your JSP like so:
fmt:setLocale value=en-US scope=request/
fmt:formatNumber type=currency
Doing what you want to do is actually pretty simple. You just have to
create your own JSP tag library to do it. You could create your own
library that was your own custom frame tag that excepting EL expressions
for its parameters. If you have the standard JSTL taglibs downloaded,
look at the
While discussing JSTL with some others developers today, a question came
up about the lack of helpful errors when using JSTL incorrectly. If I use
the following line of code:
c:out value=${sessionScope.mybean.value}/
and there is no accessor method of value, then JSTL just returns nothing.
If you want to use constant fields, check out the archives for this
list...There have been some good posts in the last couple of weeks on how
to accomplish this...JSTL does not provide a mechanism for retrieving
constant values from classes...Of course, there is a tag for it in the
unstandard
On Sat, 26 Jul 2003, Henri Yandell wrote:
On Sat, 26 Jul 2003, Eric W Hauser wrote:
If you want to use constant fields, check out the archives for this
list...There have been some good posts in the last couple of weeks on how
to accomplish this...JSTL does not provide a mechanism
.
-Original Message-
From: Eric W Hauser [mailto:[EMAIL PROTECTED]
i'm guessing that you are using Struts...so, why don't you just get those
fields out of the database in an Action class and set them as a request
attribute? maybe you could store them in a Map with constants in your JSP
i'm guessing that you are using Struts...so, why don't you just get those
fields out of the database in an Action class and set them as a request
attribute? maybe you could store them in a Map with constants in your JSP
as your keys and then use JSTL to retreive those values? If you're doing
that,
Although the bean idea is a good workaround, that may not be the most
efficient way to do this for a large application with a large of
collections. Since object created is one of the most expensive tasks in
Java, it may be more efficient to come up with a different solution than
using a bean as a
you may want to consider accepting EL as parameters to your tags...this is
much cleaner than using scriptlets...i did some googling for you and found
a good article on how to do this:
http://www.onjava.com/lpt/a/2864
this should get you well on your way...
On Thu, 10 Jul 2003, N. Chen wrote:
I searched through the archives, and I couldn't find a good answer for
this question. Is there a reason why there is not a JSTL tag to expose
the static final variables for a class? You can obviously do this by
importing the class and using %= MyClass.STATICVAR %, or by specifying
it as an
24 matches
Mail list logo