Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
"DraegoonZ" McGranaghan http://www.draegoonZ.com 603-620-0854 [EMAIL PROTECTED] From: "Frank W. Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: Struts and AJAX Date: Mon, 03 Jul 2006 18:51:43 -0400

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
DESIGN BY DRAEGOONZ Joseph "DraegoonZ" McGranaghan http://www.draegoonZ.com 603-620-0854 [EMAIL PROTECTED] From: "Frank W. Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: Struts and AJAX Dat

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
draegoon Z wrote: Why doesn't APT get this same response? What response does it get? As far as I can see, it *SHOULD* get the same response, the only difference would be what happens on the client-side with it. Why doesn't it get forwarded to the "input" page automatically, returning it i

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
-- WEB DESIGN BY DRAEGOONZ Joseph "DraegoonZ" McGranaghan http://www.draegoonZ.com 603-620-0854 [EMAIL PROTECTED] From: "Frank W. Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: R

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
draegoon Z wrote: That CodeExecuter is nice! Thanks! The interesting thing is that as of beta5, it doesn't matter what response handler you use, the script blocks will ALWAYS be executed. That's why there's a seemingly superfluous DoNothing handler... you may want to use that instead of Co

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
Michael Jouravlev wrote: Frank, please ignore my ignorance, Ignorance is thinking you know something when you don't... not knowing something you have no experience with isn't :) > if I understand correctly, an Action still returns a full page, but your JS engine parses the response and pull

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
That CodeExecuter is nice! With dojo.io.bind() I use DWRUtil.setValue() to load the response into my , which doesn't execute any

Re: Struts and AJAX

2006-07-03 Thread Michael Jouravlev
On 7/3/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: draegoon Z wrote: > Sounds great so far, but I think I lost you on the first part. > Let's work through a simple problem... > > Let's say I have in my struts-config: > > > > > > scope="request" type="com.draegoonZ.action.MyAction"> >

Re: Struts and AJAX

2006-07-03 Thread Rick Reumann
Just wanted to say +1 for the JWP tags. Plus the support you get it is top-notch. Use them. On 7/3/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: draegoon Z wrote: > Sounds great so far, but I think I lost you on the first part. > Let's work through a simple problem... > > Let's say I have in

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
draegoon Z wrote: Sounds great so far, but I think I lost you on the first part. Let's work through a simple problem... Let's say I have in my struts-config: scope="request" type="com.draegoonZ.action.MyAction"> First, what happens if MyForm just simply returns an ActionError?

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
" McGranaghan http://www.draegoonZ.com 603-620-0854 [EMAIL PROTECTED] From: "Frank W. Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: Struts and AJAX Date: Mon, 03 Jul 2006 14:54:47 -0400 Goo

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
Good questions! Let me see if I can answer them... draegoon Z wrote: What about errors in the ActionForm? APT doesn't say anything at all about what happens on the server, so, the short answer is its up to you :) The longer answer is that each of the response handlers (as of the latest bet

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
IL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: Struts and AJAX Date: Mon, 03 Jul 2006 14:03:45 -0400 Oops, messed up my own config file! Should be... to=to

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
IL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: Struts and AJAX Date: Mon, 03 Jul 2006 14:03:45 -0400 Oops, messed up my own config file! Should be... to=to

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
Oops, messed up my own config file! Should be... to=to Frank W. Zammetti wrote: I'm a big fan of DWR as well, it's a very worthy alternative. But, I don't mind a little self-promotion, so... how does this

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
I'm a big fan of DWR as well, it's a very worthy alternative. But, I don't mind a little self-promotion, so... how does this strike you? ... to=to Then, in your JSP: class='error'>To: ... //more form elements ... SUBMIT This would result in

RE: Struts and AJAX

2006-07-03 Thread draegoon Z
Hey, I use DWR + dojo to use AJAX with struts: http://getahead.ltd.uk/dwr/ http://dojotoolkit.com/ Although dojo has some flashy widgets and stuff, its power is the dojo.io.bind() function: http://dojotoolkit.org/docs/intro_to_dojo_io.html Here is an example of using Struts A

