2 Replies Latest reply on May 17, 2007 3:02 AM by jpwalker

    flex inside jsp page

      hi there..im trying to create a jsp page with flex content ..im using
      the flex tag lib... getting the following xception on runnin..
      Error 500--Internal Server Error
      at flex2.server.j2ee.jsp.SourceCache.getInstance(SourceCache.java:64)
      at flex2.server.j2ee.jsp.MxmlTagImpl.initCache(MxmlTagImpl.java:162)
      at flex2.server.j2ee.jsp.MxmlTagImpl.doStartTag(MxmlTagImpl.java:110)
      at flex.bootstrap.BootstrapTag.doStartTag(BootstrapTag.java:77)
      my jsp looks like this
      <%@ taglib uri="FlexTagLib" prefix="mm" %>
      <p>This is an example of writing MXML in a JSP.</p>
      <h3>My App</h3>

      <mm:mxml border="1">
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
      <mx:Label x="20" y="60" text="Email"/>

      Ive fds installed and taglib tag included in web.xml

      can someone please help me out?
        • 1. flex inside jsp page
          Hello there,
          When I run your example I get:
          1 error(s) found in /jsptags/test.jsp
          (8) The mxml tag does not have a border attribute

          Trying without that attribute renders the page correctly.
          Please make sure you follow the steps in http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP, especially the part about installing Flex™ Data Services 2.0.1.
          The trial site contains the name "Flex Data Services 2 Express", but what you download is in fact the 2.0.1 update.

          • 2. Re: flex inside jsp page
            Hello there,

            When I run the same example. The SWF file does NOT appear on the web browser page... The SWF file ends is in the same directory as the JSP page but with a prefix jsp - "jspD8EC0BCD9A4D23EB6C948017D558429D.swf"

            Extract from source code of resulting JSP :
            <object id='D8EC0BCD9A4D23EB6C948017D558429D' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase=' http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=9,0,0,0' height='100%' width='100%'>
            <param name='flashvars' value=''/>
            <param name='src' value='/XXXX/jsp/webstore/D8EC0BCD9A4D23EB6C948017D558429D.mxml.swf'/>
            <embed name='D8EC0BCD9A4D23EB6C948017D558429D' pluginspage=' http://www.adobe.com/go/getflashplayer' src='/XXXX/jsp/webstore/D8EC0BCD9A4D23EB6C948017D558429D.mxml.swf' height='100%' width='100%' flashvars=''/>

            By removing the "jsp" prefix from the SWF file. Then manually editing the code above on a static html page + removing the "mxml" part of the filename (D8EC0BCD9A4D23EB6C948017D558429D.mxml.swf) - it works

            How can I get this to dynamically work so that SWF file appears in the web browser page?