Please, could you help me find out what' wrong with this jsp file, I spent
all yesterday and now, but could not find a solution, when I run this file
in the browser, I get this error :
cannot open the internet site http://localhost:8080/ssb/services.jsp
But when I change :
if(flag.equals("download")) TO if (true) AND
if(flag.equals("upload")) TO if (false) IT WORKS FINE
Here is the services.jsp file again :
<HTML>
<BODY bgcolor="#ffffff">
<%@ include file="Ttest3.html"%>
<jsp:include page="Menu.jsp" flush="true">
<jsp:param name="highlighted" value="services"/>
</jsp:include>
<%
String flag = null;
if (request.getParameter("flag") !=null)
{
flag = (String)request.getParameter("flag");
}
%>
<% System.out.println("value of flag = " + flag); %>
<center>
<table bgcolor="effff">
<tr>
<td><a href="services.jsp?flag=download">Downloading</a></td>
<td><a href="services.jsp?flag=upload">Uploading</a></td>
</tr>
</table>
</center>
<%
System.out.println("test1");
if (flag == null)
{ %>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"
width="580" height="420">
<param name=movie value="studentmain.swf">
<param name=quality value=high>
<embed src="../images/flash/studentmain.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="580" height="420">
</embed>
</object>
<% } %>
<%
System.out.println("test2");
if (flag.equals("downlod"))
{ %>
<%@ include file="download.html"%>
<% } %>
<%
System.out.println("test3");
if (flag.equals("upload"))
{ %>
<%@ include file="upload.html"%>
<% } %>
</BODY>
</HTML>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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