Re: Dojo not working in Struts2.

2008-03-27 Thread Kropp, Henning

Hi Sharath,

I am not quit sure, but I think it might help if you simply remove the 
 tag. You see dojo is already configured inside of struts 
(inside the core jar and static folder or so) to be used with it's tags 
http://struts.apache.org/2.x/docs/tag-reference.html . Since you are not 
using any of those you can just remove the . This is what the 
head template looks like: 
http://struts.apache.org/2.x/docs/ajax-head-template.html


You should thought consider using the struts2 tags.

If you plan not to do so or you want to use a newer version of dojo 
since struts is a little behind you need to configure your web.xml file, 
as I believe, to use the static filter right to point to the location of 
your ajax files:



   staticFilter
   com.bitpitch.webapp.filter.StaticFilter
   
   includes
   /scripts/dojo/*,/dwr/*
   
   

regards

sharath karnati schrieb:

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
  
 

 /pages/test4Dialog.jsp
 
 
   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. 
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dojo not working in Struts2.

2008-03-27 Thread sharath karnati
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 
 
   
   /pages/test4Dialog.jsp
   
   
 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.


TooltipDialog demo

djConfig = { parseOnLoad: true }

   
  

  @import "dojoroot/dojo/resources/dojo.css";
  @import "dojoroot/dijit/themes/tundra/tundra.css";  
   

  
   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.");
   }
 


  
  Login Form
  

  
  
   Username
  
  
  
  Password: 
  
  
  
  Confirm Password: 
  
  
  
  
  Login
  

  
  

 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]