Re: generate pdf from xml with embedded image?

2008-12-17 Thread Varga Zsombor
Hello i used to display images in my pdf files in this way: fo:block fo:external-graphic width=50mm height=25mm src={/my_path_to/my_image.jpg/ /fo:block try it. Zsombor On Wed, Dec 17, 2008 at 19:39, Marten van der Honing mvdhon...@noeska.com wrote: Hello, I am puzzled on generating an

Re: generate pdf from xml with embedded image?

2008-12-17 Thread Varga Zsombor
is also stored inside the database and is not available on a local path on the server. So in this case the external-graphic is of no use for me. Greetings, M van der Honing -Oorspronkelijk bericht- Van: Varga Zsombor [mailto:varga.zsom...@gmail.com] Verzonden: woensdag 17 december 2008

Re: How to make functions within xsp:logic

2008-12-04 Thread Varga Zsombor
Hi! Few years ago i use java methods in xsp pages. Here is a sample code: ?xml version=1.0 encoding=iso-8859-2? xsp:page language=java xsp:structure xsp:includejava.util.*/xsp:include /xsp:structure xsp:logic String hello(String name) { return Hello + name + !; } /xsp:logic page

Re: Passing parameters to a soap:call in an xsp:logic?

2008-12-04 Thread Varga Zsombor
Hi! Try this way: soap:call soap:urlxsp:exprrequest.getParameter(SOAP_URL);/xsp:expr/soap:url or you should use the xsp-request taglib: soap:call soap:urlxsp-request:get-parameter name=SOAP_URL//soap:url Zsombor On Thu, Dec 4, 2008 at 10:06, Smigge [EMAIL PROTECTED] wrote: Hi! I'm

action for each request

2008-09-29 Thread Varga Zsombor
Hi! I'd like to run an action before every request, and after it use matchers to decide what to happen. For example: map match pattern=a.html map:generate type=serverpages src=AA.xsp map:transform src=XXX.xsl/ map:serialize/ /map:match map match pattern=b.html map:generate src=b.xml

Re: action for each request

2008-09-29 Thread Varga Zsombor
: On 29.09.2008, at 10:31, Varga Zsombor wrote: Hi! I'd like to run an action before every request, and after it use matchers to decide what to happen. For example: map match pattern=a.html map:generate type=serverpages src=AA.xsp map:transform src=XXX.xsl/ map:serialize/ /map:match

session-validator action

2008-09-29 Thread Varga Zsombor
Hi Is there any documentation about session-validator action? I'm interested in how it is working. Can i pass parameters to it? What attributes is being validated? Thanks: Zsombor - To unsubscribe, e-mail: [EMAIL PROTECTED] For

lost database connection

2007-05-30 Thread Varga Zsombor
Hi All! I declared a database pool in the cocoon.xconf: jdbc name=focitipp pool-controller min=5 max=10/ dburljdbc:mysql://localhost/database1/dburl useruser/user passwordpassword/password encodingiso-8859-2/encoding /jdbc Everything is ok, working well, but after a while (a few hours) if i

Re: problem installing cocoon

2007-05-22 Thread Varga Zsombor
be found. Joerg On 18.05.2007 10:46, Varga Zsombor wrote: Hi All! I have a problem with installing cocoon. First I've installed cocoon to my PC (WinXP, JDK 1.5.0, Cocoon 2.1.10, Tomcat 6.0). Eveerything is OK and working well. Then I tried to upload this cocoon to my web hosting provider

problem installing cocoon

2007-05-18 Thread Varga Zsombor
Hi All! I have a problem with installing cocoon. First I've installed cocoon to my PC (WinXP, JDK 1.5.0, Cocoon 2.1.10, Tomcat 6.0). Eveerything is OK and working well. Then I tried to upload this cocoon to my web hosting provider (Debian, JDK 1.5.0, Tomcat 5.5). There were some security proble,

RE: pass checkbox values through sitemap

2006-12-12 Thread Varga, Zsombor
Hi, Why do you want to pass the request parameters to the generator? The generator has the request object, which contains all the parameters, and lots of other properties. You can use either the request.getParameter(String paramName) /*it returns a String value*/ method, or

RE: Using Cocoon's ESQL as replacement for Oracle's XSQL servlet

2006-11-21 Thread Varga, Zsombor
This will produce the same XML esql:connection esql:poolyour_pool_name/esql:pool esql:execute-query esql:query SELECT ID, DESCRIPTION, COUNTRY_ID FROM LANGUAGE_TYPE ORDER BY ID /esql:query esql:results languages esql:row-results language

RE: Using Cocoon's ESQL as replacement for Oracle's XSQL servlet

2006-11-21 Thread Varga, Zsombor
Do you mean, that you'd like to see the result of your generator (which contains the esql) ? Create a simple pipeline in your sitemap, something like this: map:match pattern=my_esql_test.xml map:generate type=serverpages src=my_esql_test.xsp / map:serialize type=xml / /map:match then, call

RE: Setting Java variables in esql (in XSPs)

2006-10-20 Thread Varga, Zsombor
Lars has right, you have missed the semicolon, and if it's the full source code, you will need at least an esql:connection tag surround esql:execute-query esql:connection esql:poolpool_name/esql:pool !-- We are yousing pools, which are defined in the cocoon.xconf-- esql:execute-query

RE: Setting Java variables in esql (in XSPs)

2006-10-19 Thread Varga, Zsombor
The problem is, that a Java variable is visible only in its parent xsp:logic It will work : xsp:logic Strubg upw = request.getParameter(password); String dbpw = new String(); esql:execute-query esql:query SELECT pw

RE: Setting Java variables in esql (in XSPs)

2006-10-19 Thread Varga, Zsombor
Thank, I'll try this out. My passwords are currently simple, plain-text passwords. How do I make it more secure? Do you mean, that you'd like to store paswords in a database table? You can use for example MD5 securing methods, or anything else, and store your secured password in the database.

RE: use-request-parameters with checkboxes

2006-10-03 Thread Varga, Zsombor
http://foo.bar/cgi-bin?field=valuestuff=abcstuff=defstuff=g himore=bar You can use org.apache.cocoon.environment.http.HttpRequest.getParameterValues(java.l ang.String name) in this case and y'll get your values in String array. For example: String[] sArray =

RE: Causing empty result set to fail

2006-09-26 Thread Varga, Zsombor
I have a SQL query in an XSP (using the esql logicsheet) that returns a record. If the query returns no record, it currently returns an empty node set. I don't want it to do that. Instead I want it to fail so execution stops there. What is the best (most efficient) way of doing this. You

RE: SQL Server 2005?

2006-09-22 Thread Varga, Zsombor
hi We are testing succesfully MS SQL 2005 with microsoft's jdbc driver. Here is a part of our web.xml, try to add the missing class: init-param param-nameload-class/param-name param-value com.microsoft.sqlserver.jdbc.SQLServerDriver

serializer recycle

2006-09-21 Thread Varga, Zsombor
Hi, I've written an own serializer, and i'd like to use its recycle() method. Do anyone know, that this method when will be called? Is it called everytime, when the serializer is called? Thanks, Zsombor - To unsubscribe,