Hi all,
Why fmt:formatNumber switches response characher encoding? And how to
avoid it?
My platform is TomCat 4.1.12 on w2k.
Thanks ahead
Andrew
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi, Andrew.
-Original Message-
From: Andrew Guts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 6:36 PM
Why fmt:formatNumber switches response characher encoding? And how to
avoid it?
My platform is TomCat 4.1.12 on w2k.
As i18n-capable formatting tags in JSTL
Kan,
Thanks for your answer. I am a newbie with Tomcat/Java and do not know
how to do that. By the way it switches to the same locale, but different
character encoding (my language has at least 4 character encodings).
Andrew
Kan Ogawa wrote:
Hi, Andrew.
-Original Message-
From:
This snippet prints out up-to-date information but it is slow ...
c:import url=channel.jsp
c:param name=rssUrl value=http://www.slowurl.rss; /
/c:import
This snippet makes it fast but stale...
c:import url=channel.jsp var=x scope=application
c:param name=rssUrl value=http://www.slowurl.rss;
On Wed, 18 Dec 2002, Brian Buckley wrote:
How can one use JSTL to do something in between, such as to update the
c:import once an hour?
c:if test=??? test if applicationScope.x is more than an hour old ???
c:import url=channel.jsp var=x scope=application
c:param name=rssUrl
Correction -- I meant to include an c:if clause around the fast but stale
way.
c:if test=${empty applicationScope.x}
c:import url=channel.jsp var=x scope=application
c:param name=rssUrl value=http://www.slowurl.rss; /
/c:import
/c:if
c:out value=${applicationScope.x} escapeXml=false /
Thanks.
You could create a Date object and compare the time property of this
object against the current time; Hans has shown how to do this in previous
messages.
It might be easier to use the Cache Taglib, which isn't part of JSTL but
does exactly what you're looking for.
Thanks, Shawn. I found
Okay, I think the problem is that my getter method returns a String but
the setterMethod takes an integer:
public String getDay();
public void setDay(int day);
If I change it to return an integer, it works fine.. I find this
especially weird since getDay() isn't ever called in any of the
Mike Cantrell wrote:
Okay, I think the problem is that my getter method returns a String but
the setterMethod takes an integer:
public String getDay();
public void setDay(int day);
If I change it to return an integer, it works fine.. I find this
especially weird since getDay() isn't