Re: Something really stupid

2002-11-26 Thread Ilya A. Kriveshko
Actions are performed WHEN the pipeline is assembled. The generation and serialization happens AFTER the pipeline is assembled. So, by the time your generator starts reading the file, both actions have already fired and the file came and went. Why not have your win32 process output a file to st

Re: AW: esql / xsp <- query for date

2002-11-13 Thread Ilya A. Kriveshko
Please, read the recent SQL injection thread: your query is vulnerable. Use to secure it: select * from IDM_info where Info_datum = ## -- Ilya Scherler, Thorsten wrote: Hello Cedric, So for ODBC Access 97 u have to use ## to narrow the date, right! because: select * from IDM_in

Re: Redirect in XSP

2002-11-08 Thread Ilya A. Kriveshko
If you want to redirect the browser to a new URL after the pipeline has been constructed and the generation has (possibly) started, you can do that by outputting the tag in the output HTML. or http://some.com/other/url"/> "0" means no delay. -- Ilya Artur Bialecki wrote: Witold, First of al

Re: XSP+logic

2002-11-07 Thread Ilya A. Kriveshko
Search the mailing list archives for SQL injection - your page is vulnerable. Use in your query. I don't see a closing '>' on the tag in the beginning of the file. I would have expected it to give you a different error, though. Your problem is coming from the last in the file: String Prov

Re: my history with cocoon

