How use Cookies with flex
Hi,
Can we use cookies in flex. If so, can any body give me the
sample code for that.
Thanks
Satish KC.
Rather than ordinary cookies, use Local Shared Object. It is
much more powerful than standard cookies.
I'll look for an example. What version of Flex are you using?
Tracy
Similar Messages
-
Does anybody know how to use RoboHelp with Flex? I'm a Flex
developer and am new to RoboHelp, and am trying it out to create
some online help for my Flex application. I've searched, and also
tried a couple of tutorials, but so far I haven't found anything
about how to combine the two. Thanks.The issue is the calling of the help from Flex so I wonder if
you might do better asking this question on the Flex forums? -
How use eclipse create Flex API ?
How use eclipse create Flex API ?
I'm pretty sure this isn't anything to do with Acrobat Forms. Perhaps there is a forum for Flex?
-
'Using ColdFusion with Flex – sample does not work
Hi, I am having problems with Tom Jordahl's article on 'Using
ColdFusion with Flex – Part 1: Creating and running a contact
manager application' found on link '
http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1_02.html'
I do not understand his instruction. In step 4, it states:
"Copy the channel definition from the example Flex
configuration files found in resources/config (default location:
C:\fds2\resources\config\). "
In that folder, I have the following files:
data-management-config.xml, messaging-config.xml, proxy-config.xml,
remoting-config.xml. So which file in this folder am I supposed to
copy from. And where am I supposed to paste it to? Is it into
WEB-INF/services-config.xml file ?
When I ran the test,
http://localhost:8700/samples/dataservice/cfcontact/contactmgr.mxml,
I get the following errors:
4 Errors found.
Error /dataservice/cfcontact/contactmgr.mxml:31
Definition samples.contact could not be found.
30: import mx.rpc.events.*;
31: import samples.contact.*;
32:
I am very new at Flex and trying hard to understand this sw.
Can someone pse help. Thanks a million.What he means is to copy the channel section from the
C:\fds2\resources\config\services-config.xml file:
<!-- ColdFusion specific RTMP channel -->
<channel-definition id="cf-dataservice-rtmp"
class="mx.messaging.channels.RTMPChannel">
<endpoint uri="rtmp://{server.name}:2048"
class="flex.messaging.endpoints.RTMPEndpoint"/>
<properties>
<idle-timeout-minutes>20</idle-timeout-minutes>
<serialization>
<!-- This must be turned off for any CF channel -->
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>
<!-- ColdFusion specific HTTP channel -->
<channel-definition id="cf-polling-amf"
class="mx.messaging.channels.AMFChannel">
<endpoint
uri="
http://{server.name}:{server.port}/{context.root}/messagebroker/cfamfpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<serialization>
<!-- This must be turned off for any CF channel -->
<instantiate-types>false</instantiate-types>
</serialization>
<polling-enabled>true</polling-enabled>
<polling-interval-seconds>8</polling-interval-seconds>
</properties>
</channel-definition>
To the file
C:\fds2\jrun4\servers\default\samples\WEB-INF\flex\services-config.xml.
The resources directory contains just templates for
development, the samples
directory is a fully-deployed flex app.
Jorge Hernandez
"watsonValu" <[email protected]> wrote in
message
news:[email protected]...
> Hi, I am having problems with Tom Jordahl's article on
'Using ColdFusion
> with
> Flex ? Part 1: Creating and running a contact manager
application' found
> on
> link
> '
http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1_02.html'
> I do not understand his instruction. In step 4, it
states:
> "Copy the channel definition from the example Flex
configuration files
> found
> in resources/config (default location:
C:\fds2\resources\config\). "
> In that folder, I have the following files:
data-management-config.xml,
> messaging-config.xml, proxy-config.xml,
remoting-config.xml. So which file
> in
> this folder am I supposed to copy from. And where am I
supposed to paste
> it to?
> Is it into WEB-INF/services-config.xml file ?
> When I ran the test,
>
http://localhost:8700/samples/dataservice/cfcontact/contactmgr.mxml,
I get
> the
> following errors:
> 4 Errors found.
> Error /dataservice/cfcontact/contactmgr.mxml:31
> Definition samples.contact could not be found.
> 30: import mx.rpc.events.*;
> 31: import samples.contact.*;
> 32:
>
> I am very new at Flex and trying hard to understand this
sw. Can someone
> pse
> help. Thanks a million.
>
> -
How use multithead with socket
How use multithead with socket
I need do a client and server program that accept multitherad issue
Thanks who can help meyou'd have to do something like this:
(this is all assuming you want to read Strings from the socket. setSoTimeout works for any read() call to the InputStream associated with the Socket)
ServerSocket ss = new ServerSocket(myPort);
Socket s = ss.accept();
s.setSoTimeout(5*60*1000); // 5 mins * 60 secs * 1000ms
BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
boolean running = true;
while(running)
try
String readIn = in.readLine();
// do whatever you want with the data read
catch(SocketTimeoutException)
running = false;
Now. That's what I think needs to be done. I don't have Java on the machine I'm currently on, so I can't test/verify it, but it goes something like that.
Good luck,
Radish21 -
Here is an example to use cookie with static web service call:
http://download.oracle.com/docs/cd/B32110_01/web.1013/b28974/j2sewsclient.htm#DAFDHCFA
could some one give an example using cookie with dynamic invocation interdace to inva=oke web service?
ThanksDear net pas,
Hope you are doing good.
You have raised a very valid issue.
Please do have a look at the SAP NOTE: 1144722-Global configuration of session cookies and attributes
Also:
Protecting Sessions Security
http://help.sap.com/saphelp_nw70/helpdata/en/44/691ccdce2a3675e10000000a114a6b/frameset.htm
Here pay special attention at:
cookies named JSESSIONID (in accordance with the JavaÔ Servlet 2.3 specification) for tracking Web browser sessions.
For this purpose, make sure that the value of SystemCookiesDataProtection and SystemCookieHTTPProtection properties of the HTTP Provider Service on the server nodes is set to true:
More info at:
http://help.sap.com/saphelp_nw70ehp2/Helpdata/EN/44/691ccdce2a3675e10000000a114a6b/content.htm
Thank you and have a nice day :).
Kind Regards,
Hemanth
SAP AGS -
Use cookies with sessionManagement?
I'm trying to create cookies that I can pass to subsequent
webpages - all of my webpages are controlled by an Application.cfm
file with sessionManagement turned on (enabling session variables).
When a user logs in, I create a cookie for his org name (i.e.
<cfcookie name="orgname" value="#org_name#"
domain=".sprint.com">. With the debugger on, I can see the
cookie set on the login page. However, when I go to another page,
the debugger no longer shows the cookie. I only see CFID and
CFTOKEN.
Are we not allowed to use cookies with session
management?Are we not allowed to use cookies with session management?
Sure you are. What version of CF. There was some cookie
issues with
older, pre 5.0, versions of ColdFusion.
Are you doing anything on the subsequent pages with the
cookie? I'm not
sure a cookie would show up in debugger on any page if you
are not
writing or reading it on that given page. -
How to deal with Flex Exceptions ??
Hi ,
I know how to handle an Exception when dealing with Flex with server side that is , when an Exception comes from the server side (java) i can easily handle that on the fault event with the help of ErrorMessage .
But can anybody please let me know how to handle an Exception when it comes on to the ActionScript and show it to the User .
For instance , i have seen a half example like this :
try
catch(error:EOFError)
MyTextFiled.text = error.toString();
Now please let me know how can i show this to the End User ??
And i can only see Errors in ActionScript , is there anything like Exceptions on to Flex??
Thanks in advance .you can use any one of following
mx.controls.Alert.show(
"Error:"+e.message.toString())mx.controls.Alert.show(
"Error:"+e.toString()); -
Researching to use Blazeds with spring. I can use blazeds with flex builder 3.
I would like to know, If i can use balzeds 4 with flex builder 3.
I have all my applications on flex builder 3 with web services.
Trying to convert to blazeds with spring.Yes, it is very much possible. I have done the integration, please check the steps in my post.
http://sixtyfourarts.blogspot.com/2009/05/gae-integration-with-blazeds-in-eclipse.html -
Any issues using ALCS with Flex 4?
We're about to move some of our code base to Flex 4, and I wanted to check in advance if there would be any issues with ALCS using Flex 4 Beta 2 and Flash Builder Beta 2.
Thanks,
RickHi,
If you are using player 10 ALCS swc and Whiteboard with Flex 4 and Flash Builder beta 2, it might throw an exception sometimes which has been fixed recently and will be updated in the next drop.
Player 9 ALCS swc should work fine. We haven't done testing extensively on Flex 4 for our framework, so if there are any issues that you come across, please report to us.
Thanks
Hironmay Basu -
How use jdbc with swing ? i am new in this concept.
hi
freinds,
i am new in java can any one give the example which explain the how to use jdbc with swing.
thanks in advace.
satish
thanks.See here > http://support.apple.com/kb/HT4236
More info in the User Guides for your Devices... -
Can anybody suggest me as how to use Tomcat with MySQL server.
Thanks in advance.
Khiz_engadd the classpath to the JDBC-driver to the tomcat-
environment (I did it in tomcat.sh)
Then put your code accessing MySQL into a servlet....
You can put the user-ID and the password into a session-
object or read them in as parameters.
The book 'core Servlets and Java Server Pages' from
Marty Hall gave me a lot information.
Regards
Fredy -
Which is better frame works use along with flex
Hi,
I am developing an hospital application, mainly includes the
management of outpatients and in front end i am using flex but in
back end i did not get a clear idea about which frame work has to
use or need of a new architecture. i just need some suggestion
which of these spring,EJB 3.0 and Jboss Seam is better for back end
implementation.
Thanks and Regards
kumarHey kumar ,
I don't have experience with a lot of frameworks but I am
using Blaze-DS + Spring with deployed under glassfish.
I think you biggest problem here is how to make the frontend
pluggable, extensible and easy to maintain.
I do make all single screens as single modules. and each
module have it's own java class to do the work + some java classes
for general perpose.
Teh whole thing is build in ANTS and using jnit as a testing
framework for java. I don't have anything yet to do automated UI
testing.
Ries -
Using XML with Flex - Best Practice Question
Hi
I am using an XML file as a dataProvider for my Flex
application.
My application is quite large and is being fed a lot of data
– therefore the XML file that I am using is also quite large.
I have read some tutorials and looked thorough some online
examples and am just after a little advice. My application is
working, but I am not sure if I have gone about setting and using
my data provider in the best possible (most efficient) way.
I am basically after some advice as to weather I am going
about using (accessing) my XML and populating my Flex application
is the best / most efficient way???
My application consists of the main application (MXML) file
and also additional AS files / components.
I am setting up my connection to my XML file within my main
application file using HTTPService :
<mx:HTTPService
id="myResults"
url="
http://localhost/myFlexDataProvider.xml"
resultFormat="e4x"
result="myResultHandler(event)" />
and handling my results with the following function:
public function myResultHandler(event:ResultEvent):void
myDataFeed = event.result as XML;
within my application I am setting my variable values by
firstly delacring them:
public var fName:String;
public var lName:String;
public var postCode:string;
public var telNum:int;
And then, giving them a value by “drilling” into
the XML, E;g:
fName = myDataFeed.employeeDetails.contactDetails.firstName;
lName = myDataFeed.employeeDetails.contactDetails.lastName;
postCode =
myDataFeed.employeeDetails.contactDetails.address.postcode;
telNum = myDataFeed.employeeDetails.contactDetails.postcode;
etc…
Therefore, for any of my external (components in a different
AS file) components, I am therefore referencing there values using
Application:
import mx.core.Application;
And setting the values / variables within the AS components
as follows:
public var fName:String;
public var lName:String;
fName =
Application.application.myDataFeed.employeeDetails.contactDetails.firstName;
lName =
Application.application.myDataFeed.employeeDetails.contactDetails.lastName;
As mentioned this method seems to work, however, is it the
best way to do it??? :
- Connect to my XML file
- Set up my application variables
- Give my variables values from the XML file ……
Bearing in mind that in this particular application there are
many variable that need to be set and there for a lot of lines of
code just setting up and assigning variables values from my XML
file.
Could someone Please advise me on this one????
Thanks a lot,
Jon.I don't see any problem with that.
Your alternatives are to skip the instance variables and
query the XML directly. If you use the values in a lot of places,
then the Variables will be easier to use and maintain.
Also, instead of instance variables, you colld put the values
in an "associative array" (object/hashtable), or in a dictionary.
Tracy -
How use REPORT_DESTYPE with WebDAV
Hi,
How can I use the RUN_REPORT_OBJECT command to send report to Portal via WebDAV. If I try:
SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESTYPE,WEBDAV);
there is an error:
identifier "WEBDAB" must be declared !
In the Document " Oracle Application Server 10G -Integrating Oracle Reports in Oracle Forms Services applications" It said the REPORT_DESTYPE may be FILE, PRINTER, MAIL or CACHE only. What about other types like OraclePortal and WebDAV ?Hi Fang,
As far as I know, SQL Server Reporting Services (SSRS), have no permission extension. In Reporting Services, it is use role-based security to grant user access to a report server. There are two types of roles: Item-level roles and System-level roles.
Based on my test, if we assign user with System User System-level role, the user will have permission to user Report Builder to create report. However, if we only assigned Browser or Report Builder Item-level role to the user, he/she will have no permission
to publish the report to the report server. In this situation, although user have permission user Report Builder to edit the report, it will have no effect of the report in report server. User who has assigned Browser or Report Builder Item-level role will
have no permission to delete report in the report server.
There is an article about Setting Permissions in Reporting Services, you can refer to it.
http://technet.microsoft.com/en-us/library/aa337491(v=sql.105).aspx
Hope this helps.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support
Maybe you are looking for
-
I have a Surface Pro 3 and just purchased the download link for Photoshop Elements (newest one) from Adobe. I've tried downloading several times and in 64 and 32 bit types, but have only made it as far as the install before receiving an error. Anyone
-
Hyper-V Fabric and Fabric Management Cluster
Dear All...........Would appreciate understanding of following: What is the difference between Fabric Cluster and Fabric Management Cluster? What virtual machines should be part of Fabric Cluster and Fabric Management Cluster respectively? Thanks in
-
No surround sound for Chuck Versus First Class?
After seven episodes (weeks) were aired, Chuck, Season 3 was finally made available. Did some catching up with the seven episodes and realized that Episode 5 - Chuck Versus First Class has no surround sound track. Pretty inconsistent with the rest of
-
How do I get rid of the question marks?
All my thumbnails have question marks in the upper corner. These pictures do not load. In fact, I get an error message (file not found) for each one. So far, I have no pictures to log in with. Any suggestions?---Doc
-
Regarding print preview for BOM
Hi, In sales order BOM item is appearing with two other subitems but while taking the print out only main item should appear in print out or it should give the option of printing either main item or sub items pls let me know the setting need to be do