I am using JRun 2.3.3
IIS PWS
Win NT 4.0 Workstation


ERROR:

500 Internal Server Error
com.livesoftware.jsp.JSPServlet:

javax.servlet.ServletException:  JSP Parse error
/desy/closed/mainMenu.jsp:Lexical error at line 87, column 21.  Encountered:
"(" (40), after : ""

****************************************************************************
*****************

That line happens to be javascript.  Why should jrun even look at it?
Below is the entire mainMenu.jsp.

The same program works well with New Atlanta Servlet Exec.  Am I missing
something?
____________________________________________________________________________
_________
<%@ page
import="java.util.TimeZone,java.util.Date,java.text.SimpleDateFormat"%>

<%@ page import="com.saic.desy.server.Authentication"%>
<%@ page import="com.saic.desy.util.Trace,com.saic.desy.util.ReturnCode"%>
<%@ page
import="com.saic.desy.db.DatabaseModel,com.saic.desy.db.DatabaseTableModel"%
>
<%@ page
import="com.saic.desy.db.ui.DatabaseTableView,com.saic.desy.db.ui.DatabaseLi
stView,com.saic.desy.db.ui.DatabaseChoiceListView"%>

<jsp:useBean id="dbm" scope="application"
class="com.saic.desy.db.DatabaseModel"></jsp:useBean>

<HTML>

<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">

<SCRIPT LANGUAGE="JavaScript"
Src="/desy/open/javascript/BrowserVersionAlert.js"></SCRIPT>


        <%
    String module = "mainMenu.jsp";
    Trace.log(module,Trace.ENTRY);

    Authentication login = new Authentication(dbm,request);

    // Format the current time.
    java.text.SimpleDateFormat sdf = new
java.text.SimpleDateFormat("yyyy.MM.dd 'at' k:mm z");
    sdf.setTimeZone(TimeZone.getDefault());
    Date now = new Date();
    String serverTimeStr = sdf.format(now);
        %>


<SCRIPT runat=server LANGUAGE="JavaScript">
//<!-- hide all html tags

    var dateTime;
    var username="<%= login.username %>";
    var selectedDUA="not selected";

    var days=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];
    var
months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","D
ec"];

    var speed=1; //units=1mS of delay
    var menuStart=220;
    var topdistance=menuStart;

    var menuItems=0;
    var subItems=[0,0,0,0,0,0];
    var menuExpanded=[false,false,false,false,false,false];

    var y=-50;
    var ob=0;
    var onePosition=30;
    var oneSubPosition=20;

    var menu1Expanded=false;

