XSP TransformCustomDate [was: Re: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?]

2003-02-02 Thread Scherler, Thorsten
t;xsp-element equivalent to xsl:param?" and some other that I have posted in regards to the topic. I would like to thank especially Andrew Timberlake for being so patient. Hope that will cut down developing time for you ;-). King regards > Mit freundlichem Gruss, > > Thorsten S

Re: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-02-02 Thread Andrew Timberlake
Thorsten On Sun, 2003-02-02 at 05:27, Thorsten Scherler wrote: > Hello Andrew, > > how is weather in SA? Here in Germany it is snowing! Here it is hotter than I have experienced for many years. What problem are you still experiencing? The code you included produced the following results when run

Re: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-02-01 Thread Thorsten Scherler
Hello Andrew, how is weather in SA? Here in Germany it is snowing! Please see my answer below: But the people using the app that I am writing don't want type 01/30/2003 to get the reports. The main reason is that the company that I am working for is in Germany. So the user wants to put 30.01.20

AW: AW: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
oblem. King regards -Ursprüngliche Nachricht- Von: Scherler, Thorsten Gesendet: Freitag, 31. Januar 2003 18:11 An: [EMAIL PROTECTED] Betreff: AW: AW: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param? I tried: http://apache.org/xsp"; xmlns:esql="http://apache.

AW: AW: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
r: ", e); } this.characters("\n\t\t\t"); Bye Judith > -Ursprüngliche Nachricht- > Von: Scherler, Thorsten [SMTP:[EMAIL PROTECTED]] > Gesendet am: Freitag, 31. Januar 2003

AW: AW: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Andres, Judith
Bye Judith > -Ursprüngliche Nachricht- > Von: Scherler, Thorsten [SMTP:[EMAIL PROTECTED]] > Gesendet am: Freitag, 31. Januar 2003 18:01 > An: [EMAIL PROTECTED] > Betreff: AW: AW: AW: AW: AW: AW: AW: xsp-element equivale

AW: AW: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
dateParam the request: ?date=31.01.2003 -Ursprüngliche Nachricht- Von: Andrew Timberlake [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 31. Januar 2003 17:49 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: AW: AW: AW: xsp-element equivalent to xsl

Re: AW: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Andrew Timberlake
On Fri, 2003-01-31 at 18:37, Scherler, Thorsten wrote: > Hello again, > > I have shorten the xsp: > http://apache.org/xsp"; >xmlns:esql="http://apache.org/cocoon/SQL/v2"; >xmlns:xsp-request="http://apache.org/xsp/request/2.0";> > > > Date myDate = ""; > try{ > myDate = (new > SimpleDateFormat(

AW: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
don't have the "XSP date error". -Ursprüngliche Nachricht- Von: Andrew Timberlake [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 31. Januar 2003 17:08 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param? On Fri, 2003-01-31 at 17:59, Sch

Re: AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Andrew Timberlake
On Fri, 2003-01-31 at 17:59, Scherler, Thorsten wrote: > Yes, I am doing that right now. > > But the people using the app that I am writing don't want type 01/30/2003 to get the >reports. > The main reason is that the company that I am working for is in Germany. So the user >wants to put 30.01.2

AW: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
prüngliche Nachricht- Von: Andrew Timberlake [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 31. Januar 2003 16:50 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: AW: xsp-element equivalent to xsl:param? Thank you for the compliment but it was only through bumping my head against many a brick wall that

Re: AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Andrew Timberlake
o:[EMAIL PROTECTED]] > Gesendet: Freitag, 31. Januar 2003 16:27 > An: [EMAIL PROTECTED] > Betreff: Re: AW: AW: AW: xsp-element equivalent to xsl:param? > > > I think that the request parameter is returning a string and the format > object is expecting a Date object. (I should ha

AW: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
Java (or maybe in general ;-)) -Ursprüngliche Nachricht- Von: Andrew Timberlake [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 31. Januar 2003 16:27 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: xsp-element equivalent to xsl:param? I think that the request parameter is returning a string

AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
Gesendet: Freitag, 31. Januar 2003 16:14 An: [EMAIL PROTECTED] Betreff: AW: AW: AW: xsp-element equivalent to xsl:param? Thanks, but now I am not getting any results because is always timeOfDay = "". I will look into using tags. Thanks for your patience. -Ursprüngliche Nachrich

Re: AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Andrew Timberlake
gt; > ... > > > > this.contentHandler.startElement( > > "", > > "dataset", > > "dataset", > > xspAttr > > ); > > xspAttr.clear(); > > > > > > this.characters("\n "); > > &

AW: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
etreff: Re: AW: AW: xsp-element equivalent to xsl:param? Try this ... String timeOfDay = ""; try{ timeOfDay = (new SimpleDateFormat("MM/dd/")).format(request.getParameter("date")); }catch(Exception e){} IDC2_int s

Re: AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Andrew Timberlake
tr > ); > xspAttr.clear(); > > > this.characters("\n "); > > try{ > String timeOfDay = (new > SimpleDateFormat("MM/dd/")).format(request.getParameter("date")); > }catch(Exception e){} > > this.characters("\n\t\t"); > ...

AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
I found out that (1): ... String timeOfDay = (new SimpleDateFormat("MM/dd/")).format(new Date()); ... select * from info_bericht where country ='' AND Info_datum = #timeOfDay# ... works fine! BUT this (2/3/4) one is not working at all: ... try{ String timeOfDay = (new

AW: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
Day = (new SimpleDateFormat("MM/dd/")).format(request.getParameter("date")); }catch(Exception e){} this.characters("\n\t\t"); ... -Ursprüngliche Nachricht- Von: Andrew Timberlake [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 31. Januar 2003 15:30 An: [

Re: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Andrew Timberlake
On Fri, 2003-01-31 at 16:09, Scherler, Thorsten wrote: > Hello Jan, > > I couldn't find the error. > > But I attached it. > I was reading your previous post in which you posted your xsp source. Instead of this: select * from info_bericht where country ='' AND Info_datum = ##

Re: AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Andrew Timberlake
On Fri, 2003-01-31 at 16:09, Scherler, Thorsten wrote: > Hello Jan, > > I couldn't find the error. > > But I attached it. > The following code looks VERY wrong as you seem to have java code that resides outside of a method. /*snip*/ try{ String timeOfDay = (new SimpleDateFormat("MM/dd/yy

AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
Hello Jan, I couldn't find the error. But I attached it. -Ursprüngliche Nachricht- Von: Jan Harms [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 31. Januar 2003 14:31 An: [EMAIL PROTECTED] Betreff: AW: xsp-element equivalent to xsl:param? Thorsten, here is a tip that might be u

AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Jan Harms
ated code, but quite readable. -Jan > -Ursprüngliche Nachricht- > Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 31. Januar 2003 14:09 > An: [EMAIL PROTECTED] > Betreff: AW: xsp-element equivalent to xsl:param? > > > Yes, I've n

AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
Yes, I've noticed that as well but with getParameter("date")); -> same exception. Thanks -Ursprüngliche Nachricht- Von: Geoff Howard [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 31. Januar 2003 14:17 An: [EMAIL PROTECTED] Betreff: RE: xsp-element equivalent to xsl:para

RE: xsp-element equivalent to xsl:param?

2003-01-31 Thread Geoff Howard
t(PoolTcpEndpoint.java:534) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thre > adPool.java:530) > at java.lang.Thread.run(Thread.java:479) > org.apache.cocoon.components.language.LanguageException: Error > compiling IDC2_info_int_xsp: > Line 251, c

AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
fDay = (new SimpleDateFormat("MM/dd/")).format(request.getParameter("date")); }catch(Exception e){} ... -Ursprüngliche Nachricht- Von: Scherler, Thorsten Gesendet: Freitag, 31. Januar 2003 13:54 An: [EMAIL PROTECTED] Betreff: AW: xsp-element equivalent to xsl:param

AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Jan Harms
herler, Thorsten [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 31. Januar 2003 13:54 > An: [EMAIL PROTECTED] > Betreff: AW: xsp-element equivalent to xsl:param? > > > Hello jan, > > with the request I get a similar error like with the parameters. > > But here are

AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
ailto:[EMAIL PROTECTED]] Gesendet: Freitag, 31. Januar 2003 13:49 An: [EMAIL PROTECTED] Betreff: AW: xsp-element equivalent to xsl:param? Andrew Timberlake wrote: > try{ > String timeOfDay = (new > SimpleDateFormat("MM/dd/")).format(parameters.getParam

AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Jan Harms
Andrew Timberlake wrote: > try{ > String timeOfDay = (new > SimpleDateFormat("MM/dd/")).format(parameters.getParameter > ("date"); > }catch(Exception e){} > > > You will need to wrap the code in a try/catch block or > alternatively use > the syntax: parameters.getParameter("date", "defa

AW: xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
generate() in class org.apache.cocoon.generation.AbstractGenerator Line 0, column 0: 2 errors -Ursprüngliche Nachricht- Von: Andrew Timberlake [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 31. Januar 2003 13:39 An: [EMAIL PROTECTED] Betreff: Re: xsp-element equivalent to xsl:param? On Fri, 2003-01-31 at 14:31, Sche

Re: xsp-element equivalent to xsl:param?

2003-01-31 Thread Andrew Timberlake
On Fri, 2003-01-31 at 14:31, Scherler, Thorsten wrote: > Hello group, > > is there an equivalent in xsp to the xsl: ? Yes, see below > > e.g. guess my request is like that: ...?date=30%2F01%2F2003. > > And > > select * from info_bericht where Info_datum = #name="date"/># > > is wo

xsp-element equivalent to xsl:param?

2003-01-31 Thread Scherler, Thorsten
Hello group, is there an equivalent in xsp to the xsl: ? e.g. guess my request is like that: ...?date=30%2F01%2F2003. And select * from info_bericht where Info_datum = ## is working fine. But can't be used in like that: String timeOfDay = ( new SimpleDateForma