Re: Servlet HttpSession in webobjects?
Re: Servlet HttpSession in webobjects?
- Subject: Re: Servlet HttpSession in webobjects?
- From: Lachlan Deck <email@hidden>
- Date: Wed, 13 Feb 2008 15:56:08 +1100
On 13/02/2008, at 3:46 PM, Jeff Schmitz wrote:
I didn't mean to ask how to use WOServelet (but thanks for that
info too), just how would a person find out on his own that that
class is resident in the JavaWOJSPServlet framework? Is there a
class to framework map document somewhere?
Oh ok. I don't know. I just took a guess by looking at the available
frameworks (that one not linked to my app -- but given the name of
the framework, took a guess that it'd be in there).
On Feb 12, 2008, at 10:41 PM, Lachlan Deck wrote:
On 13/02/2008, at 3:35 PM, Jeff Schmitz wrote:
And you'd be guessing right.
:-)
So, where would a guy go to find such information like to use
WOServletContext I need that framework (besides bugging the good
folks on this board)?
I'm not deploying as a Servlet btw, I just want access to that
session id that's part of the request I receive from another webapp.
I'm just looking at the api. Seems to provide enough info for your
purposes. Doesn't seem like there's much to it :-)
i.e., if you're not deploying as a servlet (and hence WO is not
automatically creating WOServletContexts for you) then just create
a new one passing in context().request() to the constructor ...
and away you go.
HTH
On Feb 12, 2008, at 10:23 PM, Lachlan Deck wrote:
I'd be guessing that you've not added the JavaWOJSPServlet
framework to your WOFrameworks/classpath.
On 13/02/2008, at 3:18 PM, Jeff Schmitz wrote:
Yes, I tried it again and I can't add the import
com.webobjects.jspservlet package. Is this in a special jar
somewhere? Sorry, but I don't see much info on this other than
the api ref.
Jeff
On Feb 12, 2008, at 8:30 PM, Lachlan Deck wrote:
On 13/02/2008, at 1:21 PM, Jeff Schmitz wrote:
Same question, just a better subject line.
Hello,
If I have a Java servlet that gets a session variable from
an http request as follows:
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
HttpSession session = request.getSession();
How might I go about retrieving the same session variable in
a WebObjects 5.3 directAction?
See WOServletContext.httpSession()
with regards,
--
Lachlan Deck
with regards,
--
Lachlan Deck
_______________________________________________
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