struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "aum strut" <aum.str...@gmail.com>
Subject Re: Struts2+DOJo1.x
Date Sun, 01 Jun 2008 12:22:35 GMT
thnaks khalo!!

its working now..
:)


On 6/1/08, khalod85 <khalod85@hotmail.com> wrote:
>
>
> Just add the 'id' attribute to your input text so when call by
> dojo.byId('attribute-id') it can get ;)
>
> aum strut wrote:
> >
> > Hi all,
> >
> > i am able to configure it with struts2 application.
> > and its started working fine.
> >
> > below is the code which i have  written for this:
> >
> >
> > <html>
> >
> > <head>
> >
> > <title>Fix me!</title>
> >
> > <style type="text/css">
> >
> > @import "http://o.aolcdn.com/dojo/1.0.0/dijit/themes/tundra/tundra.css";
> >
> > @import "http://o.aolcdn.com/dojo/1.0.0/dojo/resources/dojo.css"
> >
> > </style>
> >
> > <script type="text/javascript" src="
> > http://o.aolcdn.com/dojo/1.0.0/dojo/dojo.js"
> >
> > djConfig="parseOnLoad: true, isDebug: true"></script>
> >
> > <script type="text/javascript">
> >
> > dojo.require("dojo.parser");
> >
> > dojo.require("dijit.form.TextBox");
> >
> > dojo.require("dijit.form.Button");
> >
> > </script>
> >
> > <script>
> >
> > function helloCallback(data,ioArgs) {
> >
> > //alert(data);
> >
> > alert("Hiiiiiiiiiiii");
> >
> > }
> >
> > function helloError(data, ioArgs) {
> >
> > alert('Error when retrieving data from the server!');
> >
> > }
> >
> > </script>
> >
> > </head>
> >
> > <body class="tundra">
> >
> > <form>
> >
> > What's the 411? <input type="text" size="20" name="name"/ ><br>
> >
> > <button dojoType="dijit.form.Button" id="helloButton" type="submit">
> >
> > Hello World!
> >
> > <script type="dojo/method" event="onClick">
> >
> > dojo.xhrGet({
> >
> > url: 'Test.action',
> >
> > load: helloCallback,
> >
> > error: helloError,
> >
> > content: {name: dojo.byId('name').value }
> >
> > });
> >
> > </script>
> >
> > </button>
> >
> > </body>
> >
> > </html>
> > now2 but i want that when the userclick the button the Test action will
> be
> > called, but i am not sure how will it will read the struts.xml file to
> > find
> > out the appropriate action based on the configuration in struts2.xml
> file,
> >
> > Currently it is showing the main page accurately but its not calling
> > the required action
> >
> > any suggestion or help in this regard will be much appriciated.
> >
> > Thanks
> > -aum
> >
> > On 5/28/08, Dave Newton <newton.dave@yahoo.com> wrote:
> >>
> >> It's no different than if you were using it with any other web
> >> framework.
> >>
> >> Dave
> >>
> >> --- aum strut <aum.struts@gmail.com> wrote:
> >>
> >> > Thanbks for the infomation.
> >> >
> >> > my question was that i want touse DOJO 1.x with STruts2 but hvae no
> >> > idea how
> >> > to configure DOJO 1.x with Struts2 Project.
> >> > if any body there using this can point me out the way , how to use
> >> > DOJo 1.x
> >> > independently with Struts2 without using Struts2 Ajax Tag.
> >> >
> >> >
> >> > Thanks in advance,
> >> > -aum
> >> >
> >> >
> >> > On 5/27/08, duschhaube <duschhaube@gmx.net> wrote:
> >> > >
> >> > > Hi,
> >> > >
> >> > >
> >> > > with dojo 1.1 you can use different versions of dojo.
> >> > > look here
> >> > >
> >> >
> >>
> >>
> http://dojotoolkit.org/book/book-dojo/part-3-javascript-programming-dojo-and-dijit/multiple-versions-dojo-page
> >> > >
> >> > > so you can use dojo1.1 and dojo-struts-tags (dojo0.43) at the same
> >> > time
> >> > >
> >> > > aum strut schrieb:
> >> > >
> >> > >> Hi All,
> >> > >>
> >> > >> Is there any one who is using DOJO 1.X with the Struts2.
> >> > >>
> >> > >> we are aslo trying to use DOJO with Struts2(Without using struts2
> >> > ajax
> >> > >> tags)
> >> > >>
> >> > >>
> >> > >>
> >> > >> Thanks & Regards,
> >> > >> aum
> >> > >>
> >> > >>
> >> > >
> >> > >
> >> > ---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> > > For additional commands, e-mail: user-help@struts.apache.org
> >> > >
> >> > >
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Struts2%2BDOJo1.x-tp17474753p17584805.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message