Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi:
I met a problem on Flex,In the Flex Application,Flex embedded jsp page. In the JSP page above,this is a drop-down list. The Drop-down list was covered by the JSP page.
I spent a long time, but also solve the problem,I‘m not good at English.
Page effects:
http://hi.csdn.net/space-350245-do-album-picid-629230.html[^]
or
http://hi.baidu.com/lupeng0527/album/item/48d99462463d6398e7113a0d.html[^]

Code is very simple:
XML
========================= Flex page code ============================
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    autoLayout="false" layout="absolute" width="100%" height="100%"
    xmlns:flexiframe="http://code.google.com/p/flex-iframe/">
    <mx:Panel width="500" height="400">
        <mx:ComboBox width="200" height="30">
            <mx:dataProvider>
                <mx:Array>
                    <mx:Object label="Russia" data="1"/>
                        <mx:Object label="Canada" data="2"/>
                        <mx:Object label="China" data="3"/>
                        <mx:Object label="USA" data="4"/>
                        <mx:Object label="Brazil" data="5"/>
                        <mx:Object label="Australia" data="6"/>
                </mx:Array>
            </mx:dataProvider>
        </mx:ComboBox>
        <mx:Spacer height="60"/>
        <!-- "<flexiframe:IFrame>" Google Code flex-iframe(http://code.google.com/p/flex-iframe/) -->
        <flexiframe:IFrame id="googleIFrame" label="Google"  width="100%" height="100%"
            source="http://localhost:8080/FlexModuleDemo/pages.jsp"/>
    </mx:Panel>
</mx:Application>
=====================================================================
======================== JSP page code ==============================
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head></head>
<body style="background:#008000;">
    This is a JSP page is embedded.(I'm not good at English.)
</body>
</html>
======================================================================

Thank you very much!
Email:[removed]
Posted
Updated 6-Sep-10 21:32pm
v2
Comments
LittleYellowBird 7-Sep-10 3:32am    
Hi, its best not to include your email address - you'll just get lots of spam. When some answers you will get an email to let you know. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900