// item =  menu item selected, 0 origin


    function setCrossBrowser()
    {
        if (navigator.appName == "Netscape")
        {
            v=".top=",dS="document.",sD="",yprop=".top";
//,yprop=".top"
        }
        else
        {
            v=".pixelTop=",dS="",sD=".style",yprop=".pixelTop";
//,yprop=".pixelTop"
        }
    }

    function scrollItems()
    {
        if (ob<menuItems)
        {
            objectX="object"+ob;
            y+=10;
            eval(dS + objectX + sD + v + y);

            if (y<topdistance) setTimeout("scrollItems()",speed);
            else y=-50, topdistance+=onePosition, ob+=1,
setTimeout("scrollItems()",speed);
        }
    }

    function clickOnMenu(item)
    {
        items=menuItems-item-1;
        if(menuExpanded[item] && item < menuItems)
//Unexpand
        {
            if(item < (menuItems-1))slideOthersUpForMenu(item);

            n=subItems[item];
            for(i=0;i<n;i++)
            {
                itemObject="object"+item;
                subItemObject="object"+item+"x"+i;
                itemY=eval(dS + itemObject + sD + yprop);
                subItemY=itemY+oneSubPosition+i*onePosition;
                eval(dS + subItemObject + sD + yprop + "=" + subItemY);
    //            eval(dS + subItemObject + sD + "visibility" + "=" +
'"hidden"');
                o=eval(dS + subItemObject + sD);
                o.visibility="hidden"
            }
            menuExpanded[item]=false;
        }
        else if(item < menuItems)                                  //Expand
        {
            if(item < (menuItems-1))slideOthersDownForMenu(item);

            n=subItems[item];
            for(i=0;i<n;i++)
            {
                itemObject="object"+item;
                subItemObject="object"+item+"x"+i;
                itemY=eval(dS + itemObject + sD + yprop);
                subItemY=itemY+onePosition +i*oneSubPosition;
                eval(dS + subItemObject + sD + yprop + "=" + subItemY);
    //            eval(dS + subItemObject + sD + visibility+ "=" +
"""visible""");
                o=eval(dS + subItemObject + sD);
                o.visibility="visible"
            }

            menuExpanded[item]=true;
        }
    }

    // item is main menu item that was clicked, 0 origin
    function slideOthersDownForMenu(item)
    {
        deltaY=(subItems[item]*oneSubPosition);

        for(i=item+1;i<menuItems;i++)
        {
            objectX="object"+i;
            y=eval(dS + objectX + sD + yprop)+deltaY;
            eval(dS + objectX + sD + yprop + "=" + y);
            if(menuExpanded[i])
            {
                for(j=0;j<subItems[i];j++)
                {
                    objectX="object"+i+"x"+j;
                    y=eval(dS + objectX + sD + yprop)+deltaY;
                    eval(dS + objectX + sD + yprop + "=" + y);
                }
            }
        }
    }

    function slideOthersUpForMenu(item)
    {
        deltaY=(subItems[item]*oneSubPosition);

        for(i=item+1;i<menuItems;i++)
        {
            objectX="object"+i;
            y=eval(dS + objectX + sD + yprop)-deltaY;
            eval(dS + objectX + sD + yprop + "=" + y);
            if(menuExpanded[i])
            {
                for(j=0;j<subItems[i];j++)
                {
                    objectX="object"+i+"x"+j;
                    y=eval(dS + objectX + sD + yprop)-deltaY;
                    eval(dS + objectX + sD + yprop + "=" + y);
                }
            }
        }
    }

    function mouseoverLink(id)
    {
    //    o=eval(dS + "link3x0" + sD);
        eval(dS + id + sD).color="#00ff00";
    }

    function mouseoutLink(id)
    {
        eval(dS + id + sD).color="white";
    }

    function mouseoverMainLink(id)
    {
    //    o=eval(dS + "link3x0" + sD);
        eval(dS + id + sD).color="yellow";
    }

    function mouseoutMainLink(id)
    {
        eval(dS + id + sD).color="red";
    }

    function clickLink(page)
    {
        top.windowFrame.main.location=page;
    }

    function addSubMenuItem(main,sub,page,text)
    {
        if(isIE())
        {
            document.write('    <div id="object'+main+'x'+sub+'"
style="position:absolute; visibility:hidden; left:20px; top:380px;
z-index:2">');
            document.write('        <a id="link'+main+'x'+sub+'"
');
            document.write('
href="javascript:clickLink(\''+page+'\')";                              ');
            document.write('
onMouseover="javascript:mouseoverLink(\'link'+main+'x'+sub+'\')";
');
            document.write('
onMouseout="javascript:mouseoutLink(\'link'+main+'x'+sub+'\')"
');
            document.write('            style="color:white;
text-decoration:none; font-size:10pt"                                 ');
            document.write('        >
');
            document.write('            '+text+'
');
            document.write('        </a>
');
            document.write('    </div>
');
            document.write('<br>');
            subItems[main]++;
        }
        else
        {
            document.write('        &nbsp;&nbsp;<a id="link'+main+'x'+sub+'"
');
            document.write('
href="javascript:clickLink(\''+page+'\')";                              ');
//            document.write('
onMouseover="javascript:mouseoverLink(\'link'+main+'x'+sub+'\')";
');
//            document.write('
onMouseout="javascript:mouseoutLink(\'link'+main+'x'+sub+'\')"
');
//            document.write('            style="color:white;
text-decoration:none; font-size:10pt"                                 ');
            document.write('        >
');
            document.write('     <font color=yellow size=3>
'+text+'</font>
');
//            document.write('            '+text+'
');
            document.write('        </a><br>
');
        }
     }

     function addMainMenu(mainIndex,text)
     {
        if(isIE())
        {
            document.write('    <div id="object'+mainIndex+'"
style="position:absolute; visibility:show; left:10px; top:-50px;
z-index:3">');
            document.write('        <a id="link'+mainIndex+'"
');
            document.write('
href="javascript:clickOnMenu('+mainIndex+')";
');
            document.write('
onMouseover="javascript:mouseoverMainLink(\'link'+mainIndex+'\')";
');
            document.write('
onMouseout="javascript:mouseoutMainLink(\'link'+mainIndex+'\')"
');
            document.write('            style="color:red;
text-decoration:none; font-size:14pt"                                    ');
            document.write('        >
');
            document.write('            '+text+'
');
            document.write('        </a>
');
            document.write('    </div>
');
            document.write('<br>
');
            menuItems++;
        }
        else
        {
//            document.write('        <a id="link'+mainIndex+'"
');
//            document.write('
href="javascript:clickOnMenu('+mainIndex+')";
');
//            document.write('
onMouseover="javascript:mouseoverMainLink(\'link'+mainIndex+'\')";
');
//            document.write('
onMouseout="javascript:mouseoutMainLink(\'link'+mainIndex+'\')"
');
//            document.write('            style="color:red;
text-decoration:none; font-size:14pt"                                    ');
//            document.write('        >
');
            document.write('     <font color=red size=5>
'+text+'</font><br>
');
//            document.write('            '+text+'
');
//            document.write('        </a>
');
        }
     }
     function addMainMenuLink(mainIndex,text,page)
     {
        if(isIE())
        {
            document.write('    <div id="object'+mainIndex+'"
style="position:absolute; visibility:show; left:10px; top:-50px;
z-index:3">');
            document.write('        <a id="link'+mainIndex+'"
');
            document.write('
href="javascript:clickLink(\''+page+'\')";                              ');
            document.write('
onMouseover="javascript:mouseoverMainLink(\'link'+mainIndex+'\')";
');
            document.write('
onMouseout="javascript:mouseoutMainLink(\'link'+mainIndex+'\')"
');
            document.write('            style="color:red;
text-decoration:none; font-size:14pt"                                    ');
            document.write('        >
');
            document.write('            '+text+'
');
            document.write('        </a>
');
            document.write('    </div>
');
            document.write('<br>
');
            menuItems++;
        }
        else
        {
            document.write('        <a id="link'+mainIndex+'"
');
            document.write('
href="javascript:clickLink(\''+page+'\')"                              ');
//            document.write('
onMouseover="javascript:mouseoverMainLink(\'link'+mainIndex+'\')";
');
//            document.write('
onMouseout="javascript:mouseoutMainLink(\'link'+mainIndex+'\')"
');
//            document.write('            style="color:red;
text-decoration:none; font-size:14pt"                                    ');
            document.write('        >
');
//            document.write('            '+text+'
');
            document.write('     <font color=white size=5>
'+text+'</font>
');
            document.write('        </a><br>
');
        }
     }
//  Stop hiding this script -->
</script>

</HEAD>

<BODY TEXT="#660000" BGCOLOR="#0033CC" LINK="black" ALINK="black"
VLINK="black">

<IMG SRC="/desy/open/images/smallSeal.gif" ALIGN="TOP" ALT="Main Menu"
BORDER="0">

<script LANGUAGE="JavaScript">
//<!-- hide all html tags
    var browser = "BROWSER INFORMATION";
    for(var propname in navigator)
    {
        browser += propname + ": " + navigator[propname] + "\n";
    }

    dateTime=new Date();

    document.write("<p><font color=white size=2>"+days[dateTime.getDay()]+"
</font>");
    document.write("<font color=white
size=2>"+dateTime.getHours()+":"+dateTime.getMinutes()+"</font><br>");
    document.write("<font color=white size=2>"+dateTime.getDate() + " " +
months[dateTime.getMonth()] + " " + dateTime.getFullYear()+"</font><br>");

    document.write("<font color=white size=2>User: "+username+"
</font><br>");
    document.write("<font color=white size=2>DUA:  "+selectedDUA+"
</font><br>");

    document.write("<font color=white size=2>server Time:
<%=serverTimeStr%> </font><br>");

    alert(browser);

    setCrossBrowser();

    addMainMenuLink(0,'Welcome','/desy/closed/welcome.html');
    addMainMenu(1,'Request');
    addSubMenuItem(1,0,'/desy/closed/request/duaSelect.html','DUA
Selection');
    addSubMenuItem(1,1,'/desy/closed/request/duaSelect.html','Stored
Request');
    addMainMenu(2,'Admin');
    addSubMenuItem(2,0,'/desy/closed/admin/userProfile.html','User
Profile');
    addMainMenu(3,'Help');
    addSubMenuItem(3,0,'/desy/open/help/help.html','Get Browsers');
    addSubMenuItem(3,1,'/desy/open/help/about.jsp','About');
    addMainMenu(4,'Test');
    addSubMenuItem(4,0,'/desy/closed/test/DBTest.jsp','DB test');
    addSubMenuItem(4,1,'/desy/closed/test/SPTest.jsp','SP test');
    addSubMenuItem(4,2,'/desy/closed/test/SPTest1.jsp','SP test1');
    addSubMenuItem(4,3,'/desy/closed/test/SPTest2.jsp','SP test2');

    if(isIE())
    {
        alert("Internet Explorer, "+majRev()+"."+minRev());
        scrollItems();
    }
    else
    {
        alert("Navigator, "+majRev()+"."+minRev());
    }

//  Stop hiding this script -->
</script>

</BODY>

</HTML>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to