1 Reply Latest reply on Aug 29, 2008 2:27 AM by Newsgroup_User

    how to use mxml in a jsp file?

    fvillaj
      I'm trying to use flex in a .jsp file. I followed the suggestion that I use the Flex 2 Tag library as suggested by this link: http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP#Download_and_Installation but I couldn't find it. I also downloaded LiveCycle Data Services ES but couldn't find the flex-bootstrap.jar.

      I have a simple example:

      <!--<%@ taglib uri="FlexTagLib" prefix="mm" %>-->
      Use the <mxml> tag to insert a Flex application in an existing JSP page. The following example shows the <mxml> tag with the source attribute to include an external MXML file:
      <mm:mxml source="CustomerServiceChat.mxml"/>
      Alternatively, you can use the <mxml> tag with inline MXML source code, as the following example shows:

      <mm:mxml>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" xmlns="*">
      <mx:Text label="Hello World">
      </mx:Application>
      </mm:mxml>

      I also added the following code in my web.xml:
      <taglib>
      <taglib-uri>FlexTagLib</taglib-uri>
      <taglib-location>/WEB-INF/lib/flex-bootstrap.jar</taglib-location>
      </taglib>

      and obviously I get an error because I don't have the flex-bootstrap.jar file. Please let me know how this can be corrected. Thanks in advance!