FLEX and JSP

so for my senior design project i designed a web project using java servlets and JSP pages. For one part of the project to visualize some data i used FLEX to create GANTT Charts. Now that it's done i was looking into how to embed that flex code into JSP page and i found on ADOBE website links for taglibs, however right now it redirects me into a page of Adobe LiveCycle , which cost a lot of money.
Is there another way to embed flex into jsp? or some other way to get just the taglib for flex?
Thank You

It depends on how Flex is getting the data, and how it's generated. If you refresh the page, then the Flex app will be reset, and won't have any knowledge of previous data. One thing you could do is store the data on the server and access it via some web-service calls (eg AMF or REST). The server could manage the user's session, store data, and generate or retrieve previous data.

Similar Messages

  • How to communicate between Flex and JSP and show the result in an Iframe

    Hi all
    I am trying to send some data from flex to one HTTPService and trying to show the same response jsp in an Iframe. But unfortunately i am unable to get the responce Jsp's url to set as a source for iframe.
    let me explain you clearly...I have a mxml where i am having a text box and a button in the left panel and in the right panel i am having an Iframe to display jsp. So once user enters some value in the text box and clicks button then HTTPservice's send method will be called with text box's content as an arguement. So i can fetch that value from request object in jsp and display the value in jsp. So the problem here is i want display that result jsp in my Iframe. I know that , we need that result jsp URL to display in Iframe . But as i am sending POST request to HTTPservice, i am not able to get the result jsp's URL in flex side.
    So i need help desperately from great minds.So anyone of you can give me some suggestions!!!!
    Regards

    Hi all can some one please give a solution ...Any suggestions would be greatly appreciated

  • Flex and JSP tutorials and articles?

    I found one that doesnt really answer most of my questions: http://cookbooks.adobe.com/index.cfm?event=showdetails&postId=7746
    I am looking for more information on setting up flex applications that can sit ontop of JSP pages and utilize the code to interact with the back end data base to display, gather, send and retrieve data. I like the whole "not having to refresh when new data comes in" concept.

    It depends on how Flex is getting the data, and how it's generated. If you refresh the page, then the Flex app will be reset, and won't have any knowledge of previous data. One thing you could do is store the data on the server and access it via some web-service calls (eg AMF or REST). The server could manage the user's session, store data, and generate or retrieve previous data.

  • Flex and J2EE

    I am using the Flex 3 SDK. On the server side, I am using
    Java.
    I looked at the Flex 3 SDK documentation and I found the Flex
    3 compiler modules for Apache and IIS:
    http://livedocs.adobe.com/flex/3/html/help.html?content=apache_1.html
    Is there a Java servlet filter that can compile MXML files on
    demand?
    Thanks in advance.

    I found the FlexMxmlServlet.
    1) visit
    http://opensource.adobe.com/wiki/display/flexsdk/Downloads
    2) download: FlexModule_j2ee.zip
    The zip file contains the FlexMxmlServlet and a Flex JSP Tag
    Library.
    Curiously, I can't find the source code for the
    FlexMxmlServlet or the Flex JSP Tag Library. I looked in Adobe's
    Subversion repository but the code is not there.
    Anyway, here is a web.xml file that shows how to use the
    servlet and the tag library:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD
    Web Application 2.3//EN" "
    http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>Flex Webtier
    Compiler</display-name>
    <description>Flex SDK Webtier Compiler Template
    Application</description>
    <context-param>
    <param-name>flex.class.path</param-name>
    <param-value>/WEB-INF/flex/hotfixes,/WEB-INF/flex/jars</param-value>
    </context-param>
    <servlet>
    <servlet-name>FlexMxmlServlet</servlet-name>
    <display-name>MXML Processor</display-name>
    <description>Servlet wrapper for the Mxml
    Compiler</description>
    <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
    <init-param>
    <param-name>servlet.class</param-name>
    <param-value>flex.webtier.server.j2ee.MxmlServlet</param-value>
    </init-param>
    <init-param>
    <param-name>webtier.configuration.file</param-name>
    <param-value>/WEB-INF/flex/flex-webtier-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>FlexSwfServlet</servlet-name>
    <display-name>SWF Retriever</display-name>
    <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
    <init-param>
    <param-name>servlet.class</param-name>
    <param-value>flex.webtier.server.j2ee.SwfServlet</param-value>
    </init-param>
    <!-- SwfServlet must be initialized after MxmlServlet
    -->
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>FlexForbiddenServlet</servlet-name>
    <display-name>Prevents access to *.as/*.swc
    files</display-name>
    <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
    <init-param>
    <param-name>servlet.class</param-name>
    <param-value>flex.webtier.server.j2ee.ForbiddenServlet</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>FlexInternalServlet</servlet-name>
    <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
    <init-param>
    <param-name>servlet.class</param-name>
    <param-value>flex.webtier.server.j2ee.filemanager.FileManagerServlet</param-value>
    </init-param>
    <load-on-startup>10</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>FlexMxmlServlet</servlet-name>
    <url-pattern>*.mxml</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>FlexSwfServlet</servlet-name>
    <url-pattern>*.swf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>FlexForbiddenServlet</servlet-name>
    <url-pattern>*.as</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>FlexForbiddenServlet</servlet-name>
    <url-pattern>*.swc</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>FlexInternalServlet</servlet-name>
    <url-pattern>/flex-internal/*</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    </welcome-file-list>
    <taglib>
    <taglib-uri>FlexTagLib</taglib-uri>
    <taglib-location>/WEB-INF/lib/flex-bootstrap-jsp.jar</taglib-location>
    </taglib>
    </web-app>

  • How to use Flex in JSP

    Hi ,
    I am new to Oracle BPM . I have created a sample Process flow with Two Participants and two roles .And Also i have created the ScreenFlow using Jsp's . Now my problem is we need to integrate Adobe flex inside Jsp's or is there a way we can directly use Flex mxml files for UI . Is there way to use Taglibs which supports Adobe Flex in Jsp ..?
    Thanks,
    KM
    Edited by: user7711237 on Sep 23, 2009 5:00 AM

    This is a very interesting question. Please pardon my limited knowledge of OBPM and Flex, but it sounds like there are a couple of options.
    1. PAPI - build an external web app with Flex front end and a server server-side component that uses PAPI (or PAPI WS) for integration with OBPM
    2. JSP - this is a lot more hacky (if at all possible) - build custom JSPs using the standard OBPM taglibs, etc., and Flex app. Then use Flex / JavaScript interaction to invoke submit the from on the JSPs.
    Here are a few links for #2
    http://www.switchonthecode.com/tutorials/flex-javascript-tutorial-simple-interaction
    http://www.vipercreations.com/tutorials/Adobe%20Flex/35/
    http://www.abdulqabiz.com/blog/archives/2005/04/28/calling-a-flex-function-from-javascript/
    It almost sounds like #1 might be a good long-term solution for complex UIs, while #2 would fit better for a smaller and more simple Flex UI that need to be developed quickly. Hope others might offer better suggestions.
    HTH.

  • Flex and EJB with JBOSS

    Hi!
    I have a web application running on JBOSS 4.0.4 and using EJB/EJB3.
    The main goal is simple, i need to substitute some JSP pages with flex.
    I'm a total newbie with flex and i don't even know how to get started.
    What do i need? Only BlazeDS or something more? Is there some tutorial with a step by step explanation?
    I appreciate your help.

    You cant really replace Struts with Flex, maybe a view part
    , thats about is, you still need backend processioning
    logic,all that you are asking is difficult to answer is one reply,
    IMHO, best thing you can do is to dive into following URLs :
    http://www.adobe.com/devnet/flex/
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part2_DevApps_1.html
    http://livedocs.adobe.com/blazeds/1/blazeds_devguide/
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part6_ProgAS_1.html
    and of course your best friend :
    http://livedocs.adobe.com/flex/3/langref/index.html

  • Purchase Order Dashboard using Adobe Flex and AIR

    Hi ,
      I have written a AIR apps for displaying the Purchase Order using OPen source Flex and AIR making Web Service calls to our SAP R3  6.20 Backend System . If anybody would be interested in taking a look at it and expanding the apps please free to post at those forum with the your email ID . I can send the AIR apps along with the source code .
    Thnks
    V

    I have uploaded the zip file containing my code . If anybody is interested can download from this link .
    http://www.mediafire.com/?8mfesdczsuv
    Vinod

  • Problem in creating client side PDF with image using flex and AlivePD

    I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
    Thanks in advance
    Atishay

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • Ideas pls for a small application on java and jsp?

    hi ,
    I would like to create an application which for resume. I would like to codify the java code . The java code should be able to autogenerate jsp file's since the output of the resume would be on an jsp page. To add it simply a wizard for dynamic resume creation using java swings and jsp. Code for jsp should be autogenerated please note it.
    Ideas please!
    Thanks in advance

    I'd like to add more information to Patreck's suggestion.
    JSP pages are wonderful if you need the web server to perform some actions before sending you the final web page.
    Here, you don't need the web server to do anything because your Swing application can do it for you. As Patreck implies, Swing can make a connection to the database, retrieve any information you want, perform whatever logic you need, and write the output to an HTML file.
    To give you an example, you can use Internet Explorer to view a basic web page on your hard disk. You can also use Microsoft Word to view the same basic web page. They both do the same task and there is no need to force IE to use its Word plug-in in order to view the web page.
    JSPs are not necessary because Swing will do all of the work for you. You only need JSPs if you want people to use your program through a web browser because they can't do Swing inside a web browser. You should only use one or the other, not both. Understand now?
    If you really really must generate JSP code from a Swing application, then just write out the JSP stuff in the file. For example...
    public void createWebPage( Printwriter pw, String myName ) {
       pw.println( "<% String myJSPName = \"" + myName + "\" %>" );
       pw.println( "<HTML>");
       pw.println( "<HEAD>");
       pw.println( "<TITLE>My Resume</TITLE>" );
       pw.println( "</HEAD>");
       pw.println( "<BODY>" );
       pw.println( "<H1>My name is " + myName + " and my JSP name is <%= myJSPName %></H1>" );
       pw.println( "</BODY>" );
       pw.println( "</HTML>" );
    }As you can see, it's pointless to embed JSP when you can do all the programming within Swing first and just write out the correct response.

  • How do I save a file to a server using flex and coldfusion?

    How do I save a file to a server using flex and coldfusion?
    On the CF side I might need to use this:
    <cffile action="UPLOAD" filefield="Filedata"
    destination="#expandpath('..\somepath)#"
    nameconflict="overwrite">
    And on the flex side I might need to use something like this:
    var sendVars:URLVariables = new URLVariables();
    sendVars.action = "upload";
    var request:URLRequest = new URLRequest();
    request.data = sendVars;
    request.url = _strUploadScript;
    request.method = URLRequestMethod.POST;
    _refUploadFile = new FileReference();
    _refUploadFile = _arrUploadFiles[_numCurrentUpload].data;
    _refUploadFile.addEventListener(ProgressEvent.PROGRESS,
    onUploadProgress);
    _refUploadFile.addEventListener(Event.COMPLETE,
    onUploadComplete);
    _refUploadFile.addEventListener(IOErrorEvent.IO_ERROR,
    onUploadIoError);
    _refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    onUploadSecurityError);
    _refUploadFile.upload(request, "file", false);
    I just don't know how to put it all together in Coldfusion.

    try this...
    http://cf-creations.co.uk/blog/index.cfm/2008/9/20/Flex--File-Upload-Form--Part-One--Build ing-The-Initial-Form

  • Hi frnds i want to help in servlet,java bean and JSP

    hi friends i'm right now in M.SC(IT) and i want to do project in SERVLET,,JAVA BEANS and JSP ,
    so pls give me a title about that
    NOTE: I develop a project in group(2 persons there)
    my email id is : [email protected] , [email protected] , [email protected]

    You cannot pair your iPod to a cell phone, so forget about it.
    The only way you can get free WiFi is to hang out at a Denny's, a Starbucks, or a truck stop, and I don't think your parents would approve....

  • Flex and Java on Desktop

    Hi
    We are having this requirement , we want to develop a
    application using flex for adobe AIR runtime which will communicate
    with java in the desktop, we are not having any servers here, so
    flex application want to communicate with java classes with out the
    help of any server so I can't use httpservice, webservice or
    remoting .
    I like to know the ways to communicate from flex 3.0(Adobe
    AIR) to java files (java takes care of splitting PowerPoint
    files and converting it into serious of jpeg files, and
    creating ppt files from the objects returned from flex ).
    Is there any other way to communicate form between flex and
    java in the desktop ??? please give inputs
    Thiru

    Hi,
    you could use XMLSocket or Socket classes depending on the
    type of communication you want to stablish.
    I have been testing this for a while although not for a
    project.
    However my impression is that you need to install the AIR app
    which is self-extracted and installed, but in second hand, you have
    to install the Java app, that acts as a server, and it must be
    executed every time your AIR app is, and the other way around.
    Untill now I haven't got any idea on doing this without too
    much work, but you can take a look at the Merapi project.
    Manu

  • Sharing code between Flex and AIR versions using library project

    Hello everyone,
    I'm developing an application that has both Flex and AIR versions. In order to share code between these apps, I created a library project and added all my code there. Now I've set the library project as a dependency for both Flex and AIR projects. Since there are some components that use the DataService object, I've added fds.swc and fds_rb.swc and fiber_rb.swc modules to the libs directory of the library project. No compile errors. Now, if I try to run my Flex application, I'm getting this error:
    Variable mx.data::LocalStoreFactory is not defined.
    I know that this error comes up when playerfds.swc is not present in the path. But that is not the case here. I have added playerfds.swc, fds.swc and related lib files to the build path.
    If I go back and add the playerfds.swc file to the original library project, the error no longer appears. This is not a proper solution for me, since I need to share this project with AIR version also, and I cannot have both playerfds.swc and airfds.swc in the same project.. Has anyone faced an issue like this before?? What am I doing wrong??

    Hello everyone,
    I'm developing an application that has both Flex and AIR versions. In order to share code between these apps, I created a library project and added all my code there. Now I've set the library project as a dependency for both Flex and AIR projects. Since there are some components that use the DataService object, I've added fds.swc and fds_rb.swc and fiber_rb.swc modules to the libs directory of the library project. No compile errors. Now, if I try to run my Flex application, I'm getting this error:
    Variable mx.data::LocalStoreFactory is not defined.
    I know that this error comes up when playerfds.swc is not present in the path. But that is not the case here. I have added playerfds.swc, fds.swc and related lib files to the build path.
    If I go back and add the playerfds.swc file to the original library project, the error no longer appears. This is not a proper solution for me, since I need to share this project with AIR version also, and I cannot have both playerfds.swc and airfds.swc in the same project.. Has anyone faced an issue like this before?? What am I doing wrong??

  • I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?,

    I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?

    Thanks, Flex harUI, for the direction in regards to isolating build changes. That aside (still working on it), can you offer any direction in regards to my original question on SDK and AIR compatibility? I'm specifically looking for a version compatibility mapping or anything that definitively states, "Flex SDK x.y.z works with the following versions of AIR". This information is crucial for us in order to more specifically plan our own roadmap built upon these two frameworks as we consider both existing installations of our software and future distributions.

  • Flex and BlazeDS Compile for Deployement

    Hi,
    I've been following the Flex + BlazeDS tutorial on the Message Service from adobe to start learning working with blazeds. Everything worked out great on the local server of course but I got stuck when it came to moving the files to a remote server. I've looked around quite a lot and found out it's because the compiler feeds the services-config.xml upon compile and at lease in my case won't take and external file. The solution everyone has been posting on the net is writing the channels in actionscript within flex and feedin it the valid endpoint that would be found in the xml configuration file. That's all nice and dandy but everyone has been talking and showing examples of this being done for RemoteObject and I haven't managed to find any examples for Messaging.
    Can anyone help me out with an example on how to deploy my application to a server? (either by coding the channels in AS or otherwise) The application itself is pretty basic...
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="200" minHeight="480" creationComplete="consumer.subscribe()" width="250" currentState="EnterName">
    <fx:Script>
      <![CDATA[
       import mx.messaging.events.MessageEvent;
       import spark.events.TextOperationEvent;
      ]]>
    </fx:Script>
    <s:states>
      <s:State name="Chat"/>
      <s:State name="EnterName"/>
    </s:states>
    <fx:Declarations>
      <s:Producer id="producer" destination="chat"/>
      <s:Consumer id="consumer" destination="chat" message="messageHandler(event.message)"/>
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
       import mx.messaging.messages.AsyncMessage;
       import mx.messaging.messages.IMessage;
       private function send():void{
        var message:IMessage = new AsyncMessage();
        message.body.chatMessage = user.text + ":" + " " + msg.text;
        producer.send(message);
        msg.text = "";
       private function messageHandler(message:IMessage):void{
        log.text += message.body.chatMessage + "\n";
      ]]>
    </fx:Script>
    <s:Panel title="Chat" width="100%" height="100%">
      <s:TextArea id="log" height="377" x="10" y="10" width="228" includeIn="Chat"/>
      <mx:ControlBar width="246" height="52" x="1" y="395" includeIn="Chat">
       <s:TextInput id="msg" width="100%" enter="send()"/>
       <s:Button label="Send B" click="send()"/>
       </mx:ControlBar>
      <s:TextInput includeIn="EnterName" x="60" y="177" id="user" />
      <s:Button includeIn="EnterName" x="87" y="207" label="Start Chat" id="chat" click="chat_clickHandler(event)"/>
      <s:Label includeIn="EnterName" x="57" y="157" text="Please Enter Your Name"/>
      </s:Panel>
    </s:Applicatio>
    And besides that in the messaging-config.xml file on the server a destination with the id="chat" is created and that's it.
    Any help or pointing in the right direction will be greatly appreciated.
    Thank you,
    Nick

    Update:
    Ok...I finally figured out that by replacing the tokens in the services-config.xml file with the physical address of the server everything works.
    Anyway...this means the application needs to be compiled everytime it is moved to a new server or even a different folder on the same server for that matter. Is there any way to pass the {server.name}, {server.port} and {context.root} tokens to the application at runtime for messaging?
    Thanks,

Maybe you are looking for

  • Creating Detail record in Master Detail form

    I have created a Master Detail form with the Detail form being on a second page. I have no problem editing an existing detail record. However, if I attempt to create a new Detail record (insert). I get an error. It appears that the value of the field

  • Please tell me how to automatically play a sound file in a PDF slideshow?Da

    I use PS CS3, LR2, and now I purchased Acrobat 9.1 Pro.  My intent is to create an image based full screen automatic slideshow WITH SOUND.  I have everything working well but I can't figure out how to get the sound file to simply play along with the

  • ITunes store will not load

    Hi iTunes main store screen will not load it downloads songs I have bought via my iPhone via the cloud when I run iTunes. I have updated everything and did a reinstall still no luck! running Vista any ideas what to try next. Dan

  • Is it possible to get a graphics card repaired?

    Does anyone know if there is somewhere that can repair a RADEON x800xt mac edition AGP card? Mine died last week. ATI won't touch it because I am not original user; and these cards are rare/expensive to replace. Thanks, -Sam

  • Web Analysis rename utility

    "The Rename Utility is a stand-alone application designed to update objects in a Web Analysis repository based on the data source metadata changes." Where I can find this utility? Thanks all!