What is not working?
Hit the jsp directly from a browser. What happens? Here is a sample that uses jsp to retrieve and save an xml file to the server. http://www.cflex.net/showFileDetails.cfm?ObjectID=544&ChannelID=1 Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of lavanya balaji Sent: Monday, June 11, 2007 9:46 AM To: [email protected] Subject: [flexcoders] how to display values in flex reading from a jsp an retriving the data's from jsp we couldn't connect our UI with serverside Hi All, Please can anybody help us to solve the problem We are facing a trouble to send a request from flex to a jsp and retriving values from jsp we used the following code also trying to connect jsp with mxml but its not working This is the mxml file that we are using <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <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 the corresponding jsp file is <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean <http://jakarta.apache.org/struts/tags-bean> " prefix="bean"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html <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> Thanks and Regards Lavanyabalaji ________________________________ Download prohibited? No problem! CHAT <http://us.rd.yahoo.com/mail/in/ywebmessenger/*http:/in.messenger.yahoo. com/webmessengerpromo.php> from any browser, without download.

