Hi,

I am trying to use dojo.require method in one of my JSPs.

The code is the following:

<head>
    <decorator:head />

      <script type="text/javascript">
        dojo.require("dojo.query");
        dojo.query("window").onload( function() { alert("test"); } );
      </script>

</head>

In Firefox's error console I have: "Error: Could not load 'dojo.query'; last
tried '__package__.js'
Source File: http://localhost:8080/cdbweb2/struts/dojo/dojo.js";

If I comment the the dojo.require statement, I get the error: "Error:
dojo.query is not a function
Source File: http://localhost:8080/cdbweb2/lsf/accounts/list.action";. So I
have to use the dojo.require statement, I suppose.

Struts 2 is already bundled with Dojo, all the dojo .js files are in the
struts-core.jar archive. How should I proceed to use the dojo.requiremethod?

cheers

-- 
Filipe David Manana,
[EMAIL PROTECTED]

Obvious facts are like secrets to those not trained to see them.

Reply via email to