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
Obtaining a request
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Obtaining a request
Subject
:
Obtaining a request
From: Ian Coleman <
email@hidden
>
Date: Tue, 14 Feb 2006 09:56:12 -0500
We are trying to get information from a protal that is hosting the WO app, this is what I am using to try to do so.
public Main(WOContext context) {
super(context);
WORequest request = context.request();
WOServletContext wosc = new WOServletContext(request); //this is where I get a java.lang.NullPointerException
IPortletContext newFact = PortletContextFactory.createPortletContext(wosc.httpServletRequest(), wosc.httpServletResponse());
IPortletRequest newReq = newFact.getRequest();
IPortletUser portletUser = newFact.getUser();
String uName = portletUser.getUserName();
I thought that the context would have a request. Am I wrong? Do I need to create a request?
_______________________________________________
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: Obtaining a request
From:
Chuck Hill <email@hidden>
Prev by Date:
JSON / AJAX Requesthandler from Jean-François Veillette
Next by Date:
Quick Image scale down
Previous by thread:
Re: JSON / AJAX Requesthandler from Jean-François Veillette
Next by thread:
Re: Obtaining a request
Index(es):
Date
Thread