on 5/29/03 9:43 PM Vadim Gritsenko wrote:

> Stefano Mazzocchi wrote:
> 
> 
>>void callAction(name,map) -> invoques the action indicated by the given
>>name and pass the given map as model
>>
> 
> 
> How action returns its result?

you are right, the above should be

 map callAction(name,map)

> If callAction stays... why not:
> 
>  map act(name, map)
>  map match(name, pattern, map)
>  boolean select(name, pattern, map)

FS. callAction (if we keep it, and hopefully we won't) should be
considered a legacy tool. Introducting other hooks to sitemap components
will blur the difference between sitemap and flowscript, increasing
problems in the future.

(there are already examples of people asking to include scripting in the
sitemap... juck!)

>>Session getSession()
>> 
>>
> 
> ....
> 
> 
>>-------- properties ---------
>>
>>cocoon.request -> the request object
>>cocoon.response -> the response object
>>cocoon.log -> the log object
>>
> 
> 
> Why session is not a property, as request and response.

Good question. I have to think about it.

>>---------------------------------------------------------------------------
>>The Cookie Object
>>---------------------------------------------------------------------------
>>
>>This object is a wrapper around the Cookie object provided by the
>>Environment.
>>
>>--------- methods -------
>>
>>getName()
>>getVersion()
>>setVersion(version)
>>
>>values
>>setValue(value)
>>getValue()
>>
>>comment
>>setComment(purpose)
>>getComment
>>
>>domain
>>setDomain(domain)
>>getDomain()
>>
>>age
>>setMaxAge(age)
>>getMaxAge()
>>
>>path
>>setPath(path)
>>getPath()
>>
>>secure
>>setSecure(secure)
>>getSecure()
>>
>>-------- properties ------
>>
> 
> 
> Cookie's properties could be made available via properties:
> 
>   cookie.name
>   cookie.version

yes, good point.

>>---------------------------------------------------------------------------
>>The Request Object
>>---------------------------------------------------------------------------
>>
>>-------- properties ---------
>>
>>[name] -> maps to the parameter indicates with the name
>>
>>For example
>>
>>request.blah
>>
>>is equivalent to
>>
>>request.getParameter("blah")
>>
> 
> 
> Attributes, headers, cookies also could be available via JS array:
> 
>   request.cookies['name'] or request.cookies.name
>   request.headers['referer'] or request.headers.referer
> ....
> 
> 
> Hope these suggestions make sense.

They do, I'll include the changes in the FOM proposal.

-- 
Stefano.


Reply via email to