Hi!

  Place this on your Application constructor:

// This is necessary because the default request handler is "wo", not "wa". // This means that the default handler will create the "main" component, not // call the "main" direct action. That would create a session for every hit // in the index page, which is obviously not good. This line avoids that. setDefaultRequestHandler (requestHandlerForKey(directActionRequestHandlerKey()));

  Yours

Miguel Arroz


On 2009/02/22, at 19:27, Karthik N wrote:

Hi,

I have the simplest "WOHelloWorld" app where I am not able to get rid of the wosid from the DirectAction URL.

Here's what I have

1. Main.html has
<webobject name = "SomeDirectAction"></webobject>

2. Main.wod has
SomeDirectAction : WOHyperlink {
        string = "Click Me";
        directActionName = "Main";
}

3. I have implemented this on DirectAction.java
        public WOActionResults performActionNamed ( String name ) {
                return pageWithName( name );
        }

When I run the app however I see the URL as

http://10.0.0.5:58547/cgi-bin/WebObjects/WOHelloWorld.woa/wa/Main?wosid=quUlB5EFNq6Xe4vR56fVy0

How do I get rid of  wosid=quUlB5EFNq6Xe4vR56fVy0  ?

Thanks, Karthik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com

This email sent to [email protected]

...........................
http://www.survs.com

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to