Hi,

    I don't really understand what you mean by a jsp file which "returns" a string
!!!
If I well understand what you 'd like to do, you should call your file :

file.jsp
    => then use a bean to connect ti the Db and get all your information in order
to construct your string (concatenate your datas as in normal Java class ) and then
"call" your flash page (I don't know at all how Flash works )

file.jsp?specialUser=Mark
=> then use a bean to connect the Db and get your information (with an other query)
in order to construct your string and call your flash page.

    To be able to know what to call from your JSP page, you can do something like :

<% String toDo = request.getParameter("specialUser");
     if(toDo == null) // No parameters passed to the file
    {
       String result =   myBean.getAllInfo();
    }
else
 {
       String result =   myBean.getUserInfo(toDo);
   }
%>

    Is it what you were looking for ?!

Regards
Veronique

sufi malak a �crit :

> Hi, to get data from a text file or a database, Flash is expecting
> strings like this :
> var0=value0&var1=value1&......
> Could you please help me on how to write a JSP file that when it's called
> just like this file.jsp return some data from database, for example the
> employee names in a string like this :
> employee0=John&employee1=Jenny&employee2=Mark&......
>
> but when we call this file.jsp like this : file.jsp?Mark it will go back to
> the database and look for informations about Mark, for example  it will
> return a string like this :
> firstname=Mark&address=Atlanta&Age=34&......
>
> I will appreciate your help.
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to