jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes Dojo + Struts ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dojo + Struts ?" Watch "Dojo + Struts ?" New topic
Author

Dojo + Struts ?

Vikas K Gupta
Greenhorn

Joined: Dec 07, 2010
Posts: 6
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

Joined: Aug 25, 2010
Posts: 30
you can use with sx prefix
Vikas K Gupta
Greenhorn

Joined: Dec 07, 2010
Posts: 6
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

Joined: Dec 07, 2010
Posts: 6
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

Joined: Aug 25, 2010
Posts: 30
check it out

dojo
Johannes Geppert
Ranch Hand

Joined: Jan 12, 2010
Posts: 67
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


My Java and Webprogramming Blog
 
wood burning stoves
 
subject: Dojo + Struts ?