Wrox Home  
Search P2P Archive for: Go

  Return to Index  

enterprise_java_beans thread: Difference between the implementaion of JSP in JBoss and JSP in weblogic


Message #1 by "Ronak Parekh" <rons4174@h...> on Tue, 29 Oct 2002 21:13:19
The JSP file that deploys in JBoss, does not deploy in weblogic 6.1. I do 
not know the reason. Please do let me know. 

1) I am using JBoss 3.0 and tomcat 4.0.3. Also, I am using weblogic 6.1.

2) A description of the JSP and its dependencies

This part of the java code in JSP is used for right-click:
function clickMenu() 
{  
	contextMenu.releaseCapture();  
	contextMenu.style.display="none";  
	el=event.srcElement;  
	if (el.id=="AddMenuItem") 
	{    
		if (referencing)
		{
			createAndAddNewRow();
		}
		else
		{
			createNewRow();  
		}
	} 
	else if (el.id=="DeleteMenuItem") 
	{   
		if (referencing)
		{
			dropRow();
		}
		else
		{
			deleteRow();  
		}
	}

	return;
}

This part of the code enables right-clicking in the body of the JSP.

<body leftmargin="3" topmargin="3" link="#000000" vlink="#000000" 
alink="#000000" background="images/frame_bg.jpg" 
</jsp:text><jsp:expression>toggle?"oncontextmenu=\"displayMenu(); return 
false\" class=\"clickableSpan\"":""</jsp:expression><jsp:text>></jsp:text>

3) With the same code above, there is no right-clicking enabled in case 
of weblogic 6.1.

4) There are no error or log messages in weblogic. 

5) The error I get in the jsp file is only specific to netscape. There 
are no errors in case of ie. In netsacpe, I get the error "document.all 
has no properties"

The lines below are all the lines which are part of the jsp file 
containing document.all

<td background="images/activ_center.jpg" align="left"><input type="image" 
border="0" src="images/left_arrow.gif" name="scrollUpBtn" 
onMouseOut="document.all.scrollUpBtn.src='images/left_arrow.gif'" 
onMouseOver="document.all.scrollUpBtn.src='images/left_arrow_over.gif'" 
onClick="scrollUp()"/></td>

<td background="images/activ_center.jpg" align="left"><input type="image" 
border="0" src="images/right_arrow.gif" name="scrollDownBtn" 
onMouseOut="document.all.scrollDownBtn.src='images/right_arrow.gif'" 
onMouseOver="document.all.scrollDownBtn.src='images/right_arrow_over.gif'"
 onClick="scrollDown()"/></td>

<jsp:text><td background="images/activ_center.jpg" align="left"><input 
type="image" border="0" src="images/toggle.gif" name="toggleBtn" 
onMouseOut="document.all.toggleBtn.src='images/toggle.gif'" 
onMouseOver="document.all.toggleBtn.src='images/toggle_over.gif'" 
onClick="toggle()"/></td><td background="images/activ_center.jpg" 
align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></jsp:text>

<jsp:text><td background="images/activ_center.jpg" align="left"><input 
type="image" border="0" src="images/report.gif" name="reportBtn" 
onMouseOut="document.all.reportBtn.src='images/report.gif'" 
onMouseOver="document.all.reportBtn.src='images/report_over.gif'" 
onClick="report()"/></td><td background="images/activ_center.jpg" 
align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></jsp:text>

Please do let me know if you think of the error now.

Thank you
Ronak Parekh

  Return to Index