Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3440

strutsUtil is undefined error

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.1.8.1
    • None
    • None
    • None
    • Windows Vista, Eclipse Ganimede, struts 2.1.8.1, Tomcat 6.0.18

    Description

      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>

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            akis akis akis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment