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
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
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]
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/
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
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
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
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
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
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
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; %
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
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
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
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
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;
:)) 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
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
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 {
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
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
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
22 matches
Mail list logo