PLZ HELP For some unknown reason i can't get by taglib (dbtags) located

2002-04-09 Thread chuck amadi

PLz help forsome unknown reason i now can't get my dbtags.tld 
recongnised. Prior to this everthing was fine. I haven't used taglibs 
for a while but i know how to comfigure within my web application.I am 
aware that it requesting META-INF but this is also there as usaully.

I have completed the following :


1) got a dbtags.tld in my WEB-INF dir of my web application.
2) got a dbtags.jar in WEB-INF/lib dir of my web application.
3) The war files reside in my WEB-INF dir.
4) Modified my web.xml with the dbtags taglib element taglib/taglib 
as following.

 taglib
taglib-urihttp://jakarta.apache.org/taglibs/dbtags/taglib-uri
taglib-location/WEB-INF/dbtags.tld/taglib-location
/taglib

5) Finally the taglib directive at the top of my jsp.page as so

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
%@ page contentType=text/html%
%@ page language =java %

%@ taglib uri=http://jakarta.apache.org/taglibs/dbtags; prefix=sql %
html

Here is the error:

webapps/examples/jsppages/registerMember.jsp [5:0] Unable to open 
taglibrary http://jakarta.apache.org/taglibs/dbtags : Could not locate 
TLD META-INF/taglib.tld
Errors compiling registerMember.

Hoping to solve prior demostration to end user this friday.Any 
suggestions Thanx.

Cheers Chuck Amadi
Systems Programmer


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Can't locate META-INF and teething problems as a result with dbtags and mysql Driver

2002-04-09 Thread Chuck Amadi

Dave Newton wrote:

On Wednesday 03 April 2002 03:50 am, Chuck Amadi wrote:

Sorry if sounds pathetic nevetheless i have downloaded the   (mysql)
mm.mysql-2.0.4-bin.jar file .
I was able to get the PostgrSql to function correctly by installing
dbtags taglibrary and followed the configuration steps.

Anyway there is a dbtag.tld that resides in /WEB-INF sub directory of my
web application is this therefore utilised by both tag library Jar Files
. As i have to add a taglib element to my web app deployment descriptor
in my web.xml.

Thus i created my own mysql.tld as nothing else works nor this.So assume
that

taglib
  taglib-urimm.mysql-2.0.4-bin.jar/taglib-uri
  taglib-location/WEB-INF/mysql.tld/taglib-location
/taglib

So assume that the tag element below is functionally for both Jar Files.

taglib
  taglib-urihttp://jakarta.apache.org/taglibs/dbtags/taglib-uri
  taglib-location/WEB-INF/dbtags.tld/taglib-location
/taglib


I'm confused; the mm.mysql isn't a taglib.

Dave

Sorry for the confusion i mean i have downloaded the mysql driver and i 
won't to confirm the following:

Does the dbtags.taglibrary that i know functions with postgresql, also 
does and works the same way as the postgresql driver .
Thus i assume all i then do is add the open database connection like so 
and just use org.gjt.mm.mysql.Driver instead of org.postgresql.Driver.

I have this jar (mm.mysql-2.0.4-bin.jar) in my WEB-INF/lib dir of my web application.



%-- open database connction--%
table border =5 
!-- sets the table background to light blue--
sql:connection id=conn1
  sql:urljdbc:postgresql://***.**.*.**/plan1/sql:url
  sql:driverorg.postgresql.Driver/sql:driver
  sql:userId*/sql:userId
  sql:password/sql:password
/sql:connection

Cheers Chuck Amadi
Systems Programmer



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: i18n:bundle locale Initialization Problem

2002-04-09 Thread RAYMOND Romain


Hello,

I arrive to use fmt:bundle and fmt:locale but I would like to initialize
my default Locale  Bundle
to call the default .properties  message file  (for example
mymsgs.properties and not mymsgs_en_US.properties ...).
What Locale jave I to initialize to access my default bundle ?

Furthermore i try to init a context parameter in the deployment
descriptor of my web app like in the JSTL example :
- javax.servlet.jsp.jstl.fmt.Locale
- javax.servlet.jsp.jstl.fmt.Bundle
But those parameters are not accessible via my fmt:messages tag.

Any informations will be appreciate ...

Thanks.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




how can I compare strings in c:if

2002-04-09 Thread marba

I'm try to compare two string fields in a MySql table row
here's my code that evaluate false even if the strings are identical:

sql:query var=filiali dataSource=${ds}
 SELECT * FROM FILIALI_EXT_LOG LEFT JOIN FILIALI_EXT USING (ID)
WHERE FILIALI_EXT_LOG.LASTMODI  c:out
value=${user.lastTimeStamp}/
 /sql:query

c:forEach var=row items=${filiali.rows}
c:set var=campi value=51/
c:forEach var=i begin=0 end=${campi}

c:if test=${row.columns[i] == row.columns[i]}
evaluates true OK
/c:if

c:if test=${row.columns[i] == row.columns[i+campi]}
evaluates false even if Strings are identical
/c:if

Thank You



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: how can I compare strings in c:if

2002-04-09 Thread Shawn Bayern

