Re: general use along with logon admin to content
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