• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dojo + Struts ?

 
Vikas K Gupta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to Struts and want to add ajax features to my struts application.

I'm using struts 2.2.1 with dojo plugin which comes with it.

added this
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

this in head
<sx:head debug="true" cache="false" parseContent="true"/>

dojo which comes with it is 0.43 whereas dojo has now reached to 1.5.0

what is the way to introduce ajax in my application ?

Is it by using <sx:textbox ....../> tags

or what if I want to use dojo specific tags like
<input type="text" id="...." name="....." dojoType="dijit.form.ValidationTextBox"> as in it we can validate on change


please reply in details as I'm new to it like which files to add............

Need help urgently
Will be thankful for reply....
 
rajiv shrestha
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use with sx prefix
 
Vikas K Gupta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rajiv,

I'm currently using sx tag but I want to use more features of dojotoolkit and that's I want to know "how to integrate dojo codes in my struts 2 application?"

eg suppose I need to use

<<input type="text" id="...." name="....." dojoType="dijit.form.ValidationTextBox"> which validate the input from the user using javascript without the need to communicate with the server.
How can I use this with the struts2
 
Vikas K Gupta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rajiv,

I'm currently using sx tag but I want to use more features of dojotoolkit and that's I want to know "how to integrate dojo codes in my struts 2 application?"

eg suppose I need to use

<<input type="text" id="...." name="....." dojoType="dijit.form.ValidationTextBox"> which validate the input from the user using javascript without the need to communicate with the server.
How can I use this with the struts2
 
rajiv shrestha
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check it out

dojo
 
Johannes Geppert
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you new to struts2, then don't use the dojo plugin.
this is deprecated and will be removed in one of the next releases.

Use plain Dojo/jQuery/Mootool or an other plugin like the struts2 jquery plugin.

Johannes
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic