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
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
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
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.
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
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
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
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(
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
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
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
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
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
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
gt; > ...
> >
> > this.contentHandler.startElement(
> > "",
> > "dataset",
> > "dataset",
> > xspAttr
> > );
> > xspAttr.clear();
> >
> >
> > this.characters("\n ");
> >
&
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
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");
> ...
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
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: [
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 = ##
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
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
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
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
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
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
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
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
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
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
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
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
32 matches
Mail list logo