I never passed any data frm jsp to  FLex. Is that JSP alone your
solution?. You can use java methods and beans to do the same thing.
Accessing Java methods using RemoteObjects.

What error do you get ? 

if  JSP the only option you have then try validating the XML format.
Sometimes when you use improper xml it might not work properly. 

Check for the jsp file path. 

Or try making the jsp to a XML file by changing the
applicationContent. and try accessing the XMl directly.

Hara

 




--- In [email protected], lavanya balaji <[EMAIL PROTECTED]> wrote:
>
> 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";
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()"/> 
\n\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\></mx:Application>\u003c/span\>\u003c/font\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�\u003c/span\>\n\u003c/font\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>And the corresponding
jsp file is�\u003c/span\>\u003c/font\>\u003cfont face\u003d\"Arial\"
size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>\n�\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\"
>  size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\><%@ page
contentType\u003d"text/html;charset\u003cWBR\>\u003dUTF-8"
language\u003d"java"
%>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\><%@ taglib
uri\u003d"\u003ca
href\u003d\"http://jakarta.apache.org/struts/tags-bean\";
target\u003d\"_blank\" onclick\u003d\"return
top.js.OpenExtLink(window,event,this)\"\>http://jakarta.apache.org\u003cWBR\>/struts/tags-bean\u003c/a\>\n"
prefix\u003d"bean"%>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\><%@ taglib
uri\u003d"\u003ca
href\u003d\"http://jakarta.apache.org/struts/tags-html\";
target\u003d\"_blank\" onclick\u003d\"return
top.js.OpenExtLink(window,event,this)\"\>http://jakarta.apache.org\u003cWBR\>/struts/tags-html\u003c/a\>\n"
> 
prefix\u003d"html"%>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\><%@ page
import\u003d"com.p3.form.ProjectPortalForm"%>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\><%@ page
import\u003d"java.util.List"\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����������������������
�import\u003d"java.util.Map"\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����������������������
�import \u003d "",1] );  //-->    
>   </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 "
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 = " 
\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont face\u003d\"Arial\"
size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����������������������
�import\u003d"java.util.Iterator"%>\u003c/span\>\u003c/font\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>\n�\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\><?xml
version\u003d"1.0"
encoding\u003d"utf-8"?>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>\u003c/span\>\u003c/font\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\><project>\u003c/span\>\u003c/font\>\n\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
> 
style\u003d\"font-size:10pt;font-family:Arial\"\><%\u003c/span\>\u003c/font\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����������
\u003c/span\>\u003c/font\>\n\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����������
 List list
\u003d null;\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����������
 list
\u003d
(List)request.getAttribute(\u003cWBR\>"projectlist");\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����������
ProjectPortalForm
project;\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>//��������� 
for
>  (int i\u003d0; i<list.size();
i++)\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����������
//{\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����������������������
project \u003d (ProjectPortalForm)
list.get(i);\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>%>������
\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>��� <portal>
\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>������� 
<sbu><%\u003d
",1] );  //-->   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><%=  \u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�������
<projecttyp><%\u003d project.getProjectType()
%></projecttyp>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�������
<projectname><%\u003d project.getProjectName()
%></projectname>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>������������
<phone><%\u003d
project.getPhone()%></phone>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�������
<startdate><%\u003d project.getProjectStartDate()
%></startdate>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\"
>  size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�������
<endate><%\u003d project.getProjectEndDate()
%></endate>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�������
<ordervale><%\u003d project.getOrderValue()
%></ordervale>\u003c/span\>\u003c/font\>\u003cfont face\u003d\"Arial\"
size\u003d\"2\"\>\n\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����
\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>��������\u003c/span\>\u003c/font\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�������\u003c/span\>\u003c/font\>\n\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>���
>  </portal>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\><%\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>\u003c/span\>\u003c/font\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>�����������
//}\u003c/span\>\u003c/font\>\n\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>%>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\></project>\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>",1] );  //-->  
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\u003c/span\>\u003c/font\>\u003c/p\>\n\u003cp\>\u003cfont
face\u003d\"Arial\" size\u003d\"2\"\>\u003cspan
style\u003d\"font-size:10pt;font-family:Arial\"\>Lavanyabalaji\u003c/span\>\u003c/font\>\u003c/p\>\u003c/div\>\n",0]
); D(["ce"]);  //-->   Thanks and Regards
>   Lavanyabalaji
> 
> 
> 
>        
> ---------------------------------
>  Download prohibited? No problem! CHAT from any browser, without
download.
>


Reply via email to