[http-client] Convert html to pdf

2007-05-29 Thread Tom Muldoon
I'm hoping for a means to convert, to a pdf, the html response body returned by the http-client project? Does the API provide any such means? Please note, I am especially interested in any and all images being included in the output pdf. Thanks in advance,

Help in the transition of states in SCXML

2007-04-20 Thread Rajendran, John Tom (STSD)
Hi there, I have an orthogonal state chart implemented with SCXML, I have a SLOT and TASK defined in the parallel states. MSlotInitState to MSlotHeldState, MSlotQueuedState, MSlotLockedState is happening and in the MSlotLockedState I am trying to - - Move to MSlotHeldS

[http-client] Does HttpClient support the HttpOnly cookie attribute?

2007-04-13 Thread Tom Muldoon
server redirects the subsequent request back to the Login page after a seemingly successful login. In looking at the cookie that is included in the subsequent request, the HttpOnly attribute is missing altogether. So, does HttpClient support HttpOnly cookie attribute??? Thanks in advance, Tom

SCXML error

2007-04-11 Thread Rajendran, John Tom (STSD)
Hi there, While implementing the parallelism in SCXML we are encountering an exception which I am attaching herewith. Is there any work around for this. 2007-04-12 11:52:44,922 INFO [scxml.app.log] null: Slot Init State 2007-04-12 11:52:44,922 INFO [scxml.app.log] null: Task Init State 2007-04-12

[pool] returnObject question

2007-04-11 Thread Tom Muldoon
In returnObject(), can I discard the current object and construct a new one? The reason that I ask has to do with the fact that resetting the current object to its initial state is significantly longer than simply constructing a new object. Thanks, Tom

Re: pool - cleaning up resources on JVM exit

2007-04-05 Thread Tom Muldoon
Try adding a shutdown hook. e.g. new ShutdownHook().register(); /** * Provides a shutdown hook for shutting down the pool. */ private class ShutdownHook extends Thread { /** * Registers this hook for invocation during shutdown. */ public void regist

Re: [Pool] Looking for best approach to seed GenericObjectPool

2007-04-04 Thread Tom Muldoon
what I'm looking for but I'd still appreciate it if anyone has a better approach. Tom Tom Muldoon wrote: I'm using Commons Pool 1.3 and I'm looking for the best approach to seed, or initialize, a GenericObjectPool instance during application server (JBoss) startup. It appear

[Pool] Looking for best approach to seed GenericObjectPool

2007-04-02 Thread Tom Muldoon
tantiated) but that feels like a hack. So, anyone have a better way? Thanks in advance, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: XMLConfiguration and the root node

2007-01-22 Thread Tom DeBruycker
different. I use a CombinedConfiguration to load the XML files. Because the root node is not retained as a key the only the first XML file is accessabel in the CombinedConfiguration. Is this a bug or is it that a CombinedConfiguration cannot be used for XML files which are too similar? Thanks, Tom

[Configuration] Does DefaultConfigurationBuilder support reloading strategies?

2007-01-18 Thread Tom Muldoon
table config-class="org.apache.commons.configuration.reloading.FileChangedReloadingStrategy"/> The DefaultConfigurationBuilder supports reloading, right? Thanks in advance, Tom - To unsubscribe, e

Betwixt v0.8 Issue: How Do I Read a Map That Contains a List for Each Entry Value

2007-01-17 Thread Tom Howe
Using Betwixt v0.8, I am having issues trying trying to write and then read a xml file that has a map that contains key value pairs where the value contains a a list. The writing of the xml from the bean works fine. However, the reading of the xml calls the adder but passes an empty list. Gen

XMLConfiguration and the root node

2007-01-16 Thread Tom DeBruycker
could be inadvertently combined? This could just be my lack of understanding for the XMLConfiguration design. If someone would explain the design choice I would appreciate it. Thanks in advance. Tom

Re: log4j path to log - problem

2007-01-11 Thread Tom
search for it. I'll bet there is no "log" directory there. Tom DECAFFMEYER MATHIEU wrote: Hi, in my log4j file I have the following line : log4j.appender.file.File=log/mylog.log [11/01/07 16:28:32:665 CET] 650c2e13 SystemErr R log4j:ERROR setFile(null,true) call fail

Re: Commons Pool.. anyone using?

2007-01-08 Thread Tom
services, which might be the case when using SOAP): I've posted examples here that show that the current implementation goes into an infinite loop, but I don't know if that was fixed by now. This however forced me to write an alternative implementation based on the same interfaces. To

Re: [configuration] Issue using variable interpolation of system properties

2007-01-05 Thread Tom Muldoon
That must be it - I'm using Commons Configuration 1.3. Where can I find the nightly builds - it didn't jump out to me on the site? Tom Oliver Heger wrote: Tom Muldoon wrote: I'm trying to use variable interpolation to resolve system properties with XMLConfi

