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.

Similar Messages

  • Help me!! How to use JavaScript with JSP ??

    I am using JDeveloper and I created a screen in JSP which uses a bean for database connectivity and retriving info onto the page.
    The page has a ListBox where list items are populated from the database.My requirement is
    whenever the list is changed the page shuold be refreshed with the selected item info.
    I tried to use 'JavaScript' for triggering the event with 'onChange' event of the ListBox.But the event is not getting invoked. I think JavaScript is not working with JSP.
    Please help me with how to Use javaScript with JSP or any other alternative where I can meet my requirement.
    I have one more question...I have gone through the JSP samples in OTN and I am trying do download the sample 'Travel servlet' which show list of countries...etc
    I have also gone through the 'readme' but I don't know how to extract .jar file.
    I would be great if you could help me in this.
    Thanks!!
    Geeta
    null

    We have a similar need. We have used Cold Fusion to display data from Our Oracle Database. We have a simple SElect Box in HTML populated with the oracle data. When someone selects say the State of Pennsylvania. then we have an On change event that runs a Javascript to go get all the cities in Pennsylvania.
    Proble we are having is that inorder for the Javascript to work , we currently have to send all the valid data.
    Do you know of any way to dynamically query the the Oracle database in Javascript

  • How to use EJB in JSP...urgent!!!

    hello,
    i am novice programmer in EJB.
    i am using weblogic 6.1 ...
    my problem is how to use EJB in jsp page.
    my code is as follow..but its not displaying any result.
    <%@ page import="javax.naming.InitialContext,
    javax.naming.Context,
    java.util.Properties,
    firstEJB.First,
    firstEJB.FirstHome"%>
    <%
         long t1 = System.currentTimeMillis();
         System.out.println(t1);
         Properties props = new Properties();
         p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.TengahInitialContextFactory");
         props.put(Context.PROVIDER_URL, "localhost:7001");
         Context ctx = new InitialContext(props);
         FirstHome home = (FirstHome)ctx.lookup("FirstEJB");
         First bean = home.create();
         String time = bean.getTime();
         bean.remove();
         ctx.close();
         long t2 = System.currentTimeMillis();
    %>
    <html>
         <head>
              <style>p { font-family:Verdana;font-size:12px; }</style>
         </head>
         <body>
              <p>Message received from bean = "<%= time %>".<br>Time taken :
              <%= (t2 - t1) %> ms.</p>
         </body>
    </html>
    please tell me the solution.

    Hi, I don't know if it may be the cuase of your problems, but you should narrow the Object obtained doing the lookup, like this:
    FirstHome home = (FirstHome) PortableRemoteObject.narrow(ctx.lookup("FirstEJB"), FirstHome.class);

  • How to use taglibs in JSP for Database access

    Hi
    Could any one please tell me how to use taglibs in JSP for Database access
    with regrds
    Jojo

    This is a sample how to connect to a MySQL database with JSTL 1.0:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>JSTL MySQL</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <c:catch var="e">
    <sql:setDataSource var="datasource" url="jdbc:mysql://Your_Server_Name_Here/You_Schema_Here"
                           user="Your_Username_Here" password="Your_Password_Here"
                           driver="com.mysql.jdbc.Driver"/>
    <c:out value="datasource= ${datasource},  Class = ${driver.class}"/>
    <br />
    <br />
    <sql:query var="deejays" dataSource="${datasource}">SELECT * FROM Your_Table_Name_Here</sql:query>
    <table>
    <%-- Get the column names for the header of the table --%>
    <c:forEach var="columnName" items="${deejays.columnNames}"><th><c:out value="${columnName}"/></th></c:forEach>
    <tbody>
    <%-- Get the value of each column while iterating over rows --%>
    <c:forEach var="row" items="${deejays.rows}">
      <tr><c:forEach var="column" items="${row}">
            <td><c:out value="${column.value}"/></td>
          </c:forEach>
      </tr>
    </c:forEach>
    </tbody>
    </table>
    </c:catch>
    <br />
    <br />
    <c:if test="${e!=null}"><span class="error">Error</span>�
      <c:out value="${e}" />
    </c:if>
    </body>
    </html>And this thread might help you:
    http://forum.java.sun.com/thread.jspa?threadID=639471&tstart=44

  • How to use JOptionPane in jsp, instead of javascript message alert box?

    HI,
    How to use JOptionPane in jsp,
    instead of javascript "message alert box"?
    I hate javascript,
    I'd like to only use java in jsp. don't use javascript.
    javascript is client side,
    jsp is server side. i know that.
    how to... instead of javascript box?
    how to use ... message box in webpage?
    don't use applet,,,, don't use javascript,,,
    hm...zzzZzz
    I hate javascript..T.T
    <SCRIPT language=JavaScript>
    alert("hate javascript");
    </SCRIPT>
    ===>>>>
    In this way,,
    JOptionPane.showOptionDialog(null,"I love java")
    I'd like to only use jsp and java and html...in webpage.
    don't use javascript....
    Why? don't sun provide message box in jsp, instead of javascrip box?
    Why?
    Edited by: seong-ki on Nov 4, 2007 8:38 PM

    Drugs are bad, m'kay?

  • How to use cookies in jsp

    Hi all,
    I'm new to jsp, please let me know how to use cookies with jsp.
    I have three web applications, in run time I have to switch from one application to another application based on single login page. I have taught cookies are one of the solution. But while I'm googling I unable to get such a good material.
    please give some examples,
    Thanks in advance.
    achchayya

    Read a cookie in jsp
    HttpSession session = request.getSession();
    Cookie cookie_session = getCookie(request, "COOKIENAME");
              if (cookie_session == null) {
                   sesID = session.getId();
              } else {
                   sesID = cookie_session.getValue();
              }or
    get all cookie in the browser
    This gets all the cookies and according to the cookie name given u can get the cookie value
    Cookie[] cookies = request.getCookies();
              if (cookies != null) {
                   for (int i = 0; i < cookies.length; i++) {
                        if (cookies.getName().equals(cookieName))
                             return cookies[i];
                   }but i am not sure if this works for ur requirement try and see                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to use threads in JSP???

    hello
    i want to use threads with JSP.
    i want to write a jsp page which will
    start 2 different threads. the 1st thread should just display a message and the second page should redirect this page to another jsp page.
    till the redirection is goin on, the message should be displayed in the browser from the 1st thread.
    i dont know actually how to use threads in JSP by implementing the Runnable insterface, if not m then how do i do it ??
    thanx
    Kamal Jai

    Why do you want to use threads to do this ??
    If you write a message and do a redirection, the message will be displayed until the other page will be loaded into the browser...
    I already launched a thread from a JSP but it was for a four hour process where the user can close his browser windows.

  • How to use datagrid in jsp ?

    Hi All ,
    Can any body let me know , how to use datagrid in jsp pages .I have downloaded the taglibs-datagrid.jar file and taglibs-datagrid.tld. I have saved the .jar File in the WEB-INF/lib and .tld to the WEB-INF directories.
    I wrote a program that is getting a collection from the request and i just want to display the objects in the datagrid.Please help me out of this problem.It's better to explain with example. Waiting for a response.
    Regards,
    Rakesh

    Why do you want to use threads to do this ??
    If you write a message and do a redirection, the message will be displayed until the other page will be loaded into the browser...
    I already launched a thread from a JSP but it was for a four hour process where the user can close his browser windows.

  • How to use Flex tag library in jsp

    Hi All,
    We are planning to use flex in our J2EE application in order
    to show some charts. Our j2ee application is in JSP,Struts. I have
    searched on google about this and found that I can include flex 3
    tab library in the jsp in order to use mxml tag in the jsp. I have
    written a sample program in the jsp which uses flex.
    <%@ taglib uri="FlexTagLib" prefix="mm" %>
    <SCRIPT LANGUAGE="JavaScript">
    function showMessage() {
    message.value = "Use this application wisely";
    function hideMessage() {
    message.value = "";
    </SCRIPT>
    <mm:mxml border="5" onmouseover="showMessage();"
    onmouseout="hideMessage();">
    </mm:mxml>
    <TABLE>
    <TR>
    <TD><input type="text" name="message"
    size="50"></TD>
    </TR>
    </TABLE>
    I have added entry inweb.xml. See below,
    <taglib>
    <taglib-uri>FlexTagLib</taglib-uri>
    <taglib-location>/WEB-INF/tlds/flex-bootstrap.jar</taglib-location>
    </taglib>
    Following are the problems that I am currently facing.
    1) Could anybody let me know whether the entry of
    <taglib> tag is correct in the web.xml. Is it the correct
    jar(flex-bootstrap.jar) that I should include?
    2) If yes, from where to download it? or
    If no, what is correct jar that i should include and how?
    your response will be highly appriciated as this is the major
    requirement in our project?
    Thanks ,
    Chandan

    Hi,
    Pleas find details at the URL below.
    http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP
    Hope this helps.

  • How to use chart in jsp by using  MS Acess Db

    hii
    My application is to generate the report using the chart with the help of MS Acess
    i heard abt the JFreeChart . I downloaded it but i dont know how to link and use it in my application
    plz help me.....
    Thank u in advance

    I downloaded it but i dont know how to link and use it in my application I'm sure they provide some examples how to use it.
    Look at them and try to understand how a JFreeChart is used.
    When you have a concrete question about JSPs an JSTL you may come back and ask again.
    If you have questions about JFreeChart ask them in the JFreeChart Forum.
    andi

  • How to use XMHTTP in jsp

    Hello,
    can any body tell me how to use the XMHTTP in jsp programming are servlet..what i know is XMLHTTP used in with java script functions..for connecting to servers without refrshing the page.can we use directly in jsp page.if so which APIs we have to use..provide me some help..
    regards,

    Thanks Steve for ur reply..
    XMLHTTP is a microsoft related thing..How so? This code works with Firefox & IE6 on Tomcat 5:
    <%
    String aStr = request.getParameter("a");
    String bStr = request.getParameter("b");
    String cStr = "";
    int a,b,c;
    if (aStr != null && bStr != null) {
         a = Integer.parseInt(aStr);
         b = Integer.parseInt(bStr);
         c = a + b;
         cStr = ""+c;
    } else {
         aStr = "";
         bStr = "";
    String acc = request.getHeader("Accept");
    if (acc!=null && acc.indexOf("message/x-jl-formresult")!=-1) {
       try { out.print(cStr.trim()); } catch (Exception e) { e.printStackTrace(); }
    } else {
    %>
    <html>
         <head>
             <title>Add</title>
         </head>
         <body>
              <script>
                   var xmlhttp=false;
                    try {
                     xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
                    } catch (e) {
                     try {
                      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                     } catch (E) {
                      xmlhttp = false;
                   if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                     xmlhttp = new XMLHttpRequest();
                   function calc() {
                    try {
                     frm=document.forms[0]
                     url="addbyxmlhttp.jsp?a="+frm.elements['a'].value+"&b="+frm.elements['b'].value
                     xmlhttp.open("GET",url,true);
                     xmlhttp.onreadystatechange=function() {
                      if (xmlhttp.readyState==4) {
                       document.forms[0].total.value=xmlhttp.responseText;
                    xmlhttp.setRequestHeader('Accept','message/x-jl-formresult');
                    xmlhttp.send(null);
                    } catch(E) { alert (E.message); }
                    return false
              </script>
              <form action="addbyxmlhttp.jsp" method="get" onsubmit="return calc();">
                   <input type="text" name="a" value="<%=aStr%>"/> +
                   <input type="text" name="b" value="<%=bStr%>"/> =
                   <input type="text" name="total" value=""/>
                   <input type=submit value="Calculate">
              </form>
         </body>
    </html>
    <%
    %>That is a direct translation from one of the examples on the page I pointed to earlier.
    do we have any
    apis in java insteead of
    var xmlhttp = new
    ew ActiveXObject("Microsoft.XMLHTTP");
    var xml_dom = new
    new ActiveXObject("MSXML2.DOMDocument");
    var xml_domTemp = new
    new ActiveXObject("MSXML2.DOMDocument");
    these things i want to use java related stuff..is it
    possible..
    regards,Those things are JAVASCRIPT!! Like I said, most of the work is done in javascript, not the server side stuf.. And the page I pointed you to answers that question.

  • How To Use EJB in JSP

    I've used beans in JSP.. but how to use EJB's in beans ??
    EJB's are deployed in Oracle 8i
    Please Help
    Thank You.

    Please find the answer in this HOWTO:
    http://technet.oracle.com:89/ubb/Forum2/HTML/006404.html
    HOWTO's are archived on the JDeveloper Documentation page:
    http://technet.oracle.com/docs/products/jdev/listing.htm (Click on Documentation Tab)
    Thanks,
    -Roel.

  • CS3 missing components or How to use Flex 2 components in CS3

    Does anyone have a good resource for how to use Flex2
    components in CS3?
    I found an install that said it would install Flex2
    components in CS3, but all it added waas the UIMovieClip for
    packaging Flash MC in swc's for Flex.
    Right now I am specifically trying to solve the missing
    dateField component in CS3.
    But I would like to find out if anyone has found a good
    resource for alternatives to all missing components in CS3.
    I'm hoping the answer is not to build them from scratch.
    Thanks,
    Hunter

    Hi,
    Pleas find details at the URL below.
    http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP
    Hope this helps.

  • How to use $FLEX$ for DFF segment

    We have below requirement for “Add'l Salary Admin. Details” DFF.
    we have three segments:
    Current Additional Amount -first segment
    Additional Allowance Change % - second segment
    New Additional Allowance - third segment
    e.g.
    Now first segment has fixed value, Assume it is 2000 AED
    And in second segment if value is 3
    Then third segment should show the value: 2000 + 2000 * 3/100
    Third segment is dependent on segment1 and segment2.
    I think, we can achieve this by using $FLEX$
    But I need your guide line, how can we do that?

    below solution is only possible solution.
    Hi,
    Keeping the default SQL statement on its place, use table based value set for segment3 which contains all values from 0 to let say 1,000,000 (such that your calculated values falls in the range).
    Try it. It segment3 will now calculate on the basis of values of segment1 & 2.
    Regards
    Ayaz
    Thanks for everyone's input.

  • How to use $FLEX$ to pass FROM and TO param to another FROM and TO param

    Hello All,
    I have 2 parameters from customer and to customer, both these have same LOV,
    I have to add 2 more parameters from location and to location
    If i use $FLEX$.customer_LOV to pass to the from location LOV how can i use $FLEX$ to pass the TO customer LOV to TO Location LOV.
    As per my knowledge $FLEX$ can be passed from top to bottom in the list of parameters.
    Is there any other way to restrict.
    Regards,
    Sandeep V

    Hi,<br /> I am trying to configure BlazeDS with JBOSS Application Server.<br /> I have downloaded BlazeDS binary version - blazeds_bin_3-0-0-544.zip from Adobe. But in the installation steps, it says that copy blazeds.war, samples.war and console.war into <JBOSS_HOME>/server/default/deploy folder. But in this zip, it contains only blazeds.war file only. I have copied it to <JBOSS_HOME>/server/default/deploy folder.<br /><br />I have restarted JBoss. I didn't get any error. But when i give <br /> http://localhost:8080/blazeds ... i am always getting "Page not found 404" error.<br /><br />Please help me, if you have detailed steps to configure BlazeDS on JBoss.<br /><br />Thanks for your time.

Maybe you are looking for

  • Video playback issues

    Hi, I have a problem with my iPod. I have had one for around 18 months now and mainly use it at work for watching video's when quiet. Recently I started having a problem. The screen would go green or freeze for a few seconds. I would have to press th

  • BAPI_PRODORD_CHANGE in a loop - Error CO469

    Hi all, I´m trying to update a few production orders in an own report. The order numbers are stored in an internal table. The processing is done on a loop. The problem is, that i always/sometime get an error CO469, which says that on of the productio

  • Multiple Virtual servers, one listener setup

    I am trying SJS 7 as a Proof of Concept project to replace our existing iPlaney 6 and Netscape 2 server instances. My question is how do I setup SJS to have one http listener on port 80, but be able to handle multiple websites? I want to use a CNAME

  • Mac desktop freezing, crashing apps, and auto logging out

    Yesterday my 27 inch mac running on OS X 10.9.3, late 2013 has started crashing every app I try to open and usually twitching out and logging me off. I've tried every user on the computer, all with the same result. I have also tried to reset the pvra

  • Overhead planning on production order

    Hi Gurus, I have an OVH cost center in my costing sheet. It is credited during actual settlement of a production order. Will this cost center be credited with planning data at any point of time? Thanks