Hi All,
   
     Please find 'test4Dialog.jsp' in attachment. This .jsp file is placed 
inside /WEB-INF/pages directory.
   
     When I'm accessing this .jsp with 
(http://localhost:7001/hibernate/pages/test4Dialog.jsp), it is displaying 
'dijit.TooltipDialog' correctly.
   
     The same page I configured in struts2 action with below code 
         
           <action name="Dojo">
               <result>/pages/test4Dialog.jsp</result>
           </action>
   
     When I try to access this page with 
URL(http://localhost:7001/hibernate/events/Dojo.action), I'm getting below 
error message in firefox console.
   
  dojo is not defined
  
    dojo.require("dojo.parser");
   
  I didn't place any dojo plugin jar files in my library? I think struts2 is 
supporting Dojo inclusively. 
   
  If I need to install Dojo plugin to correct this problem then where I can 
find this .jar file(dojo plugin)?
   
    Please let me know, how to correct this problem. 
   
  Have a nice day.
   
  Thanks,
  Sharath.
    
   

       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
<html>
<head>
<s:head theme="ajax" debug="true"/>
<title>TooltipDialog demo</title>
<script type="text/javascript">
    djConfig = { parseOnLoad: true }
</script>
<script src="dojoroot/dojo/dojo.js"></script>       
  
    <style type="text/css">
      @import "dojoroot/dojo/resources/dojo.css";
      @import "dojoroot/dijit/themes/tundra/tundra.css";      
  </style> 

  <script type="text/javascript">
       dojo.require("dojo.parser");
       dojo.require("dijit.form.Button");
       dojo.require("dijit.Dialog");
       dojo.require("dijit.form.TextBox");       
       function checkPw(dialogFields) {
          if (dialogFields.confirmpw != dialogFields.newpw)
             alert("Confirmation password is different.");
       }
     </script>
</head>
<body class="tundra">
  <div dojoType="dijit.form.DropDownButton">
      <span>Login Form</span>
      <div dojoType="dijit.TooltipDialog" id="dialog1" 
title="Login Form" execute="checkPw(arguments[0]);">
        <table>
          <tr>
          <td><label for="name" title="User name">
   Username</label></td>
              <td><input dojoType="dijit.form.TextBox" 
   type="text" name="oldpw"></td>
          </tr>
          <tr>
              <td><label for="loc">Password: </label></td>
              <td><input dojoType="dijit.form.TextBox" 
   type="password" name="newpw"></td>
          </tr>
          <tr>
              <td><label for="desc">Confirm Password: </label></td>
              <td><input dojoType="dijit.form.TextBox" 
  type="password" name="confirmpw"></td>
          </tr>
          <tr>
              <td colspan="2" align="center">
                  <button dojoType="dijit.form.Button"
 type="submit">Login</button></td>
          </tr>
        </table>
      </div>
  </div>
</body>
</html> 
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to