• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DirectAction & User login Questions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DirectAction & User login Questions.


  • Subject: Re: DirectAction & User login Questions.
  • From: Daniel Brajkovic <email@hidden>
  • Date: Wed, 13 Feb 2008 23:33:18 -0600

I think people might have misunderstood what I was trying to ask. Specifically, I thought that this line:

setDefaultRequestHandler (requestHandlerForKey( directActionRequestHandlerKey() ));

was supposed to set the default handler to "wa" so when I type into my browser http://127.0.0.1:55555/cgi-bin/WebObjects/Benko.woa the console should return a "false" based on the code below. Instead it returns true. It does return false when I go to http://127.0.0.1:55555/cgi-bin/WebObjects/Benko.woa/wa  though. So it seems to me that the default handler is still "wo" and isn't getting set to "wa".

public class Application extends ERXApplication {
public static void main(String[] argv) {
ERXApplication.main(argv, Application.class);
}

public Application() {
NSLog.out.appendln("Welcome to " + name() + " !");
/* ** put your initialization code in here ** */
setDefaultRequestHandler (requestHandlerForKey( "wa" ));
}
}


public class DirectAction extends ERXDirectAction {
public DirectAction(WORequest request) {
super(request);
}

public WOActionResults defaultAction() {
WOComponent page = pageWithName(Main.class.getName());
return page;
}
}


public class Session extends ERXSession {
private static final long serialVersionUID = 1L;

public Session() {
}
}

public class Main extends WOComponent {
private static final long serialVersionUID = 1L;

public Main(WOContext context) {
super(context);

System.out.println(hasSession());
}

}
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
  • Follow-Ups:
    • Re: DirectAction & User login Questions.
      • From: Guido Neitzer <email@hidden>
    • Re: DirectAction & User login Questions.
      • From: Lachlan Deck <email@hidden>
References: 
 >DirectAction & User login Questions. (From: Daniel Brajkovic <email@hidden>)
 >Re: DirectAction & User login Questions. (From: Guido Neitzer <email@hidden>)
 >Re: DirectAction & User login Questions. (From: Lachlan Deck <email@hidden>)
 >Re: DirectAction & User login Questions. (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Servlet HttpSession in webobjects?
  • Next by Date: Re: DirectAction & User login Questions.
  • Previous by thread: Re: DirectAction & User login Questions.
  • Next by thread: Re: DirectAction & User login Questions.
  • Index(es):
    • Date
    • Thread