[configuration] Issue using variable interpolation of system properties

2007-01-05 Thread Tom Muldoon
uot;foo" system property does not get resolved. Shouldn't it? Thanks in advance, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Urgent] UTF-8 encoding problem

2007-01-04 Thread Tom
You could also try and use an encoding aware editor to edit the XML file; for example XMLSpy or Eclipse with the web tools plugins. These editors will interpret the specified encoding value and save the XML in that encoding. Very convenient! Tom [EMAIL PROTECTED] wrote: Sound more like an

Re: CombinedConfiguration not reloading

2006-12-01 Thread Tom DeBruycker
Hi, I think this is the case. I am calling getProperty() on the CombinedConfiguration object returned from DefaultConfigurationBuilder.getConfiguration(true) not the enclosed configuration. I will add a bug to Jira. Thanks, Tom On 12/1/06, Oliver Heger <[EMAIL PROTECTED]> wrote

Re: CombinedConfiguration not reloading

2006-12-01 Thread Tom DeBruycker
use the delegate pattern or check for reloadingRequired(). So, after this long winded explanation I am not sure if I am using a CombinedConfiguration in the way it was intended. If you still think this is a bug I will create the bug in Jira. Thanks in advance, Tom DeBruycker On 11/29/06

Re: [POOL] a conceptual implementation error?

2006-11-22 Thread Tom
Sandy McArthur wrote: On 11/21/06, Tom <[EMAIL PROTECTED]> wrote: > It's non-trivial to accept code that wasn't written by Apache members > because of licensing issues but I'm happy to look and learn from a > good idea when I see one. Interesting. I didn't k

[POOL] a conceptual implementation error?

2006-11-21 Thread Tom
flow. Now, tell me if I see this wrong or not. As said before: currently the StackedObjectPool goes CPU mongol on a dry pool and the GenericObjectPool just returns null. I currently consider both implementations seriously bugged. Tom

Re: [POOL] a conceptual implementation error?

2006-11-21 Thread Tom
e of licensing issues but I'm happy to look and learn from a good idea when I see one. Interesting. I didn't know that. I'll put it up once I add the priority pool. An issue you mean a "bug" report in the commons area? Tom --

Re: [Commons Configuration] idea

2006-06-08 Thread Tom
tion you can do it with conditional properties. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[Commons Configuration] idea

2006-06-08 Thread Tom
t;configuration war". Naturally it has a monitoring thread to detect changes, allows chaining to make configuration even more flexible, etc. Just a FYI. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: pool: stack, cycle and eviction

2006-05-30 Thread Tom
less than a 2x performance increase for 4x the hardware is disappointing. I understand. Crucial components need to be optimal. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: pool: stack, cycle and eviction

2006-05-30 Thread Tom
lly all you need is two additional classes to maintain: one interface (copy of the actual pool) without the checked exceptions and one implementation doing a call-and-wrap-in-unchecked-exception for each method. It's livable. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: pool: stack, cycle and eviction

2006-05-30 Thread Tom
down is a kind of delayed close: when in shutdown the pool does not allow borrowing new objects, but does accept returning of objects (and destroys them immediately) until all active objects have been returned and then the pool closes. Tom

pool: stack, cycle and eviction

2006-05-30 Thread Tom
cked pool would have the correct behaviour, however the stacked pool implementation does not have an eviction thread. 1) is there a reason why the cyclic approach is used in the GenericObjectPool? 2) is there a reason why the StackedPool does not have an e

Getting org.apache.commons.beanutils.NestedNullException

2006-02-06 Thread Tom Truong
let.doPost(ActionServlet.java:432) at servletunit.struts.MockStrutsTestCase.actionPerform(MockStrutsTestCase.java:394) Thank you in advance, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: [DBCP] mysql authentication

