Re: DateTime taglib to show client date

2002-03-28 Thread Pete Gordon

If your doing this for a web application, I suggest client-side javascript.
I don't believe the Date/Time of the client comes through the HTTP Request,
but you may want to look into the standard HTTP Request Headers that are
available.  I am not familar with the  Date/Time tag so I can't tell you if
it has something in it that does this or not.  : )

Pete Gordon



- Original Message -
From: Adam, Jason C [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 7:30 PM
Subject: DateTime taglib to show client date


 I was wondering if there is a way to use the DateTime taglib to show the
 clients date?  I have the tag working fine, but of course it shows the
date
 of the server.  I read the documentation on locales, but I can't seem to
 figure how to possibly use to automatically show the clients date.

 Thanks!

 Jason C. Adam
 Sun Certified Programmer for the Java(tm) 2 Platform
 Computer  Networking Services, EIS
 (303) 971-1740
 (720) 521-8769 pgr


 --
 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: Standard taglib - sql problem

2002-03-28 Thread Andrea Grittini

I have the same problem using the sql jstl.
When I connect to a DB I got an exception in the DoEndTag method.
I just used this tag:
 
sql:driver var=myDataSource 
 driver=sun.jdbc.odbc.JdbcOdbcDriver
 url=jdbc:odbc:guestbook
 /
sql:query var=pro  dataSource=${myDataSource} sql=select * from GuestBook / 

There is a workaround to get the recordset using this taglib??
This is quite urgent.
Thank you
 
This is the server output:
A program exception has occurred:
 
javax.servlet.jsp.JspException: Illegal action 
returned from doEndTag() method.
 
at 
JspPage_QueryIterate_jsp_Impl._jspService(JspPage_QueryIterate_jsp_Impl.java:201)
 
at 
com.hp.mwlabs.j2ee.containers.servlet.jsp.AbstractJspPage.service(AbstractJspPage.java:551)
 
at 
com.hp.mwlabs.j2ee.containers.servlet.jsp.JspServlet._service(JspServlet.java:766)
 
at 
com.hp.mwlabs.j2ee.containers.servlet.jsp.JspServlet.service(JspServlet.java:424)
 
at 
com.hp.mwlabs.j2ee.containers.servlet.WebApplicationBean$ServicePrivilegedAction.run(WebApplicationBean.java:4493)
 
at 
java.security.AccessController.doPrivileged(Native Method)
 
at 
javax.security.auth.Subject.doAsPrivileged(Subject.java:558)
 
at 
com.hp.mwlabs.j2ee.containers.servlet.WebApplicationBean.service(WebApplicationBean.java:1977)
 
at 
com.hp.mwlabs.j2ee.containers.servlet.RequestDispatcherImpl.forwardOrInclude(RequestDispatcherImpl.java:405)
 
at 
com.hp.mwlabs.j2ee.containers.servlet.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:134)
 
at 
com.hp.mwlabs.j2ee.containers.servlet.ServletContainerBean.processRequest(ServletContainerBean.java:772)
 
at 
com.hp.mwlabs.as.services.servlet.ServletContainerService.processRequest(ServletContainerService.java:542)
 
at java.lang.reflect.Method.invoke(Native Method)
 
at 
com.hp.mw.common.util.PolymorphicInvocationHandler.invoke(PolymorphicInvocationHandler.java:223)
 
at 
com.hp.mwlabs.csf.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:184)
 
at $Proxy87.processRequest(Unknown Source)
 
at 
com.hp.mwlabs.as.services.listeners.http.HttpRequestHandler.executeImpl(HttpRequestHandler.java:229)
 
at 
com.hp.mw.as.services.listeners.BaseRequestHandler.execute(BaseRequestHandler.java:124)
 
at 
com.hp.mwlabs.common.util.ExecutorPool$Entry.execute(ExecutorPool.java:400)
 
at 
com.hp.mwlabs.common.util.PeriodicExecutor.run(PeriodicExecutor.java:630)
 
at java.lang.Thread.run(Thread.java:484)

 

 
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/ 
  

 



Re: DateTime taglib to show client date

2002-03-28 Thread Subbarayan Ramanathan

The only solution is JavaScript I believe.

Adam, Jason C wrote:
 
 I was wondering if there is a way to use the DateTime taglib to show the
 clients date?  I have the tag working fine, but of course it shows the date
 of the server.  I read the documentation on locales, but I can't seem to
 figure how to possibly use to automatically show the clients date.
 
 Thanks!
 
 Jason C. Adam
 Sun Certified Programmer for the Java(tm) 2 Platform
 Computer  Networking Services, EIS
 (303) 971-1740
 (720) 521-8769 pgr
 
 --
 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]




xsl taglib

2002-03-28 Thread Tim Harrington

I'm trying to use the xsl taglib but I can't find it in any of the
distributions.  The release folder is empty and the nightly builds seem to
have a different collection of taglibs every night.  Non of them include the
xsl taglib.  Should I be using the standard libary now?  If so, what's the
corresponding call to the xsl InsertWithXSL?

I'm totally confused.


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




Re: How do you download the XSL taglib for windows?

2002-03-28 Thread David M. Karr

 Liz == Liz Gallagher Gallagher writes:

