RE: Currencies in other Locale than selected Bundle

2004-05-25 Thread Evgeny Gesin
Opps, I think I found the answer fmt:setLocale value=%= locale1 % / fmt:bundle basename=bundle Pfmt:formatNumber value=%= new Double(line.getTotal()) % type=currency //P /fmt:bundle fmt:setLocale value=%= locale2 % / fmt:bundle basename=bundle Pfmt:formatNumber value=%= new

How to parse a soap message

2004-05-25 Thread Danny Kruitbosch
Hi, I've been trying to parse a soap message with io:soap and then format the output with xtags:parse etc. I can't get it to work and keep getting errors. So next thing I did was going to the list archives and I saw some remarks on this issue. Seems that this works better if I were to use JSTL

servlet.jar location

2004-05-25 Thread David Schwartz
Where should servlet.jar be located for tomcat 5.0.24? David Schwartz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: servlet.jar location

2004-05-25 Thread Kris Schneider
common/lib/jsp-api.jar common/lib/servlet-api.jar Quoting David Schwartz [EMAIL PROTECTED]: Where should servlet.jar be located for tomcat 5.0.24? David Schwartz -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/

RE: servlet.jar location

2004-05-25 Thread David Schwartz
Thanks. Does common/lib have to be in the classpath? I have them there but servlet still doesn't work. I'm wondering if the mapping in web.xml is dif between tomcat 4 5. David Schwartz -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 7:33 AM

RE: servlet.jar location

2004-05-25 Thread Kris Schneider
Any JAR files in common/lib are automatically available to TC and its apps. See: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html For an explanation of TC's class loading architecture. Can you provide some detail about the errors you're getting? Quoting David Schwartz

Re: using JSTL with Sun ONE App Server 7

2004-05-25 Thread Helios Alonso
I was experimenting with something similar. Ensure you have a taglib entry in your web.xml file that asociate the URI (http://java.sun.com/jstl/core) with a tag library description file /WEB-INF/c.tld. This file should be there ;-) and referencing the classes that implements the tags. The

Re: How to parse a soap message

2004-05-25 Thread Kris Schneider
Have you tried (JSTL 1.0): %@ taglib prefix=x uri=http://java.sun.com/jstl/xml; % %@ taglib prefix=io uri=http://jakarta.apache.org/taglibs/io-1.0; % x:parse var=soapXml io:soap ... ... /io:soap /x:parse Quoting Danny Kruitbosch [EMAIL PROTECTED]: Hi, I've been trying to parse a

Iteration over Collection

2004-05-25 Thread Allistair Crossley
Hi guys, simple but annoying problem .. have been following documentation but does not happen for me. I have a ArrayList in the request as newStarters. I have tried the following: Attempt 1 = %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % c:forEach var=newStarter

Re: Iteration over Collection

2004-05-25 Thread Kris Schneider
It looks like you're using JSTL 1.1 so you can use its length function: %@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; % ${fn:length(requestScope.newStarters)} Quoting Allistair Crossley [EMAIL PROTECTED]: Hi guys, simple but annoying problem .. have been following

Re: Iteration over Collection

2004-05-25 Thread Helios Alonso
Remember that ${bean.property} maps to bean.getProperty() so arraylist.size doesn't do the trick. At 08:36 25/05/2004 -0400, you wrote: It looks like you're using JSTL 1.1 so you can use its length function: %@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; %

Re: How to parse a soap message

2004-05-25 Thread Benedetto Dell'Ariccia
I hav the same problem! Benny Kris Schneider wrote: Have you tried (JSTL 1.0): %@ taglib prefix=x uri=http://java.sun.com/jstl/xml; % %@ taglib prefix=io uri=http://jakarta.apache.org/taglibs/io-1.0; % x:parse var=soapXml io:soap ... ... /io:soap /x:parse Quoting Danny Kruitbosch [EMAIL

RE: Iteration over Collection

2004-05-25 Thread Allistair Crossley
thanks .. any idea about the iteration itself? -Original Message- From: Helios Alonso [mailto:[EMAIL PROTECTED] Sent: 25 May 2004 13:47 To: Tag Libraries Users List Subject: Re: Iteration over Collection Remember that ${bean.property} maps to bean.getProperty() so arraylist.size

RE: Iteration over Collection

2004-05-25 Thread Helios Alonso
I'm not sure about scopes, but if what you want to do is get info to display (I mean, nothing to do with request parameters) I'd use page scope: jsp:useBean id=newStarters class=java.util.ArrayList scope=page / c:forEach var=newStarter items=${newStarters} The jsp:useBean declares a new variable

1.1 / 1.0 Crossover

2004-05-25 Thread Allistair Crossley
Hi Guys I have just discovered something odd. My web.xml contains the following: taglib taglib-urihttp://java.sun.com/jsp/jstl/core/taglib-uri taglib-location/WEB-INF/tld/c.tld/taglib-location /taglib taglib

Re: 1.1 / 1.0 Crossover

2004-05-25 Thread Kris Schneider
Remove the TLD files from WEB-INF. Remove the taglib elements from web.xml. Use a Servlet 2.4 web.xml: web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;

RE: 1.1 / 1.0 Crossover

2004-05-25 Thread Allistair Crossley
:)) thanks! It all works perfectly :)) -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: 25 May 2004 14:41 To: Tag Libraries Users List Subject: Re: 1.1 / 1.0 Crossover Remove the TLD files from WEB-INF. Remove the taglib elements from web.xml. Use a Servlet 2.4

Test URL Tag?

2004-05-25 Thread Allistair Crossley
Hi Guys, Does anyone know of a tag where I can test for the existence of a URI and output the body if it exists? E.g tl:uriExists uri=http://www.domain.com/images/a.gif; img src=http://www.domain.com/images/a.gif; / /tl:uriExists This could use the HEAD http method just to ping the

URLExistsTag

2004-05-25 Thread Allistair Crossley
have done a by-no-means-robust tag that works import java.io.*; import java.net.*; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.TagSupport; /** * Output the tag body when a URL resource exists. * * @author allistairc */ public class URLExistsTag extends TagSupport {

Re: using JSTL with Sun ONE App Server 7

2004-05-25 Thread Justyna Horwat
Hi Darrel, Unfortunately, SunOne AppServer 7 does not load TLD's from jar files bundled within the container and made available via the container classloader. By default JSTL is bundled this way. You will need to copy your JSTL jar file to your web application's WEB-INF/lib directory. This way

RE: servlet.jar location

2004-05-25 Thread Wali Ansary
David, if things still don't work out, ya can put the jar files in JAVA_HOME/jre/lib/ext. They should be available to u. (I don't know whether this has any side effects, but it has worked fine for me). Wali Original Message Follows From: David Schwartz [EMAIL PROTECTED] Reply-To: Tag

RE: servlet.jar location

2004-05-25 Thread David Schwartz
I'm not getting any errors at this point - but the servlets don't work. I just get a blank page when calling servlets. They are registered in web.xml all jars are in common/lib. Looks like this... servlet servlet-namemyHandler/servlet-name servlet-classstuff.myHandler/servlet-class