RE: Tag to Unescape an HTML String?

2004-01-26 Thread Martin van Dijken
Hey Jim and Dan, The URLDecoder.decode method decodes a URLEncoding. This is the encoding browsers do when you type for instance a spacechar in the location bar, the browser replaces it with %20. This is definitely not the same thing as HTML encoding in which you would replace the char by amp;.

RE: Tag to Unescape an HTML String?

2004-01-26 Thread Henri Yandell
Commons Lang 2.0+ contains a StringEscapeUtils which has an escapeHtml and unescapeHtml that handle the 's etc. I can look to adding these to the String Taglib as it depends on Lang anyway, is easy to code and is in need of an update to fit Lang 2.0. Still waiting for JSP 2.0 to be a bit more

RE: QUESTION ABOUT XML

2004-01-26 Thread Chris Ward
Hi, I know your question has been answered, but I'd recommend you get the examples .war file for your distribution of JSTL. Here's the URL for JSTL 1.0 http://apache.ntcity.co.uk/jakarta/taglibs/standard-1.0/ It gives neat little examples of all the JSTL tags and how to use them. It may help

FMT question

2004-01-26 Thread Dima Gutzeit
Dear list members , I am using to FMT taglibrary for localization of my webapp. Whe defining the locale in the web.xml file everything works just fine but I can not change the locale of default bundle on the fly. Doing this : fmt:setLocale value=en_US scope=session/ does not help. Can anyone

Re: FMT question

2004-01-26 Thread Kris Schneider
What property files (resource bundles) are available in your app? Do you have either a bundle_en.properties or a bundle_en_US.properties file? Quoting Dima Gutzeit [EMAIL PROTECTED]: Dear list members , I am using to FMT taglibrary for localization of my webapp. Whe defining the locale in

Re: FMT question

2004-01-26 Thread Dima Gutzeit
I have bundle_en_US as well as bundle_ru_RU. I can not switch the fmt to use another locale file during the runtime while changing it in web.xml : context-param param-name javax.servlet.jsp.jstl.fmt.locale /param-name param-value

Re: QUESTION ABOUT XML

2004-01-26 Thread satish
Thanks Siddharth This example works , where as in my case I am reading xml string session scope , pasring the string and trying to set a variable which can be used as url parameter . This is what my code looks like.. c:set var=file value=${sessionScope.FILE1} / x:parse xml=${file}

RE: Tag to Unescape an HTML String?

2004-01-26 Thread Daniel Lipofsky
I didn't try it myself, but the docs say that c:param encodes using URLEncoder.encode() - so there should not be any style encoding and URLDecoder.decode should work fine. But I don't speak from experience. - Dan -Original Message- From: Martin van Dijken [mailto:[EMAIL PROTECTED]

Re: FMT question

2004-01-26 Thread Dima Gutzeit
Here is the summary of the behaviour on my side : On the first page of the application everything works great. Problem starts when I c:redirect to another JSP page in the application. On this new page , the application totaly forget what locale has been set nad takes the settings from web.xml

Re: QUESTION ABOUT XML

2004-01-26 Thread satish
Thanks, I will look at the examples .war files - Original Message - From: Chris Ward [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Monday, January 26, 2004 3:23 AM Subject: RE: QUESTION ABOUT XML Hi, I know your question has been answered, but I'd recommend

Works: Struts + c:import w/ Tomcat 5.0.18!!!

2004-01-26 Thread Timo --Blazko-- Boewing
Hiho all, Just for interest: with Tomcat 5.0.18 (prior: 5.0.16) it finally works: Including a fragment using JSTL's c:import or jsp:include that is invoked by a Struts Action! Prior, it failed, when the importing JSP was also invoked by a Struts action; thus having two Struts' Action calls in

NullPointerException - newbie question

2004-01-26 Thread Lee Peik Feng
Hi, I'm using tomcat 5.0.18 and jakarta-taglibs-standard-1.0.4 with J2SDK 1.4.2, WinXP I encounter the following exception : java.lang.NullPointerException at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:153) .. java.lang.NullPointerException at

Re: Where is the guid lines for writing tags.

2004-01-26 Thread Antony Paul
I found it here. http://jakarta.apache.org/taglibs/guidelines.html I got the link from Tomcat bug database. If this link is not provided in any of the taglibs site documentation please include it. rgds Antony Paul - Original Message - From: Antony Paul [EMAIL PROTECTED] To: Tag Libraries