strutsUtil is undefined error
-----------------------------

                 Key: WW-3440
                 URL: https://issues.apache.org/jira/browse/WW-3440
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.1.8.1
         Environment: Windows Vista, Eclipse Ganimede, struts 2.1.8.1
            Reporter: akis akis
            Priority: Trivial


Hi,

The struts tags give me in the internal browser of Eclipse "Error: 
'StrutsUtils' is undefined". The problem is in the javascript send to the 
client in method "StrutsUtils.addEventListener". I have tried the updownselect 
tag, the optiontransferselect and always get this error. Testing in the actual 
IE the web components are not working. There is a similar posting WW-3049, and 
the problem was reported that it was caused due to the missing head tag. I 
placed a head tag but still same problem. Am I missing a library or something. 
Here is a trivial example that is not working

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<s:head/>
<title>Insert title here</title>
</head>
<body>

         <h3>Favorite colors</h3>
         <s:form> 
                <s:updownselect name="colors" label="Colors" size="5" 
list="#{'1':'Green', '2':'Red', '3':'Yellow'}" /> 
                <s:submit/>
          </s:form> 

</body>
</html>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to