• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Dojo + Struts ?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can use with sx prefix
 
Vikas K Gupta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
check it out

dojo
 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
What's a year in metric? Do you know this metric stuff tiny ad?
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic