PDA

View Full Version : Flash calling JSP


leopoldj
08-17-2001, 08:42 PM
I am having a problem using java server pages to interact with a Flash screen. If I do not include any import statements, everything works fine. If I do include an import statement, such as <%@ page import="java.util.*"%>, it no longer works. If I directly call the JSP from the browser it works fine, but it does not work when called from within Flash. I have used both JRun and Websphere to process the JSP with the exact same results. Below is a listing of the code. This is just a simple test to get it to work. It will just return the userid. As I mentioned, it works fine if the first line is not included. Thank you for your help.

<%@ page import="java.util.*"%>
<%
String strUserID = "";
String strPassword = "";
try
{
strUserID = request.getParameter("txtUserName");
strPassword = request.getParameter("txtPassword");
}
catch(Exception e)
{
//e.printStackTrace();
}
out.println("ffLogin=" + strUserID);
//out.println("ffLogin=" + Server.URLEncode(strUserID));
%>