Thanks, I am not sure if I replyed to you or not yet, lot of things in the
mind, anyway, where can I find a JSP file and a Bean that do the work, let's
say I have a database that has a table called Courses :
Table Courses has :
Exercise number
soundFile Location
textFile Location

and I want when the user click in an exercise number ( I know you don't know
flash) the jsp file and the bean go look for the for the two fields
"soundFile Location" and "textFile Location" .
And how JSP output variables as a responese.

Thanks
Sufi Malak


>From: Veronique Dupierris <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: How To write a JSP file TO DO this ? Please HELP ME
>Date: Thu, 10 Aug 2000 17:22:45 +0200
>
>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

________________________________________________________________________
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

Reply via email to