Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows
Browser: Internet Explorer 7.x
Language Found: English
Description
1 Create flex project 'apps'.
apps.mxml code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function doPost():void
]]
>
</mx:Script>
<mx:Button x="100" y="200" label="Access Servlet By Post Method" click="doPost()"/>
</mx:Application>
2 Create new page 'index.html'.
index.jsp code:
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<iframe src="apps.html" width="100%" height="100%"/>
</html>
3 Deploy project and access page:
(1) http://localhost:8080/appsprj/apps.html
This is flex-app single. Successfully get parameter.
Request header(See Image Attachments 1.jpg):
POST /appsprj/demoServlet HTTP/1.1
Accept: /
Referer: http://localhost:8080/appsprj/apps.swf
Content-Type: application/x-www-form-urlencoded
......
(2) http://localhost:8080/appsprj/index.html
The flex-app is placed in frameset. Faild to get parameter.
Request header(lost Referer and Content-Type, See Image Attachments 2.jpg):
POST /appsprj/demoServlet HTTP/1.1
Accept: /
......