This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic