Re: WebObjects URL Decoding?
Re: WebObjects URL Decoding?
- Subject: Re: WebObjects URL Decoding?
- From: John Lennard <email@hidden>
- Date: Tue, 11 Apr 2006 22:23:33 +1200
Hi,
From my experience, the ones that have names tend to be either
stateless components or those inside of a WOSwitch, which are sort of
stateless.
Of course, this is just my experience and there could be other cases.
John
On 11/04/2006, at 8:19 PM, Dov Rosenberg wrote:
It is strange that sometimes there are component names in the URL
and other times just numbers. Any idea why that is?
On 4/11/06 3:54 AM, "Johan Carlberg" <email@hidden> wrote:
Hi,
I have looked into it, somewhat, for some non-standard page
generation.
The first number is the context id, which increases with each page
viewed in a session.
The rest is the element id, which is built dynamically when
building a page from the template in the WOD file. Basically, the
element id is extended by a number, by components which contains
other components (e.g. repetitions and conditionals), so that each
component has its own sequence number within the element id for
its subcomponents (there are exceptions to this, for some types of
components). Since the page can contain different contents
depending on what data is available when the page is generated,
the element id's can differ each time a page is viewed, which can
make it difficult to predict URL's.
On the other hand, with the same background data, resulting in
identical pages, the URL's should be the same each time (with
exception for the session id, of course).
With varying data, it would be tricky, but not impossible to
predict the correct URL, as long as you now how data has changed.
An extra row in a repetition would cause an increase of one of the
numbers of the element id. The easiest way to find out which of
the numbers it is, is to test by running the application.
Johan Carlberg
http://oops.se/
11 apr 2006 kl. 07.53 skrev Dov Rosenberg:
Has anyone decoded the component numbers in the WebObjects URL?
myapp.woa/wo/xxx/1.0.1.AdminLogin.1.46.1.1.2
Myapp.woa/wo/xxx/2.0.0.24.0.1.2.1.1.0.0
We are trying to write some load test and regression scripts and
have come across some confusion trying to figure out the correct
path to put in the URL requests.
It seems that the first number is how many pages you have viewed
in the session, the last 5 numbers seem to be related to the
component. The middle part of the numbers seem to vary depending
on if the page requested is a page or a component in a page or
something else.
Is there anyway to predict what parts of the URL are going to
remain constant between builds and which parts vary by request?
It seems that the 4th number from the end seems to change between
builds for the same page – although we may have changed the page
by adding other components on it. Perhaps the number represents
some order in the WOD file.
Any ideas would be appreciated.
Thanks in advance
--
Dov Rosenberg
Conviveon/Inquira
Knowledge Management Experts
http://www.conviveon.com
http://www.inquira.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40oops.se
This email sent to email@hidden
--
Dov Rosenberg
Inquira Inc
370 Centerpointe Circle, ste 1178
Altamonte Springs, FL 32701
(407) 339-1177 x 102
(407) 339-6704 (fax)
email@hidden
AOL IM: dovrosenberg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40yakmoose.org.nz
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden