Hey Bruce,
Not entirely certain, but isn't it WS 6.0 that supports JSP 2.0? I was under
the impression that WS 5.x only supports version 1.2 of JSP, which still
works with a doctype and a dtd.
Grtz,
Martin
-Original Message-
From: Bruce Dempsey [mailto:[EMAIL PROTECTED]
Sent: maandag
Hey Paul,
There are essentially two ways:
1: Use the jakarta framework that the Jakarta JSTL implementation uses
itself. There are several classes there that allow you to evaluate EL.
2: Upgrade to a JSP 2.0 container. Tomcat 5 is such a container. This
container will automatically parse EL
Hey Roy,
I think you might want to read up on how the JSTL handles different
languages etc. What I'm seeing is that you use formatDate with a pattern
while you're saying that you've got Japanese and English mixed. Check out
how to use Locales in JSTL. If you set a Locale using a servlet,
Hey John,
No, but it's a hard no because you've got several things mixed up. What
you're saying is you want to submit a form inside a frame. However, once
this form is submit, the client is asking the server for a page in frame1.
Then whatever the server can come up with is put in frame1. This is
Hey Keith,
I still have to guess this has indeed something to do with JSTL not
understanding the .dob . Haven't been around SQL much of late so I can't
answer that one. Why not simplify this problem and use a fmt:formatDate tag
instead of doing the formatting in SQL?
Martin
-Oorspronkelijk
Hmm Keith,
Can you specify the url you're using to connect to the database? * out the
uid and psw of course... Also can you post a stack trace? I did a few
Googles on your exception and heard some people shouting the oracle thin
driver should work best. It's what I have used in the past and I've
Hey Dean,
A simple answer, it's not possible to do this. A tag is only allowed to
create Template text which is output directly to the client. So your HTML
etc would go fine, but your bean:message tag would be sent to the client
unparsed as well. There might be something you can do in JSP 2.0
Hey Wolfgang,
How do you represent an IP address as a long? Do you make 192.168.0.12
19216812? In that case, if you don't mind the zeroes, you could still
use formatNumber and use . as the grouping operator. I admit it's ugly, but
you'd get 192.168.000.012. As said, ugly. There is an
Hey Denis,
- first of all, this is really the list for non-struts taglibraries, for
struts issues please refer to [EMAIL PROTECTED]
- second, I'm not that sure what you mean, but can't you use the struts-el
taglibraries to create the param at the time the link is created? I think
the el-taglibs
is more clear, now.
Any Idea ?
Martin van Dijken wrote:
Hey Denis,
- first of all, this is really the list for non-struts taglibraries, for
struts issues please refer to [EMAIL PROTECTED]
- second, I'm not that sure what you mean, but can't you use the struts-el
taglibraries to create the param
Hey Keith,
I think you've got it. You might want to check section 8.3 of the JSTL
specification on how JSTL does it's full Locale lookup, it might be that the
page author specified the preferred locale through the request attributes
and then you're thrown off-balance. There are some other
Hey Thomas,
What exactly is the problem with using forEach? It simply loops an iterator,
map, array or collection and displays it's body content while it has results
left.
c:forEach items=${clientResult} var=row
option value=c:out value=${row.value}/c:out
value=${row.text}//option
van Dijken [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Friday, March 12, 2004 12:34
Subject: RE: Iterator : Newbie
Hey Gaurav,
Please explore a bit further.
- Your components are HTML snippets?
- The configuration on whether to display them, can be read how
Hey Thomas,
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
Shouldn't this also be :
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
Furthermore, Check whether in the c.tld file, at the set tag, the
rtexpr-value property is set to true. In the past the JSTL 1.1 distribution
Hey John,
Can you show me the code snippets you use yourself to setup a connection and
do a query in the servlet? Both the standard and the domain example please.
As always ;) no uid/passwd necessary...
Martin
-Oorspronkelijk bericht-
Van: John MccLain [mailto:[EMAIL PROTECTED]
Hey Sohil,
Why don't you do it the other way around and use JSTL as the front-end
and use the JSTL x tags to transform XML with XSL?
Martin
-Original Message-
From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: woensdag 25 februari 2004 17:17
To: 'Tag Libraries Users List'
Hey Riaan,
Try fiddling around with setting the locale in JSTL. In your example
code you create a SimpleDateFormat with a pattern as argument. JSTL uses
the constructor with a Locale as additional parameter.
Grtz,
Martin
-Original Message-
From: Riaan Oberholzer [mailto:[EMAIL
can you give me an example of
what I should give to jstl to print the time as
Europe/London ?
Thanks
Charl
--- Martin van Dijken [EMAIL PROTECTED] wrote:
Hey Riaan,
Try fiddling around with setting the locale in JSTL.
In your example
code you create a SimpleDateFormat
?
Thanks
Charl
--- Martin van Dijken [EMAIL PROTECTED]
wrote:
Hey Riaan,
Try fiddling around with setting the locale in
JSTL.
In your example
code you create a SimpleDateFormat with a
pattern as argument. JSTL
uses the constructor with a Locale
I always do, is use a definitely valid emailaddress as the from,
and set the reply-to header to the address that was entered on the
website.
Good luck!
Martin van Dijken
-Original Message-
From: Derek Haidle [mailto:[EMAIL PROTECTED]
Sent: woensdag 25 februari 2004 15:22
To: Tag
Hey Niall,
Please direct your question to the Struts-user list. This list is for
discussions of the non-struts taglibraries.
Grtz,
Martin
-Original Message-
From: Niall Lynch [mailto:[EMAIL PROTECTED]
Sent: dinsdag 24 februari 2004 13:29
To: [EMAIL PROTECTED]
Subject: Indexed
Hey Lorenzo,
Check out Lomboz or MyEclipse for JSP Eclipse plugins. Lomboz is open
source and therefore free, but I've found it to be slightly buggy.
MyEclipse (www.myeclipseide.org) costs $30 and is far more stable. There
are other options, check them at www.eclipse-plugins.info
Good luck,
the available tags or the available attributes of
the current tag. Excellent stuff
Martin
-Original Message-
From: Lorenzo Sicilia [mailto:[EMAIL PROTECTED]
Sent: dinsdag 24 februari 2004 15:30
To: Tag Libraries Users List
Subject: Re: jstl editor
Martin van Dijken wrote:
Hey
Hey Riaan,
Could you post the code to manually format the date? I can easily
compare that to what is being done by the JSTL implementation and give
you some feedback on that.
Grtz,
Martin
PS Thanks for hosting your application in our fine little country:)
-Original Message-
From:
Hey Jason,
I'm a little confused on what you're trying to accomplish. You have an
XML document that you wish to post to a certain location? Could you
describe in more detail the exact steps you are trying to perform in a
logical order? Let me take a guess.
What it looks like is that you obtain
Hey Lorenzo,
The Jakarta taglib can be found when you navigate on the jakarta site to
the section Downloads - Binaries. In the section release builds here
you can click on Taglibs - Library Releases. This shows a directory
listing of a mirror of apache. In this directory you should find a
Not exactly sure what you mean by database pooling, but:
I'd have to think you probably mean connection pooling. In most cases I
would use a datasource for obtaining a connection in the first place and
then leave the connection pooling up to the Container. Tomcat does this
through DBCP and
Hey Stephen,
When using tags, you always keep spacing between the tags. The body of a
c:forEach is often used for displaying output, so it has to output
everything between it's tags. In your case that's only whitespace and
newlines, but they still get output. What you might want to try is set
the
Hey Jim,
There's nothing exactly like this at Apache. I know of two taglib that
might be capable of what you want:
http://www.xephyrus.com/taglibs/
http://www.windgazer.nl/projects/FileTagLib/
In my opinion the windgazer taglib is more suited to your needs, since
Xephyrus' taglib is intended
The simplest optimization would be to create the 'sb' buffer
at least as big as the 'input' string. After all, even if
there were no actual substitutions, the 'sb' would be as big,
and this would avoid StringBuffer doing a lot of
reallocations, especially if 'input' is more than the 16
Hey zsolt,
Yes it can. Try:
fmt:formatDate pattern=${session_variable_name}/
Where you replace session_variable_name by the attributename in the
session under which you placed the pattern.
Grtz,
Martin
-Original Message-
From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
Sent:
function standalone as well.
http://jakarta.apache.org/struts/userGuide/dev_tiles.html
Good luck!
Martin van Dijken
-Original Message-
From: James Watkin [mailto:[EMAIL PROTECTED]
Sent: zaterdag 24 januari 2004 2:01
To: Tag Libraries Users List
Subject: RE: Tag to Unescape
Hey Tridev,
Try using the standard taglib instead of the xtags taglib. Standard is
just that, the JSTL standard and I'm not 100% certain xtags is still
being maintained.
Grtz,
Martin
Tridev Kodamasingh wrote:
Hi,
I am trying to apply xslt to a xml document through xtags inside a jsp
page.
don't see much usage of xtags over net.
Anyway.. thanks a lot for ur time.
-Original Message-
From: Martin van Dijken [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 9:28 AM
To: Tag Libraries Users List
Subject: Re: xtags, xsl, xml, jsp
Hey Tridev,
Try using the standard taglib
Never tried that, but if I'm not mistaken XSL has a mechanism built-in
to retrieve parameters passed from anywhere when the stylesheet is
loaded. Check out the http://www.w3schools.com xsl tutorial and
reference for more info.
Martin
wrote:
when i write the code below:
x:transform
Hey Antony,
Create a Tag class and make sure it has a method setDefault(String
default) Then make sure you add the attribute default to your tag's tld
description.
Martin
Antony Paul wrote:
Hi,
I tried to write a tag handler class which have an attribute default.
But javac wont compile
Hey Nic,
First of all if you have some concrete code, please supply it. Helps a
lot in understanding exactly what you mean...
I have an outlet table in my database, and each outlet has a color.
Typically, an outlet has three colors, meaning three entries with the
same outlet name, different
Hey Vinela,
Please post the relevant part of your JSP and XML. I'm not 100% sure,
but it looks like there's no XML parser in your web application. Or that
it has some errors. Tomcat 4.1 definitely bundles it along, but it might
be that that wasn't the case yet with 4.0. Either try 4.1 or put
)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
-Vinela
--- Martin van Dijken [EMAIL PROTECTED] wrote:
Hey Vinela,
Please post
Hey Antony,
Try using the c:forEach tag. It loops each item of lists, arrays etc.
Martin
Antony Paul wrote:
Hi all,
How to call a method of a bean which returns an Object from c:out/
tag. I have JSTL Standard 1.0 in a Tomcat 4.1.27. I am using commons
beanutils class RowSetDynaClass to
Hey Antony,
It is correct that that gives an error. You see it is impossible to call
methods in the Expression Language of JSTL. If your bean-class
implements java.util.Map however, it is possible to get the item you
want by using:
c:forEach var=i items=${list}
c:out value=${i[empno]}/br
Hey Antony,
You've got it wrong there. The solution for your simple example is this:
%@ page import=java.util.*%
%@ taglib uri=/WEB-INF/c.tld prefix=c%
Sample using JSTL Core tagsbr
%
Map map = new HashMap();
map.put(name,Anto Paul);
map.put(Place,Ollur);
map.put(Job,Programmer);
[EMAIL PROTECTED] wrote:
I found the following post but there was no answer. Does anyone know?
I have created a JSP page that use the xml tag library, specifically using
xpath. Everything works perfectly fine as long as I don't have a doctype
definition like the following in my XML instance:
Hey Eric,
Sounds like something is not reset after use. Can you post your code and
in particular the usage of Random?
Martin
[EMAIL PROTECTED] wrote:
Hi
I just downloaded the Random taglib, and when I try the example application,
it crashes exactly every fourth time when I hit the browser's
Hey Wallace,
I can't figure out your message entirely, it's a bit cryptic. Do you mean you're
looking for ${param[VariableName]} ??
Martin
-Original Message-
From: Wallace [mailto:[EMAIL PROTECTED]
Sent: maandag 20 oktober 2003 20:13
To: 'Tag Libraries Users List'
Subject: RE: is
Hey Hassan,
I was aware of the fact taht there were several extra steps necessary to get an HTTPS
connection, but not that it required this much code in the page. This makes the use of
IO very impractical for this use case. Now it would seem to be a very good idea to put
this code in the tag
Ah Benny!
Now you tell us the exact Exception ;) I've noticed before that a lot of older scripts
still assume that the - character is not allowed in domain names. We had an email
checker that barfed on it. This is probably the case here as well. Can anybody from
dev confirm this? And possibly
. /
/io:http
/xtags:parse
xtags:variable id=normalizedxml3 select=EPAY/
/body/html
- Original Message -
From: Martin van Dijken [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 11:44 AM
Subject: RE: Calling HTTPS URL
seems to work, anyway I've
just used this
script with HTTP (NO HTTPS) URL and it works correctly!
io:http url=https://www.fineco.it/fineco/PortaleLogin; action=POST
input=true output=true/
Tnx a lot.
- Original Message -
From: Martin van Dijken [EMAIL PROTECTED]
To: Tag
calling, I'm calling a
Servlet,
I tried with other 3 dots URL and the taglib works correctly!
Benny
- Original Message -
From: Martin van Dijken [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 1:11 PM
Subject: RE: Calling HTTPS
, there are several really good books on JSTL. I personally never read them, but I
hear good things about Shawn Bayern's book:
http://www.amazon.com/exec/obidos/tg/detail/-/1930110529/103-4305142-2848646
Grtz,
Martin van Dijken
-Original Message-
From: Jacob Wilson [mailto:[EMAIL
Hey Jeroen,
Sounds sensible, considering the fact that it is even a requirement of standard HTML
4.01. However, this is a modification of the spec I think. You might want to get in
touch with them, or try the taglib-dev dept.
Grtz,
Martin van Dijken
-Original Message-
From: Vianen
1. Define the TEI within the inner-loop
2. Have the scripting variables set to null by the TEI
3. In the startTag() method of inner-loop look up the
variables using
findAncestorWithClass()
4. Set the TEI variables to their new values
This would be perfect, except on number 1 the
Hey Lukas,
I'm not entirely certain what you're asking. Do you want to know how to pass info from
the tag to the inner-loop? If you're programming the inner-loop tag yourself, you can
simply do a findAncestorWithClass(this, MyTag.class) in the innerloop class. This
presents you with the
Hey KC,
Just checked the 1.0 spec and it doesn't look like it. Also, the other jakarta taglibs
don't seem to support this. It is of course possible to do this yourself using the
c:out tag. What you described can be rewritten to:
c: out
Hey Deepak,
Looks like you have a taglibrary in there somewhere that has an incorrect or missing
!DOCTYPE declaration in it's tld file. The DOCTYPE is required to be correct by the
XML parser so it can check if you have the syntax of your XML-file(in your case
tld-file) correct.
Grtz,
Martin
Hey Dima,
Could you post a little more source of your JSP page? This looks OK to me, so I'd need
a little more information to check what's going wrong.
Grtz,
Martin
-Original Message-
From: Dima Gutzeit [mailto:[EMAIL PROTECTED]
Sent: dinsdag 30 september 2003 21:40
To: [EMAIL
Hey Keyur,
I'm not certain since I don't have a test setup, but try the following:
Have your XMLResourceBundle class print out super.getLocale() in the handleGetObject()
method. What you need to know is whether super.getLocale() returns the desired Locale
(fr) or the default Locale since it
of the same
application:
(Declaration of some VXML variable ...)
var name=message expr='fmt:message bundle=${audioLabels}
key=message.new.mail/'/
Thanks.
- Original Message -
From: Martin van Dijken [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Wednesday
Hey Koen,
From the 2 questions you've asked I deduce you're working with struts. No offense
meant here, but this is a mailing list for the Jakarta Taglibs and their
implementation of JSTL. The taglibs Struts features are a whole different world. You
might wanna try asking your questions in the
Hey Sheri,
I've been searching the web and can only find this project
http://www.ehatchersolutions.com/JavaDevWithAnt/ which refers to a LabelTag. Hope that
helps, but I don't think it particularly has anything to do with the jakarta taglibs.
Martin
-Original Message-
From: Gorham,
Hey Adam,
The behaviour you describe seems to be according to specifications. I've inlined
section 8.4 of the spec below. This describes that you cannot use tags that establish
a Localization context if you want to prevent setLocale being called. I'm guessing
that's not altogether a big help
Hey Billy,
I've got your example working with one little difference, though it may not be
significant. I've got the value within the param tags instead of as value.
Grtz,
Martin
-Original Message-
From: Billy Bacon [mailto:[EMAIL PROTECTED]
Sent: donderdag 25 september 2003 19:56
Oh yeah,
Forgot something in my original mail. I noticed that several of the jakarta taglibs
that have a counterpart in JSTL have been deprecated. I'm not 100% certain this is the
case with xtags since it seems to have some extra functionality. However, it can never
hurt to see if you can get
Hey Andreas,
I can't verify right now that the c taglib actually does what you say, for lack of
time. I can confirm however that signs should at all times be escaped in HTML, also
when used in a href's. I've run into a similar problem with our product and had to
look into it myself.
If
Try putting the DOCTYPE on one line. The white-space might confuse the xmlparser.
Martin
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: vrijdag 19 september 2003 14:32
To: Tag Libraries Users List
Subject: Error in tld
Now Iam getting this error
it. Does anybody know of something like that?
Also, are the non-standard I18N taglibs deprecated or something? They're very similar
to the standard ones, but have different attribs etc.
Greetings,
Martin van Dijken
-
To unsubscribe
Hey guys,
I think this can be accomplished although not directly. I must admit it's a terrible
hack, so decide for yourself if you want to use this. I don't exactly have a test
situation, so I can't really test this, but try:
c:forEach items=${browseForm.map.colInfoList} begin=0 end=0
Oops,
Guess I spoke a little too fast there. The count does not, like I thought, expose the
list size, but the count of how many iterations have passed.
Sorry, no go,
Martin
-Original Message-
From: Martin van Dijken
Sent: woensdag 17 september 2003 14:02
To: Tag Libraries Users
implementation of the JSTL, not DBTags. DBTags has
been inactive since development on JSTL began, and it
should be considered deprecated for Servlet 2.3 or 2.4
containers.
- Morgan Delagrange
regards,
Lukasz
-Original Message-
From: Martin van Dijken [mailto:[EMAIL PROTECTED
not.
I've created a new bug in bugzilla and put yours and my message there.
check:
http://issues.apache.org/bugzilla/show_bug.cgi?id=22927
Greetings,
Martin van Dijken
-Original Message-
From: Mickael Cappozzo [mailto:[EMAIL PROTECTED]
Sent: donderdag 4 september 2003 10:50
To: 'Tomcat
.
Martin van Dijken wrote:
Hey Mickael,
I just noticed the exact same thing under totally different
circumstances. I posted about it and haven't heard from
anybody. Has
nobody else had this?
I checked the Jakarta-taglibs cvs and it seems the
sql:resultset tag
is doing everything
is displayed. It looks as if the
body of the last succesfully processed tag is displayed again somehow.
I can't really figure out whether this is a bug of the sql tag, an error in the
BodyTagSupport class or of course something I'm doing wrong. Any help is greatly
appreciated.
Martin van Dijken
Further examination of the exception does indeed seem to show you have a jar-file
problem. This kind of servlet exception usually means Tomcat can't find the indicated
resource, in your case LoopTagSupport.
Greetz,
Martin
-
method of doing this in a JDBC standards compliant way.
There are I think some ways of doing this in a database-specific manner, so what
database are you using?
Greetings,
Martin van Dijken
PS You might want to look into excellent techniques such as JDO or EJB's (I'd
recommend JDO
I've found that the editor we use (www.editplus.com) works largely identical to
ultraedit, syntax files will probably be exchangeable, so if you need an alternative
which works similar
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: maandag 11 augustus
Hey Jeff,
The exception is available as a parameter in the request attributes under
javax.servlet.error.exception.
Martin
-Original Message-
From: Jeff Born [mailto:[EMAIL PROTECTED]
Sent: woensdag 16 juli 2003 16:08
To: Tag Libraries Users List
Subject: RE: Exception var - how to
Heh,
Always nice to see a discussion like this, instead of having it turn into a stupid
flamewar. I have to agree with James Mitchell that it is very true that not everybody
has the opportunity nor the time to really LEARN j2ee programming. In that aspect the
sql-tags do indeed make for a
Agreed,
I think it a horrific thing to do data manipulation in a JSP tag in the first place.
Personally I think the whole SQL-taglib is something that never should have been
invented in the first place.
Martin
-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent:
of the Config object. I had to get all the way that far however
to understand how it works. I found the JSTL documentation a little vague on the
subject.
Martin van Dijken
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: dinsdag 8 juli 2003 16:29
To: [EMAIL PROTECTED
in my source file.
just my 2 cents
Martin van Dijken
-Original Message-
From: Neil Zanella [mailto:[EMAIL PROTECTED]
Sent: woensdag 9 juli 2003 8:00
To: Tag Libraries Users List
Subject: RE: removing those blank lines from the output
Despite the solutions presented here I think
. However, your solution relies on JSTL
alone, and this
works for me without any problems (see my code).
What doesn't work is setting a resource bundle with my Java
class, without
having to set the bundle in the JSP.
Best regards,
Eric
-Original Message-
From: Martin van Dijken
. Good luck with the path!
-Original Message-
From: Martin van Dijken [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 9. Juli 2003 17:33
To: Tag Libraries Users List
Subject: RE: How to create a general resource bundle for JSTL?
Hey Eric,
I've got to start working heavily with I18N
=org.apache.bookies
fmt:message key=threat
fmt:param value=${address}/
fmt:param value=${numberOfChildren}/
fmt:param value=${nameOfSpouse}/
/fmt:message
/fmt:bundle
Greetings,
Martin van Dijken
Madocke Interactive Media
Hi all
Till now, all JSP pages in our application had to have
84 matches
Mail list logo