Liz The XSL taglib is not included in the entire binary distibution of the
Liz taglib nightly builds (I've downloaded and checked them ALL).  There are no
Liz XSL taglib release builds and all of the XSL taglib nightly builds are in
Liz tar format.  I can usually use Winzip to extract tarred files, but I am
Liz getting the error: invalid archive directory.  I've even gone as far as
Liz FTPing one of the tar files to a unix box and I have not been successful
Liz untarring it there either.  

Liz Thank you for any help you can give me,
Liz Liz Gallagher

Are you averse to using the JSTL itself?  The JSTL has XML/XSLT functionality,
which is well described in the JSTL specification.  In particular, the
x:transform tag does what the InsertWithXSL tag did, and more.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




Re: standard tag library XML example failures

2002-03-28 Thread Shawn Bayern

On Wed, 27 Mar 2002, Steve Spradlin wrote:

 The product I work with currently uses the xsl taglib available through
 Jakarta.  We are very interested in converting to the new standard tag
 library.  I downloaded the beta 1 standard tag library in order to review
 its capabilities.  It looks to me like we could really use it for style
 sheets and other things.  However, the XML examples are not working for me
 in the standard-examples.  I tried getting the latest jaxp and then xalan
 hoping my problem would be solved with no luck.  I have attached the
 exception below.  Has anyone experienced this?

Ha - I have.  :-)  I dealt with lots of different configurations of JARs
in trying to determine the most timely, compatible, and convenient set of
libraries to use for the out of the box standard-examples.war.  (It's
been a moving target for a while, so I can empathize with it not being
easy to track.)

The short answer, since I'm at JavaOne now and don't have time to suggest
specific URLs and versions, is to use the set of JARs distributed in
standard-examples.war (under WEB-INF/lib).  This is the prepackaged
version of our JSTL example pages, and it's distributed with the RI from
jakarta.apache.org/taglibs.

Hope that helps for the short term.  If you remind me when I have more
time, I can describe the histories and principles associated with the
distributions of the various XML parsing and transformation libraries.  
But it's probably just as well that I don't (since it's not particularly
interesting).  :-)

-- 
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]




Re: Standard taglib - sql problem

2002-03-28 Thread Shawn Bayern

Thanks for the report.

This is actually a minor bug in the return value of the RI's sql:query
(and sql:update) tag.  I've notated the problem in our bug-tracking
system; it'll get fixed soon after JavaOne (or possibly before, if other
RI team members have a more fluid environment than do I, currently writing
from a JavaOne kiosk).  :-)

Thanks again,

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

On Thu, 28 Mar 2002, Andrea Grittini wrote:

 I have the same problem using the sql jstl.
 When I connect to a DB I got an exception in the DoEndTag method.
 I just used this tag:
  
 sql:driver var=myDataSource 
  driver=sun.jdbc.odbc.JdbcOdbcDriver
  url=jdbc:odbc:guestbook
  /
 sql:query var=pro  dataSource=${myDataSource} sql=select * from GuestBook / 
 
 There is a workaround to get the recordset using this taglib??
 This is quite urgent.
 Thank you
  
 This is the server output:
 A program exception has occurred:
  
 javax.servlet.jsp.JspException: Illegal action 
returned from doEndTag() method.
  
 at 
JspPage_QueryIterate_jsp_Impl._jspService(JspPage_QueryIterate_jsp_Impl.java:201)
  
 at 
com.hp.mwlabs.j2ee.containers.servlet.jsp.AbstractJspPage.service(AbstractJspPage.java:551)
  
 at 
com.hp.mwlabs.j2ee.containers.servlet.jsp.JspServlet._service(JspServlet.java:766)
  
 at 
com.hp.mwlabs.j2ee.containers.servlet.jsp.JspServlet.service(JspServlet.java:424)
  
 at 
com.hp.mwlabs.j2ee.containers.servlet.WebApplicationBean$ServicePrivilegedAction.run(WebApplicationBean.java:4493)
  
 at 
java.security.AccessController.doPrivileged(Native Method)
  
 at 
javax.security.auth.Subject.doAsPrivileged(Subject.java:558)
  
 at 
com.hp.mwlabs.j2ee.containers.servlet.WebApplicationBean.service(WebApplicationBean.java:1977)
  
 at 
com.hp.mwlabs.j2ee.containers.servlet.RequestDispatcherImpl.forwardOrInclude(RequestDispatcherImpl.java:405)
  
 at 
com.hp.mwlabs.j2ee.containers.servlet.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:134)
  
 at 
com.hp.mwlabs.j2ee.containers.servlet.ServletContainerBean.processRequest(ServletContainerBean.java:772)
  
 at 
com.hp.mwlabs.as.services.servlet.ServletContainerService.processRequest(ServletContainerService.java:542)
  
 at java.lang.reflect.Method.invoke(Native Method)
  
 at 
com.hp.mw.common.util.PolymorphicInvocationHandler.invoke(PolymorphicInvocationHandler.java:223)
  
 at 
com.hp.mwlabs.csf.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:184)
  
 at $Proxy87.processRequest(Unknown Source)
  
 at 
com.hp.mwlabs.as.services.listeners.http.HttpRequestHandler.executeImpl(HttpRequestHandler.java:229)
  
 at 
com.hp.mw.as.services.listeners.BaseRequestHandler.execute(BaseRequestHandler.java:124)
  
 at 
com.hp.mwlabs.common.util.ExecutorPool$Entry.execute(ExecutorPool.java:400)
  
 at 
com.hp.mwlabs.common.util.PeriodicExecutor.run(PeriodicExecutor.java:630)
  
 at java.lang.Thread.run(Thread.java:484)
 
  
 
  
 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]