> Hi, I am trying to use JSP with Flash, I need a file file.jsp that :
> when called like this : file.jsp?sendnames it will send all the names in a
> string like this var0=name0&var1=name1&var2=name2......
> and then when called by file.jsp?name0 it will return a string of
> information about name0 like this var0=age&var1=address&....
> Please help me
> I will appreciate your help
Hi
1. You'd better use two different pages to invoke different
funtionalities, as your paramters are difficult to identify
if they have no values at all.
2. Or you can use
file.jsp?sendnames=true
file.jsp?name=name0
file.jsp?name=name1
...
In file.jsp, you'll have
<%
if (request.getParameter("sendnames") == "true") {
// process your list here
} else if (request.getParameter("name") != "") {
// process your fields here
}
%>
Regards
===========================================================================
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