[flexcoders] Flex2 - Custom JavaAdapter - ServletContext

2006-02-22 Thread Jim Schneider
I'm writing a custom java adapter (remote object). I'd like to get access to
the ServletContext. Is that available? If so, where would I be able to find
it? (adapter, service, channel, message broker, ...?). In 1.5, there was an
ActionContext class that I could use. Is there an equivalent in 2.0?

Additionally, is there some api that I can call from within the adapter that
will transform {context.root} to the actual context root string?

Thanks,

Jim

-
Jim Schneider
KJ Interactive, Inc.
1-877-370-6906
1-612-605-5399
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ian Skinner
Sent: Wednesday, February 22, 2006 3:50 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] coldfusion convert formatting query in flex 1.5

CF query -
**
cfquery name=getAllPersonnel datasource=spotDB

SELECT PersonName, PersonTitle, convert(datetime, InterviewDate, 101) FROM
dbo.PersonnelNeeded WHERE (InterviewDate = '2/20/2005')
  
/cfquery

On all the DBMS that I have experience with, using a function in the select
statement will cause the name of the column to be changed.  The easiest fix
for this is to alias the column name.

SELECT PersonName, PersonTitle, convert(datetime, InterviewDate, 101) AS
InterviewDate

This will alias the column back to its original name.  But you could put any
legal string after that AS statement and then use that string in the flex
code.




--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Flex2 - Custom JavaAdapter - ServletContext

2006-02-22 Thread Peter Farland
For Flex 2.0 Beta 1 try
flex.messaging.HttpContext.getServletConfig().getServletContext() - (the
name of this class isn't necessarily final at this stage, but any
changes would be documented in release notes). There isn't a concept of
an ActionContext for Service Adapters in Flex 2.0 as the nature of how a
message is sent to the adapter is independent of which endpoint was used
for transport (ActionContext was specific to the ActionMessageFormat, or
AMF).

We are not planning to expose the token replacement API, such as
replacing {context.root}, at this time.




-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Schneider
Sent: Wednesday, February 22, 2006 6:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 - Custom JavaAdapter - ServletContext

I'm writing a custom java adapter (remote object). I'd like to get
access to the ServletContext. Is that available? If so, where would I be
able to find it? (adapter, service, channel, message broker, ...?). In
1.5, there was an ActionContext class that I could use. Is there an
equivalent in 2.0?

Additionally, is there some api that I can call from within the adapter
that will transform {context.root} to the actual context root string?

Thanks,

Jim

-
Jim Schneider
KJ Interactive, Inc.
1-877-370-6906
1-612-605-5399
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ian Skinner
Sent: Wednesday, February 22, 2006 3:50 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] coldfusion convert formatting query in flex
1.5

CF query -
**
cfquery name=getAllPersonnel datasource=spotDB

SELECT PersonName, PersonTitle, convert(datetime, InterviewDate, 101)
FROM dbo.PersonnelNeeded WHERE (InterviewDate = '2/20/2005')
  
/cfquery

On all the DBMS that I have experience with, using a function in the
select statement will cause the name of the column to be changed.  The
easiest fix for this is to alias the column name.

SELECT PersonName, PersonTitle, convert(datetime, InterviewDate, 101) AS
InterviewDate

This will alias the column back to its original name.  But you could put
any legal string after that AS statement and then use that string in the
flex code.




--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/