Are you sure the strings are really identical?  For instance, just to be
sure you're using two different Strings with the same value, you can
experiment via the String copy constructor.  Doing this demonstrates that
JSTL's '==' operator does work correctly:

  %@ taglib prefix=c uri=http://java.sun.com/jstl/ea/core; %

  %
String a = foo;
String b = new String(a);
  %

  c:if test=${a == b}
a indeed equals b
  /c:if

Make sure that the two strings in your database don't have different
amounts of whitespace, are indeed of the same case (uppercase, lowecase,
etc.), and so on.  I often find it useful to print out values with a
marker (e.g., the ' character) on both sides to make sure I'm not missing
any whitespace.

-- 
Shawn Bayern
Author, JSP Standard Tag Library  http://www.jstlbook.com
(coming this summer from Manning Publications)

On Tue, 9 Apr 2002, marba wrote:

 I'm try to compare two string fields in a MySql table row
 here's my code that evaluate false even if the strings are identical:
 
 sql:query var=filiali dataSource=${ds}
  SELECT * FROM FILIALI_EXT_LOG LEFT JOIN FILIALI_EXT USING (ID)
 WHERE FILIALI_EXT_LOG.LASTMODI  c:out
 value=${user.lastTimeStamp}/
  /sql:query
 
 c:forEach var=row items=${filiali.rows}
 c:set var=campi value=51/
 c:forEach var=i begin=0 end=${campi}
 
 c:if test=${row.columns[i] == row.columns[i]}
 evaluates true OK
 /c:if
 
 c:if test=${row.columns[i] == row.columns[i+campi]}
 evaluates false even if Strings are identical
 /c:if
 
 Thank You
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




string substring tag

2002-04-09 Thread Andrea Grittini




Hello all,
Using String tag libraries to perform an substring of a formatted date string, like in 
this example:
 
str:substring start=2 end=4str:reversec:out  
value=${myvar}//str:reverse/str:substring
 
I got the same error as the uppercase error of the last week:


Maybe the tag don't support body variable or is the same error as uppercase?


Thank you.
 


Andrea Grittini (  mailto:[EMAIL PROTECTED])
Tel: +39-2-97482.1- Fax: +39-2-97482?
Computer Design S.r.l., Via Piave 46 - 20010 S.Stefano Ticino - ITALY
 http://www.cdesign.it/ 
  

 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: string substring tag

2002-04-09 Thread Henri Yandell

Hi Andrea,

All the string tags support bodies, and last weeks fix should affect every
tag as it was in an abstract class. I'm lazy(?) I do all the JSP like work
in an abstract class and my actual tag classes are really special
StringTag classes with a changeString method.

So I can test with the same data, what is the value that your c:out.. is
outputting into reverse?

Hen

On Tue, 9 Apr 2002, Andrea Grittini wrote:




 Hello all,
 Using String tag libraries to perform an substring of a formatted date string, like 
in this example:

 str:substring start=2 end=4str:reversec:out  
value=${myvar}//str:reverse/str:substring

 I got the same error as the uppercase error of the last week:


 Maybe the tag don't support body variable or is the same error as uppercase?


 Thank you.



 Andrea Grittini (  mailto:[EMAIL PROTECTED])
 Tel: +39-2-97482.1- Fax: +39-2-97482?
 Computer Design S.r.l., Via Piave 46 - 20010 S.Stefano Ticino - ITALY
  http://www.cdesign.it/




 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: how can I compare strings in c:if

2002-04-09 Thread Shawn Bayern

On Tue, 9 Apr 2002, marba wrote:

 javax.servlet.ServletException: Attempt to apply operator  to arguments
 of type org.apache.taglibs.standard.tag.common.sql.ColumnImpl and
 org.apache.taglibs.standard.tag.common.sql.ColumnImpl

Ah, I believe you're using an older version of the JSTL RI; sorry I didn't
notice that from your syntax.  With the current versio, you should just
retrieve the strings directly and compare them.  To modify your original
example, I believe you want the following:

sql:query var=filiali dataSource=${ds}
  SELECT * FROM FILIALI_EXT_LOG LEFT JOIN FILIALI_EXT USING (ID)
  WHERE FILIALI_EXT_LOG.LASTMODI  c:out value=${user.lastTimeStamp}/
 /sql:query

c:forEach var=row items=${filiali.rowsByIndex}
  c:set var=campi value=51/
c:forEach var=i begin=0 end=${campi}
  c:if test=${row[i] == row[i+campi]}
...

If you pull down the Beta1 version of JSTL from jakarta.apache.org, I
believe this comparison will work for you.  If not, just let us know.

-- 
Shawn Bayern
Author, JSP Standard Tag Library  http://www.jstlbook.com
(coming this summer from Manning Publications)


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




problems starting out

2002-04-09 Thread tony

Hello,

I'm new. I have read the last three or four pages of the archives and my
questions were not there but I bet they are a FAQ...

1. I can't get the URI right so I am getting can't find /dbtags
messages

2. I only need the escapeSQL tag from DBtags (the pages that worked with
Tomcat 3.x don't work with 4.x when insering ')

Can anyone point me to a step by step tutorial other than the one on the
jakarta site? (like in medecine second opinions often help)

Cheers

Tony Grant

-- 
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]