2005-06-16 Thread Tom Mathews
Pramodh I could send you it, but the relevent section is all listed below. I use Tomcat 5, so the format is different from the tomcat 4 that you are using. I just took the xml pretty well directly from the mysql help files (http://dev.mysql.com/doc/connector/j/en/) Tom Pramodh Peddi wrote

Re: [DBCP] mysql authentication

2005-06-13 Thread Tom Mathews
ection conn = ds.getConnection(); Statement stmt = conn.createStatement; ResultSet rs = stmt.executeQuery(cmd); ResultSetMetaData rsmd = rs.getMetaData(); Thanks Tom Larner, Ross S wrote: Tom, If I remember correctly, the -p switch is used to supply the password. Ross -Original Message

[DBCP] mysql authentication

2005-06-13 Thread Tom Mathews
new database user with no password, then I can connect fine, but this is obviously not something that I want to do! Does anyone know how to make tomcat / mysql/J use a password (JSP rather than a stand alone java class, which i

RE: getting the current date in jelly

2005-05-12 Thread Litton, Tom - CEPM
Thats exactly what i needed. Thanks, Tom -Original Message- From: Eric Giguere [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 1:35 PM To: Jakarta Commons Users List Subject: Re: getting the current date in jelly Hi Would this do the trick? You need of course to define

getting the current date in jelly

2005-05-12 Thread Litton, Tom - CEPM
I've been searching for a way to set a variable to the current date in a jelly script. Its got to be really simple, but apparently i'm the only one in the world that has to do it, because I can't find any examples anywhere. I'm need this for a maven script (not a jsp page

Re: FileUpoad:

2005-04-21 Thread Tom Eugelink
= lFileUpload.parseRequest(request); ... // // manually check the size if (iMaxSize >= 0 && lRequestSize > iMaxSize) { response.sendRedirect(iOnError + "?id=" + lId); return;

Re: FileUpoad:

2005-04-20 Thread Tom Eugelink
be thrown (but the parsing is done already). Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: FileUpoad:

2005-04-20 Thread Tom Eugelink
I figured there must de a standard solution. But appearantly not. Thanks for the help! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: FileUpoad:

2005-04-20 Thread Tom Eugelink
/ get the ID FileItem lIdFileItem = getFileItemFromList(lFileItems, "id"); As you can see the sendRedirect occurs before I get the id... Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: FileUpoad:

2005-04-20 Thread Tom Eugelink
ction quality" solution, since the sequence is not specified anywhere and using a different browser... Secondly, that would mean I have to parse the request myself (and there is a reason why I use the library :-). So the praktical answer would be "no",

Re: FileUpoad:

2005-04-20 Thread Tom Eugelink
jsp. On error I need to reproduce that URL and add an error code. So: http://xxx/upload.jsp?id=3 will become http://xxx/upload.jsp?id=3&error=maxsize Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: FileUpoad:

2005-04-20 Thread Tom Eugelink
field value. In steps: - upload.jsp?id=, in the jsp a hidden field contains the id - UploadServlet gets file and id - upon error I want to forward to upload.jsp, with an error and the id So I need the ID in the servlet when the FileUploadException is thrown. Better? :-) Many thanks! Tom Dakota

FileUpoad:

2005-04-20 Thread Tom Eugelink
Is it possible to access the form fields upon a file too large exception? Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

FileUpload: parsen and validate separately

2005-04-19 Thread Tom Eugelink
get to the field parameters when a file is too large? Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Telnet question

2005-04-04 Thread Litton, Tom - CEPM
I'm using the telnet client from commons-net. I'm getting the error: -SET-I-UNKTERM, unknown terminal type Does this mean the telnet client doesn't support the terminal type being set by the server or the other way around? Or does it mean something completely different?

[net] FTPClient.retrieveFileStream returns null even when no error is encountered

2004-12-20 Thread Tom Werges
using jdk1.5 on linux connecting to a vsftp server on linux. Thanks for any help, Tom W - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[HttpClient] Lifetime of an unused connection

2004-11-19 Thread Tom van den Berge
m talking about httpclient 2.0.2. Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: connection timing out on httpClient

2004-10-15 Thread Tom van den Berge
? Typically, this is a network problem... Cheers, Tom Vinay Murthy wrote: Hi, I am using httpClient as a part of htmlUnit. I tried logging into my mail account (Yahoo!), but unfortunately ended with an exception trace: java.net.ConnectException: Connection timed out: connect at

Re: [HttpClient] getting the http connection or setting the params

2004-10-08 Thread Tom van den Berge
ks about method.getParams() and the HttpMethod.abort(). They're not in my httpclient api! Are you talking about httpclient 2.0.1? Cheers, Tom > Hi Gustavo, > > Not sure what you mean by "setting the connection parameters". All > timeout params available on the connectio

Re: [Pool] Use of Exception in API

2004-09-28 Thread Tom van den Berge
"Exception". because of the current API. This would also allow the user classes to change this into the more specific PoolException, which is a very good thing (one should try to never catch Exception)... Tom Botelho, Mauro wrote: There wouldn't be any changes for methods calling

[Pool] Returning non-pool objects

2004-09-20 Thread Tom van den Berge
me, or whatever. Let me know what you think. Regards, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[Pool] Use of Exception in API

2004-09-20 Thread Tom van den Berge
oughout the API? Since the code is fairly small in size and compact, it shouldn't be too much effort, and the code will improve greatly. Backward compatibility is not an issue since you would typically replace the Exceptions with more specific excep

RE: [Digester] element names

2003-07-09 Thread Lister, Tom (ANTS)
.append(", attributeName="); sb.append(attributeName); sb.append("]"); return (sb.toString()); } } :-) Tom Lister Technical Architecture Group * - 020 7756 5014 * - [EMAIL PROTECTED] -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Se

