Re: Help adding Struts to AJAX impl

2006-02-01 Thread Bryan LaPlante
This is an interesting issue that you all are discussing here because it is a problem that had to solve for my own api. Let me tell you what I did and then you can apply it to your situation as appropriate. On the JavaScript side I created Objects to represent PageContext, Request, Response, Listen

Re: Help adding Struts to AJAX impl

2006-02-01 Thread Frank W. Zammetti
Laurie Harper wrote: Sounds like it'd be a lot easier to just fire the first request with a handler function that fires the next request, and so on, using onreadystatechange. I would agree with that, *IF* the requests being sent are always the same and *IF* they are always in the same order.

Re: Help adding Struts to AJAX impl

2006-02-01 Thread Laurie Harper
Sounds like it'd be a lot easier to just fire the first request with a handler function that fires the next request, and so on, using onreadystatechange. L. Frank W. Zammetti wrote: No Wendy, you are correct in your explanation :) I see Ajax in Action is serving you well :) I wouldn't expe

svn commit: r374245 - /struts/action/trunk/xdocs/userGuide/release-notes.xml

2006-02-01 Thread hrabago
Author: hrabago Date: Wed Feb 1 20:14:12 2006 New Revision: 374245 URL: http://svn.apache.org/viewcvs?rev=374245&view=rev Log: Fix typo. Modified: struts/action/trunk/xdocs/userGuide/release-notes.xml Modified: struts/action/trunk/xdocs/userGuide/release-notes.xml URL: http://svn.apache.or

Re: Help adding Struts to AJAX impl

2006-02-01 Thread Frank W. Zammetti
What I should have said too is that if you want to discuss this further, feel free to contact me off-list, or start a new thread to explore it. We don't want to hijack the original thread :) Frank Frank W. Zammetti wrote: No Wendy, you are correct in your explanation :) I see Ajax in Action

Re: Help adding Struts to AJAX impl

2006-02-01 Thread Frank W. Zammetti
No Wendy, you are correct in your explanation :) I see Ajax in Action is serving you well :) I wouldn't expect it to be the best answer though because that parameter blocks *all* Javascript, not just further XMLHttpRequest's. What you will probably want to do Michael is build up a queue on t

[Struts Wiki] Update of "StrutsDocComments" by MartinCooper

2006-02-01 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification. The following page has been changed by MartinCooper: http://wiki.apache.org/struts/StrutsDocComments The comment on the change is: Fix the links to the mailing list page. -

Re: Help adding Struts to AJAX impl

2006-02-01 Thread Wendy Smoak
On 2/1/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Hi, Ajax gurus, I have an OT question: how to ensure the proper order > of several XHRs? I found how to create several XHRs simultaneously, > but I have a requirement: to wait for the first request to return > before firing the second, (Ha

Re: Help adding Struts to AJAX impl

2006-02-01 Thread Michael Jouravlev
Hi, Ajax gurus, I have an OT question: how to ensure the proper order of several XHRs? I found how to create several XHRs simultaneously, but I have a requirement: to wait for the first request to return before firing the second, because I need second request to pick up server state updated by firs

ThrowableActionErrors

2006-02-01 Thread [EMAIL PROTECTED]
While sitting here talking with Frank Zammetti, I have been working in a struts app where the coders before me have used multiple try/catch blocks to handle the forwarding of actions. They used one generic exception page as a catch all. In two of the actions I need to return to the original page fo

Re: Help adding Struts to AJAX impl

2006-02-01 Thread [EMAIL PROTECTED]
the way my client side api would expect to see that data would be like so. Frank Zammetti $1,000,000,000,000.00 More than likely the user would simply return a lazy version of the accountHolders object in which case the would go on to d

[Struts Wiki] Update of "ServingPdfDocuments" by GeorgeDinwiddie

2006-02-01 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification. The following page has been changed by GeorgeDinwiddie: http://wiki.apache.org/struts/ServingPdfDocuments --

Re: Help adding Struts to AJAX impl

2006-02-01 Thread Frank W. Zammetti
On Wed, February 1, 2006 3:35 pm, [EMAIL PROTECTED] said: > I would need to write an AJAXAction that could in turn be extended by the > coder so that I could control the response back from the servlet. Ok I > just > thought of a gotcha for this approach. If the client is expecting a > specific > xm

Re: Help adding Struts to AJAX impl

2006-02-01 Thread [EMAIL PROTECTED]
Using a custom action? Now that is a good idea. That would solve some problems on a couple of levels such as how to lightly couple the struts classes into mine such that a non-struts user would not be required to add the struts required jars to the classpath. Now just thinking out loud to take adv

[Struts Wiki] Update of "ServingPdfDocuments" by FrankZammetti

2006-02-01 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification. The following page has been changed by FrankZammetti: http://wiki.apache.org/struts/ServingPdfDocuments New page: The subject of serving PDF documents comes up rather frequently on the

[Struts Wiki] Trivial Update of "StrutsNewFaqs" by FrankZammetti

2006-02-01 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification. The following page has been changed by FrankZammetti: http://wiki.apache.org/struts/StrutsNewFaqs -- * Co

[Struts Wiki] Update of "StrutsNewFaqs" by FrankZammetti

2006-02-01 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification. The following page has been changed by FrankZammetti: http://wiki.apache.org/struts/StrutsNewFaqs -- * Co

Re: Help adding Struts to AJAX impl

2006-02-01 Thread Frank W. Zammetti
Actually, that's another way to go, a Filter. However, I was actually referring to the fact that Struts 1.3 uses a composable request processor based around the CoR pattern. With that, you can modify the series of steps (Commands) that get executed with each request. This is within the context o

Re: Help adding Struts to AJAX impl

2006-02-01 Thread [EMAIL PROTECTED]
Yes sir you are right on the money. So you are saying I should use a FilterChain to process calles to the ActionServlet and prepare the request per the needs of my ajax call before action servlet gets ahold of it. The only problem with that is that I have a specific xml struture explained here http

[Struts Wiki] Update of "StrutsDocComments" by notrly

2006-02-01 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification. The following page has been changed by notrly: http://wiki.apache.org/struts/StrutsDocComments -- * Strut

DO NOT REPLY [Bug 38482] - [shale] clay enhancement - reusable clay components

2006-02-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 38482] - [shale] clay enhancement - reusable clay components

2006-02-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 38482] - [shale] clay enhancement - reusable clay components

2006-02-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 38482] - [shale] clay enhancement - reusable clay components

2006-02-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 38482] New: - [shale] clay enhancement - reusable clay components

2006-02-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

Uber-Tiles osgi-fied Struts with Cedric Dumoulin

2006-02-01 Thread Wolfgang Gehner
Remember Cedric Dumoulin, original creator of Tiles? He would like to work with me on an OSGi-fied version of Struts, kind of like an "Uber-Tiles", using OSGi components "bundles" that contribute to a UI (similar to Eclipse RCP, but on the server) but can also contribute logic. I believe OSGi

Re: Help adding Struts to AJAX impl

2006-02-01 Thread Frank W. Zammetti
Hi Bryan, I'm not sure I'm clear on what your trying to do... it sounds like you have a separate servlet running along side ActionServlet that receives your AJAX requests, and this servlet you want to call Actions, is that correct? If so, I would suggest perhaps a better approach is to modify the

Re: Help adding Struts to AJAX impl

2006-02-01 Thread Bryan LaPlante
I had a chance to look at this in more detail yesterday. It appears that I will need to write a class to load up all the resources the same way the init method in ActionServlet does. Am I in the right place to ask for help understanding the API? It has been roughly a week and no reply. - Origi