• 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: general use along with logon admin to content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: general use along with logon admin to content


  • Subject: Re: general use along with logon admin to content
  • From: Oscar Díaz Blanco <email@hidden>
  • Date: Thu, 14 Oct 2004 00:33:26 +0200

You can just use a Direct Action:
On your DirectAction.java file put:

public WOActionResults adminLoginAction() {
return pageWithName("AdminLogin");
}

Create a Component named AdminLogin and call the DA from the browser like this:

http://host/cgi-bin/WebObjects/app.woa/wa/adminLogin

Oscar

On 14/10/2004, at 0:26, Wes James wrote:

Is there a way to send parameters like user=admin to a woa like this
"http://host/cgi-bin/app.woa?user=admin"?


I have been looking for code that will grab environment variables. I
have found this

# found in yahoo groups:
http://groups.yahoo.com/group/webobjects-newbies/message/999
WORequest r = context().request();
NSArray possibleHeaders = r.headerKeys();
String str = "";
for (int i=0; i<possibleHeaders.count(); i++) {
str = (String)possibleHeaders.objectAtIndex(i);
System.out.println("possible headers: " + str + " Value: " +
context.request().headerForKey(str));
}

to get me part of the info, but is there a way to get the var/value
pairs with some other wo method?

wj
_______________________________________________
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

 _______________________________________________
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

References: 
 >general use along with logon admin to content (From: Wes James <email@hidden>)
 >Re: general use along with logon admin to content (From: Wes James <email@hidden>)

  • Prev by Date: Re: finding jpeg dimensions - should be jpeg not jpef
  • Next by Date: Re: general use along with logon admin to content
  • Previous by thread: Re: general use along with logon admin to content
  • Next by thread: Re: general use along with logon admin to content
  • Index(es):
    • Date
    • Thread