[Digester] element names

2003-07-08 Thread Lister, Tom (ANTS)
o a method call other than element contents - or have I missed something basic. Do I need to build a custom rule for this? :-) Tom Lister Technical Architecture Group * - 020 7756 5014 * - [EMAIL PROTECTED] *** This communica

Re: [fileupload] Problem with setting Repository

2003-07-01 Thread Tom Maccariella
iles, you can resolve the absolute path by using: upload.setRepositoryPath( context.getRealPath( "/repository" ) ); This should resolve to something like: c:\tomcat4.1\webapps\fileupload\repository Hope this helps, Tom Senthoorkumaran Punniamoorthy <[EMAIL PROTECTED]&g

[HttpClient] Client certificates possible?

2003-06-26 Thread Tom van den Berge
Can anybody of the HttpClient project please have a look at my question I asked some days ago? Thanks! Tom Hi, I was wondering if it is possible to do authentication using client certificates with HttpClient? If so, can you give me some directions on the code? Can't find anything on

[HttpClient] Client certificates possible?

2003-06-24 Thread Tom van den Berge
Hi, I was wondering if it is possible to do authentication using client certificates with HttpClient? If so, can you give me some directions on the code? Can't find anything on this... Cheers, Tom

Re: Upload Problem

2003-06-17 Thread Tom Maccariella
void, not null. sorry for the typo. Tom Maccariella <[EMAIL PROTECTED]> wrote:I'm not sure if this code works either. The OutputStream.write(byte[] b, int off, int len) method returns null in JDK1.4, not int. Am I missing something? Tom "Craig R. McClanahan" wrote:

Re: Upload Problem

2003-06-17 Thread Tom Maccariella
I'm not sure if this code works either. The OutputStream.write(byte[] b, int off, int len) method returns null in JDK1.4, not int. Am I missing something? Tom "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote: On Tue, 10 Jun 2003, Ashok Madhavan wrote: > Date: T

Re: Fileupload Help! Urgent!

2003-06-16 Thread Tom Maccariella
tag looks like this: Hope this helps, Tom Victor Kam <[EMAIL PROTECTED]> wrote: Hi all, I am trying to use the commons file upload package to handle file upload request in my application, yet I seemed to always get an empty List from the parseRequest function of the DiskFileUpload cla

RE: commons - cache

2003-01-06 Thread Lister, Tom (ANTS)
a la JDBC drivers/manager. ? Tom Lister ANTS Technical Architecture Group ? - 020 775 65014 ? - [EMAIL PROTECTED] -Original Message- From: Rodney Waldhoff [mailto:[EMAIL PROTECTED]] Sent: 06 January 2003 12:25 To: Jakarta Commons Users List Subject:Re: commons -

commons - cache

2003-01-06 Thread Lister, Tom (ANTS)
Hi I'm looking for an object cache implementation. The Commons cache looks interested but i'm concerned that it's in the sandbox and doesn't look like there's been much activity on it for some time. Does anyone use this cache or can anyone recommended a cache implem

RE: [HttpClient]Is HttpClient usable?

2002-12-18 Thread Murphy, Tom (T06)
t/form-data POSTs, but I'll have to let someone more familiar with that code describe how to use it. On Tue, 17 Dec 2002, Murphy, Tom (T06) wrote: > More specifically: If I want to simulate a multipart/form-data POST request, > should I experiment with HttpClient or look elsewhere? I do

RE: How to process parameters using File Upload

2002-12-17 Thread Murphy, Tom (T06)
I thought it odd, too, that they worked well to make the hard thing (file access) easy, but that the easy thing (textfield access) became hard. Things that worked for me: * looking at the snippet at http://jakarta.apache.org/commons/fileupload * looking at the FileItem API * fieldName = fileItem.g

[HttpClient]Is HttpClient usable?

2002-12-17 Thread Murphy, Tom (T06)
More specifically: If I want to simulate a multipart/form-data POST request, should I experiment with HttpClient or look elsewhere? I do realize it's in alpha form . . . -- To unsubscribe, e-mail: For additional commands, e-mail:

[HttpClient] Setting timeouts

2002-12-11 Thread Tom van den Berge
used the time out the connection (setSoTimeout only times out the reading of the response, after a connection has been established). It would be very nice to be able to set this timeout in the HttpClient API, too. Cheers, Tom van den Berge -- To unsubscribe, e-mail: <mailto:[EM

[HttpClient] SSL client certificates

2002-12-11 Thread Tom van den Berge
n using client certificates. Cheers, Tom van den Berge -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>