Re: Struts and AJAX

2006-07-03 Thread Jorge Martín Cuervo
I use struts + DWR to develope ajax applications. http://getahead.ltd.uk/dwr/ El lun, 03 de 07 de 2006 a las 05:57, chamal desilva escribió: > Hi, > > Can I use struts with AJAX. Does struts has classes > and tags for AJAX or do I have write my own code. > > Thanking You, > Chamal. > > __

Re: Struts and AJAX

2006-07-03 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Can I use struts with AJAX. Does struts has classes > and tags for AJAX or do I have write my own code. i have used: * http://dojotoolkit.org/ with struts recently. I like this very much although this does not consist of taglibs but of pure javascri

Re: Struts and AJAX

2006-07-02 Thread Frank W. Zammetti
Depending on what version of Struts you use, there *IS* in fact an AJAX-enabled version of the HTML taglib: http://struts.sourceforge.net/ajaxtags/index.html However, this taglib is now superseded by a far superior option: http://javawebparts.sourceforge.net/javadocs/javawebparts/taglib/ajaxta

Re: Struts and AJAX

2006-07-02 Thread thamizh arasu
Hi, For ur purpose struts is having ajaxtags. through which you can use ajax in your struts application. Refer http://ajaxtags.sourceforge.net/. chamal desilva <[EMAIL PROTECTED]> wrote: Hi, Can I use struts with AJAX. Does struts has classes and tags for AJAX or do I have write my own code.

Re: Struts and AJAX

2006-07-02 Thread paz . periasamy
You can use... There are no tag libraries in Struts for AJAX. Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, HCL Australia Services Pty. Ltd. Off : +61-3-9618-4085 Mob : +61-0411-354-838 chamal desilva <[EMAIL PROTECTED]> 03/07/2006 01:57 PM Please respond to "Struts Users

re: Struts and Ajax

2006-04-06 Thread mcmoisei
You also can do it transparently using ajaxanywhere.sourceforge.org Define a refresh zone around that dropdown you want to populate and then your onchange will do the regular re-post to bring data from server then instruct your zone to refresh and data will appear miracoulosly... :) There are

Re: Struts and Ajax

2006-04-06 Thread Frank W. Zammetti
On Thu, April 6, 2006 3:18 am, Madhav Bhargava said: > I do not want to put any Html generating logic inside my action class. Is > there any other elegant way in which i can generate the HTML for the drop > down. > > I can very well write different methods to generate the HTML code and then > call

re: Struts and Ajax

2006-04-06 Thread Dean, Michael
Madhav: I think the idea IS: Once your data stream (drop-down content) is returned to the page (onReadyStateChange()), you'll have a JavasScript handler in place to refresh your drop-down (you manipulate and re-render the DOM node using Javascript). It is all done on the front-end... See

Re: Struts and Ajax

2006-04-06 Thread [EMAIL PROTECTED]
If you would like to create a helper class for your ajax stuff, here is a link to show you what your Java code would look like. Follow Setup Configuration to see how to set it up. http://www.xoscript.org/opencms/opencms/documentation/aboutjava.html Here is what the JavaScript code would look like.

Re: Struts and Ajax

2006-04-06 Thread chuanjiang lo
go take a look at http://javawebparts.sourceforge.net they have a ajax dynamic double select servlet.. On 4/6/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have 2 drop downs in my JSP. One drop down gets populated based on the > value selected in the other drop down. At prese

Re: Struts and AJAX

2006-04-04 Thread Frank W. Zammetti
Struts Wiki page: http://wiki.apache.org/struts/AjaxStruts See especially the article referenced on this page for a decent introduction as well as example Struts app. Probably the best starting point. After that, have a look at AjaxTags here: http://javawebparts.sourceforge.net (Click jav

RE: Struts and AJAX

2006-04-04 Thread Rakesh.Bhat
This http://www.omnytex.com/articles/xhrstruts/ might help u. Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services business from i-flex - "Add Value Reduce Risk" www.iflexsolutions.com/services/services.asp i-flex solutions limited - Bangalore Phone : +91(080) 5759-6873 Emai