Re: How to know if the wosid in a direct action has expired?

2007-03-07 Thread Ricardo Parada
That worked great! Thanks! On Mar 7, 2007, at 10:00 PM, [EMAIL PROTECTED] wrote: If you read the WODirectAction JavaDoc, you will find this paragraph just before the "Nested Class Summary": To handle stale session IDs (e.g. session IDs stored in cookies, and those session IDs refer to e

Re: Direct Actions Question

2007-03-07 Thread Jerry W. Walker
Hi, Fred & Chuck, On Mar 7, 2007, at 6:13 PM, Chuck Hill wrote: On Mar 7, 2007, at 1:23 PM, Fred Shurtleff wrote: Chuck, Thanks so much for opening my eyes for me. You are so correct in saying- "It is important to actually read the _entire_ error message and not jump to conclusions ba

Re: How to know if the wosid in a direct action has expired?

2007-03-07 Thread Jerry W. Walker
If you read the WODirectAction JavaDoc, you will find this paragraph just before the "Nested Class Summary": To handle stale session IDs (e.g. session IDs stored in cookies, and those session IDs refer to expired sessions), make sure to do the following at the beginning of your direct actio

Re: Question about WORepetitions

2007-03-07 Thread Jerry W. Walker
Hi, Tom, Welcome! You seem to have gotten good answers to your technical question, so let me address your aside. First the bad news: Apple has not upgraded WebObjects significantly for several years, not since they converted the entire set of frameworks to Java around the turn of the mi

Re: Direct Actions Question

2007-03-07 Thread Chuck Hill
On Mar 7, 2007, at 1:23 PM, Fred Shurtleff wrote: Chuck, Thanks so much for opening my eyes for me. You are so correct in saying- "It is important to actually read the _entire_ error message and not jump to conclusions based on a few words in the first line." I think this is a common t

Re: WebObjects 5.3.3 DST and Linux

2007-03-07 Thread Mark Ritchie
On 7-Mar-07, at 4:44 PM, Ricardo Parada wrote: I know WO is not really supported on Linux. But for those who have deployed on Linux is there any word of wisdom as to how to update WO on Linux to pick up the fixes. ;-) A while back, I posted the list of files which are updated by the 5.3.3

How to know if the wosid in a direct action has expired?

2007-03-07 Thread Ricardo Parada
Hi, How can a direct action find out if the wosid included in the direct action URL has expired? Any ideas? Thanks Ricardo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.ap

WebObjects 5.3.3 DST and Linux

2007-03-07 Thread Ricardo Parada
I know WO is not really supported on Linux. But for those who have deployed on Linux is there any word of wisdom as to how to update WO on Linux to pick up the fixes. ;-) Thanks ___ Do not post admin requests to the list. They will be ignored. We

Re: Intersection (was Union) of two Arrays SOLVED

2007-03-07 Thread David Avendasora
NSSet was still the way to go, simply using NSSet.setByIntersectingSet (NSSet) instead of NSSet.setByUnioningSet(NSSet) Thanks for all the assistance! On Mar 7, 2007, at 3:59 PM, David Avendasora wrote: Doh, Doh, Doh! I meant intersection, not union. Ahg. Digging more through NSSet, NSRang

Re: Direct Actions Question

2007-03-07 Thread Fred Shurtleff
Chuck, Thanks so much for opening my eyes for me. You are so correct in saying- "It is important to actually read the _entire_ error message and not jump to conclusions based on a few words in the first line." I think this is a common trap, since 1 error always triggers many downstream error

Re: Union of two Arrays

2007-03-07 Thread David Avendasora
Doh, Doh, Doh! I meant intersection, not union. Ahg. Digging more through NSSe, NSRange, etc. Sorry all. Dave On Mar 7, 2007, at 3:20 PM, Georg von Bülow wrote: Hi David, NSArray has a method arrayByAddingObjectsFromArray, so: array1=array1.arrayByAddingObjectsFromArray(array2); Regard

RE: Union of two Arrays

2007-03-07 Thread Andrew Lindesay
Is there an easy (WO or plain Java) way to derive the union of two NSArrays? If you mean as in a set then you should use NSSet... ((new NSSet(arrayOne)).setByUnioningSet(new NSSet (arrayTwo))).allObjects() ...but if you mean actually a concatenation then... arrayOne.arrayByAddingOb

Re: Union of two Arrays

2007-03-07 Thread Georg von Bülow
Hi David, NSArray has a method arrayByAddingObjectsFromArray, so: array1=array1.arrayByAddingObjectsFromArray(array2); Regards, Georg Hi all, Is there an easy (WO or plain Java) way to derive the union of two NSArrays? Thanks! Dave ___ Do not po

Re: Union of two Arrays

2007-03-07 Thread James Cicenia
I use NSSet a lot. Seems to work great for me. NSSet set1 = new NSSet(your nsarray1); NSSet set2 = new NSSet(your nsarray2); nsarray3 = (set1.setByUnioningSet(set2)).allObjects(); or something like that James Cicenia On Mar 7, 2007, at 1:56 PM, David Avendasora wrote: Hi all, Is there an

Re: Union of two Arrays

2007-03-07 Thread Aaron Morse
http://developer.apple.com/documentation/WebObjects/Reference/API/com/ webobjects/foundation/NSSet.html#setByUnioningSet (com.webobjects.foundation.NSSet) - a On Mar 7, 2007, at 10:56 AM, David Avendasora wrote: Hi all, Is there an easy (WO or plain Java) way to derive the union of two N

Re: Union of two Arrays

2007-03-07 Thread Aaron Morse
David, You can do this pretty handlily with NSSet or NSCountedSet. - a On Mar 7, 2007, at 10:56 AM, David Avendasora wrote: Hi all, Is there an easy (WO or plain Java) way to derive the union of two NSArrays? Thanks! Dave ___ Do not post admi

Re: Union of two Arrays

2007-03-07 Thread Sacha Michel Mallais
On Mar 7, 2007, at 11:56 AM, David Avendasora wrote: Is there an easy (WO or plain Java) way to derive the union of two NSArrays? Here's one that's not particularly efficient, but is really easy: NSArray union = new NSSet(arrayA).setByUnioningSet(new NSSet (arrayB)).allObjects() sacha

Union of two Arrays

2007-03-07 Thread David Avendasora
Hi all, Is there an easy (WO or plain Java) way to derive the union of two NSArrays? Thanks! Dave ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/U

Re: Question about WORepetitions

2007-03-07 Thread Fred Shurtleff
SEE BELOW Tom Davis wrote: Hi all, I'm new to WebObjects and I need a little help. I need to iterate through a group of EO objects. I'll call them 'baskets' for example. Each basket object has a to-many relationship to foodObjects. I used a repetition to iterate through all the baskets and

Re: WOComponent quesion

2007-03-07 Thread Chuck Hill
On Mar 7, 2007, at 9:44 AM, Amedeo Mantica wrote: Hello, I have got in trouble... I have a page with a list of objects, (a WORepetition)... I can click on an object and go into the page for edit the object. finished editing I click on sve and return to the listing page. All works fine.

WOComponent quesion

2007-03-07 Thread Amedeo Mantica
Hello, I have got in trouble... I have a page with a list of objects, (a WORepetition)... I can click on an object and go into the page for edit the object. finished editing I click on sve and return to the listing page. All works fine. The problem: my listing page have an ordering theh c

Re: Question about WORepetitions

2007-03-07 Thread David Holt
Tom, Off the top of my head, you sound like you're assigning your multiple food items to the same variable. Each basket will have to have a separate key (basket1SelectedFoodItem, basket2SelectedFoodItem, etc.) Then you would just instantiate an NSMutableArray and add the objects that have

Question about WORepetitions

2007-03-07 Thread Tom Davis
Hi all, I'm new to WebObjects and I need a little help. I need to iterate through a group of EO objects. I'll call them 'baskets' for example. Each basket object has a to-many relationship to foodObjects. I used a repetition to iterate through all the baskets and present a popup asking

Re: Direct Actions Question

2007-03-07 Thread Chuck Hill
On Mar 7, 2007, at 9:17 AM, Fred Shurtleff wrote: Hello, I have ported an PBProj/Xcode application over to Eclipse. This application has been coded to use Direct Actions; however when I run this application it fails because it cannot resolve a default 'action class'. No, you're wrong.

Direct Actions Question

2007-03-07 Thread Fred Shurtleff
Hello, I have ported an PBProj/Xcode application over to Eclipse. This application has been coded to use Direct Actions; however when I run this application it fails because it cannot resolve a default 'action class'. Following are the details. Application.java sets direct actions as default:

Re: WebObjects 5.3.3, DST and J2SE 1.4.2

2007-03-07 Thread Ken Anderson
On Mar 7, 2007, at 11:34 AM, Baiss Eric Magnusson wrote: I've been gathering this response, but Ken has been so helpful and right on with his comments that I thought I should reply. I have work to do. I will have to create the UI to get the timezone, store the timezone in the database, and u

Re: WebObjects 5.3.3, DST and J2SE 1.4.2

2007-03-07 Thread Baiss Eric Magnusson
I've been gathering this response, but Ken has been so helpful and right on with his comments that I thought I should reply. I have work to do. I will have to create the UI to get the timezone, store the timezone in the database, and use it in the various date displays. Other comments below.

Re: WebObjects 5.3.3, DST and J2SE 1.4.2

2007-03-07 Thread Ken Anderson
Baiss, Do you adjust the time the user sees based on a timezone of the user? My typical approach to this problem is to have the server run completely in GMT, and find out from the browser what timezone the user is in. That way, if the user has an appointment at 11 AM in New York and the

Re: http / https

2007-03-07 Thread Kieran Kelleher
I'm short on time to say much right now, but the strategy is something like this: Each page needs a flag to tell whether it is secure or not secure. isSecure = true or false. in appendToResponse, check the protocol of the incoming request compared to what the page wants to be returned as.

http / https

2007-03-07 Thread WIESEN Bruno
Hello, I made a WebObjects application (thanks to kieran Kelleher) which can switch between http/https - https/http...It works well, if somebody tries to get a page without the "s" of https, automatically the page is generated using https... But if somebody goes to https://example and the