Hi Everybody,
i have a small problem regarding flex data services
iam doing a project where i have used flex to create all the UI side
and i have used Java for the bussiness logic i.e. jsp
inorder to connect the jsp with the flex application i have used
the http service and i have placed the name of the jsp file iside the url field
as below
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
width="100%" height="763" >
<mx:HTTPService id="srv" url="flextest.jsp"/>
<mx:DataGrid dataProvider="{srv.lastResult.project.portal}" width="100%"
height="100%"/>
<mx:Button label="Get Data" click="srv.send()"/>
</mx:Application>
and my jsp code is ie flextest.jsp is
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ page import="com.p3.form.ProjectPortalForm"%>
<%@ page import="java.util.List"
import="java.util.Map"
import = "java.util.ArrayList"
import="java.util.Iterator"%>
<?xml version="1.0" encoding="utf-8"?>
<project>
<%
List list = null;
list = (List)request.getAttribute("projectlist");
ProjectPortalForm project;
// for (int i=0; i<list.size(); i++)
//{
project = (ProjectPortalForm) list.get(i);
%>
<portal>
<sbu><%= project.getSbu()%></sbu>
<projecttyp><%= project.getProjectType() %></projecttyp>
<projectname><%= project.getProjectName() %></projectname>
<phone><%= project.getPhone()%></phone>
<startdate><%= project.getProjectStartDate() %></startdate>
<endate><%= project.getProjectEndDate() %></endate>
<ordervale><%= project.getOrderValue() %></ordervale>
</portal>
<%
//}
%>
</project>
i have a placed the war file inside the Root folder of the FDS tomcat
iam not able to connect to the jsp using this method
is there any other method to do this..
---------------------------------
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.