2002-11-07 Thread Ilya A. Kriveshko
Wow. Sounds like a lot of frustration to me. Here's a freebie on 4): http://outerthought.net/wiki/Wiki.jsp?page=FileUploadWithAction That's if you want to do it in an action. If you want to do it in anXSP page, use the same code that is used in the Action. Namely: FilePartFile filePartFile = (F

Re: Poor performance of document() in XSL [Was: Re: simpel cocoonquestion]

2002-11-05 Thread Ilya A. Kriveshko
J.Pietschmann wrote: document() is good for rapid prototyping, but is a poor choice for final deployment for performance reasons. Use aggregation instead. The Cocoon developers recommend to use aggregation or xinclude because of SoC (XSLT is for transforming, not for aggregating content). I'd a

Poor performance of document() in XSL [Was: Re: simpel cocoon question]

2002-11-05 Thread Ilya A. Kriveshko
SAXESS - Hussayn Dabbous wrote: But you also could do it directly within the xslt context: You can use the document() function in your XSLT-file. This function allows you to refer to data contained within another XML-file. This is completely decoupled from cocoon though. It's more about how to w

Re: xsp request variable is not declaired

2002-10-29 Thread Ilya A. Kriveshko
I'm pretty sure it is an XSP feature, but is possibly a documentation bug. The feature allows you to, for example, declare instance variables or declare instance or static methods to be used in the body of the XSP. Wouldn't you agree? I'm actually using it in some of my XSP pages, so please don'

Re: xsp request variable is not declaired

2002-10-29 Thread Ilya A. Kriveshko
Try putting a document tag around all of your content and logic. I.e.: = http://apache.org/xsp";> String keyword = request.getParameter("value"); The 'value' parameter was: keyword ==

Re: Adobe new products

2002-10-18 Thread Ilya A. Kriveshko
I do not see the need for it to be an applet, though. There is nothing there that [D]HTML couldn't do. But why make it simple? ;-) -- Ilya Tony Collen wrote: [EMAIL PROTECTED] wrote: doesn't look like an applet to me. It's ASP with HTML forms. Ain't I right? I tried the second application me

Re: Cocoon 2.1 + Tomcat 4.1 + reloadable="true"

2002-10-09 Thread Ilya A. Kriveshko
I am running Tomcat 3.3 on Win2k, and a recent snapshot of Cocoon from the HEAD of CVS. I am periodically having the same problems whereby Tomcat is running out of memory when either Tomcat or Cocoon are reloading some stuff. Is it possible that some cache collections are not being cleared? Also

Re: File generator problem (fetch from an URI)

2002-10-09 Thread Ilya A. Kriveshko
[EMAIL PROTECTED] wrote: >Should I modify the tomcat.bat? >I would prefer to modify the startup.bat! But what is the command in this case? > >I have also tried to add a "CATALINA_OPTS" environment variable with the value >"-Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080" but that

Re: Cocoon on Headless Linux with JDK1.4

2002-10-02 Thread Ilya A. Kriveshko
This seems to be the magic key -- a JVM 1.4 option to enable headless AWT: -Djava.awt.headless=true Ilya A. Kriveshko wrote: > > Headless support is now enabled by new graphics > environment methods that indicate whether a display, keyboard, and > mouse can be su

Re: Cocoon on Headless Linux with JDK1.4

2002-10-02 Thread Ilya A. Kriveshko
Headless support is now enabled by new graphics environment methods that indicate whether a display, keyboard, and mouse can be supported in a graphics environment. I wonder what they are talking about? Are you sure it doesn't work as is with JDK 1.4? Read more at: http://java.sun.com

Re: tool xml/xsl ???

2002-10-01 Thread Ilya A. Kriveshko
I am using xslide - a major mode for Emacs (or XEmacs in my case.) It does all the syntax highlighting you'd ever want, auto-completion, templates, indentation, etc. It also can invoke an XSLT process so you can view the results. Highly customizable, too, if you are into it. http://www.xemacs.org

Re: How can I output ESQL value as CDATA?

2002-09-24 Thread Ilya A. Kriveshko
gv wrote: >Joerg Heinicke wrote: > >I've read some of the other responses, and so far, it >looks like there probably isn't an easy or standard >way that this can be done. I think it'd be a useful >addition to XSP/ESQL; seems to me that there should be >a way to produce *any* kind of well-form

Re: How can I output ESQL value as CDATA?

2002-09-23 Thread Ilya A. Kriveshko
Hi, I can tell you what in my opinion should work, but at least in the version of Cocoon that I have on my system it doesn't. It would be great if one of the developers commented on this approach, why it doesn't work and how to possibly make it work. Here's the XSP snippet that I think should

Re: XSLT snippet for handling empty cells in HTML tables

2002-09-20 Thread Ilya A. Kriveshko
Alternatively, use [snip...] or have the following in your

Re: XSL troubles

2002-09-18 Thread Ilya A. Kriveshko
Ganael LAPLANCHE wrote: >Hi Vadim, > >I've got a very stupid question : what is a "processing instruction" ??? > > The tags at the beginning of the XML file that start with ''. Like: or - Please check that your quest

Re: applet, module, Class.forName() - ClassNotFoundException

2002-09-18 Thread Ilya A. Kriveshko
You should match "**.class". Not using ** definitely will not let you access .class files in sub-directories, and may simply be covering another problem with accessing the jar. After you re-enable "**.class" matching, attempt to access your jar by typing in its URL in the browser. Then, try t

Re: applet, module, Class.forName() - ClassNotFoundException

2002-09-17 Thread Ilya A. Kriveshko
Do you have the pipeline for the jar? -- Ilya Gabor Bartha wrote: > It doesn't work. > A few classes are in the jar, the others are beside the jar in the > proper directories (as they are in the packages). > During the running of the applet every class is loaded by the > Class.forName(), ... m

Re: xalan exception

2002-09-06 Thread Ilya A. Kriveshko
Can't be sure, but just recently I spent some time tracking down what was causing a similar NPE. Turned out I typed instead of . Clearly, it is an error on my part, but the NullPointerException isn't exactly what I would have expected to get. It might be worthwhile for you to check if you

Re: svg xsp java

2002-09-06 Thread Ilya A. Kriveshko
You are trying to use JSP approach to writing XSP document. Use the following syntax for dynamic attributes instead: for (int count=0;count < 25;count++){ count*13+40 }; -- Ilya Sanne de Roever wrote: > Hi, > > I've managed to make some svg's with xsp: which is pret

Re: "if" not working

2002-09-05 Thread Ilya A. Kriveshko
I prefer the "search".equals() form, since it will never throw a NullPointerException. The reason ``=='' doesn't work is because ``=='' is identity, not equality check. It will only return true if the two operands are the same object, not two different objects having the same value. 2c -- Ily

Re: SAXParseException

2002-09-04 Thread Ilya A. Kriveshko
2002-09-04 at 13:44, Ilya A. Kriveshko wrote: Don't forget that the XML that is produced by the transformation also has to be well-formed. It is possible that your source XML and XSL are well-formed but the output XML isn't. Make sure that you don't produce several root ta

Re: SAXParseException

2002-09-04 Thread Ilya A. Kriveshko
Don't forget that the XML that is produced by the transformation also has to be well-formed. It is possible that your source XML and XSL are well-formed but the output XML isn't. Make sure that you don't produce several root tags in the output and that you don't output plain character data bef

Re: I get it too !! OutOfMemory error... (Tomcat killed...)

2002-08-30 Thread Ilya A. Kriveshko
Don't forget that the amount of memory your Java application uses at any given moment is not necessarily how much it needs. Instead of occasional memory leaks which happened to sloppy C++ programmers, in Java everything is a memory leak, but there is a recovery mechanism. So, if you let your J

Re: Counting rows in a resultset

2002-08-29 Thread Ilya A. Kriveshko
If running two queries is not out of the question for some principal reasons, I'd suggest the following: Run a query with LIMIT 1, 1. That query will return results ONLY if there are two or more rows that match. Then run your second query both inside the and inside . I would suggest using