Re: ajax proj

2005-05-08 Thread Frank W. Zammetti
Hello, I believe that your expectation about what should be happening here is not correct. Think about the flow of events... When you change a combo box, you construct the query string and then submit that to your myAction Action. This Action prepares the data, sets the collections in request

Re: ajax proj

2005-05-06 Thread ahmet hassan
Hi all, I try to use XmlHttpRequest, but I can't successfully.I have a form which is composed of 5 select boxes and on each of them, I have onchange = "submitData()" ( taken from Zammetti's sample :)).Every combo data changes each time one changes.Anyway below the code: Kurum Kodu :

Re: [OT] Re: ajax proj

2005-05-02 Thread Craig McClanahan
On 5/2/05, Jason Lea <[EMAIL PROTECTED]> wrote: > Just a quick note/question about Craig's code below: > > This line > > ${category.label} > > will output the value with not xml filtering, so some values will cause > incorrect xml to be generated. > > You should use tag to filter the <,>,

Re: [OT] Re: ajax proj

2005-05-02 Thread Jason Lea
Just a quick note/question about Craig's code below: This line ${category.label} will output the value with not xml filtering, so some values will cause incorrect xml to be generated. You should use tag to filter the <,>,',", and & characters to output <, >, ', ", and & and the same for

Re: [OT] Re: ajax proj

2005-05-02 Thread Dave Newton
Woodchuck wrote: JSTL is da bomb! :) Does this mean... we can drop it? Eh, it's Friday, whaddya want. Seriously, I hate all that typing-JSP 2.0 may save my wrists. Dave "What do you mean, Monday?" Newton - To unsubscribe, e-ma

Re: [OT] Re: ajax proj

2005-05-02 Thread Craig McClanahan
On 5/2/05, Woodchuck <[EMAIL PROTECTED]> wrote: > JSTL is da bomb! :) Indeed it is. If you actually need to create XML in a response to an XmlHttpRequest call from an Ajax client side gadget :-), here's an approach using a JSP 2.0 page (in xml syntax) that uses JSTL to iterate over a result set

[OT] Re: ajax proj

2005-05-02 Thread Woodchuck
JSTL is da bomb! :) --- Rick Reumann <[EMAIL PROTECTED]> wrote: > Dakota Jack wrote the following on 5/2/2005 4:01 PM: > > > > The other aspect that is not discussed above is the removal of the > > complexity from the "page". This is where JSP, Taglibs, etc., come > > into the picture. And, I

Re: ajax proj

2005-05-02 Thread Dakota Jack
Yes, Rick, exactly! On 5/2/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Dakota Jack wrote the following on 5/2/2005 4:01 PM: > > > > The other aspect that is not discussed above is the removal of the > > complexity from the "page". This is where JSP, Taglibs, etc., come > > into the picture. An

Re: ajax proj

2005-05-02 Thread Rick Reumann
Dakota Jack wrote the following on 5/2/2005 4:01 PM: The other aspect that is not discussed above is the removal of the complexity from the "page". This is where JSP, Taglibs, etc., come into the picture. And, I suspect, you two are talking about a combination of this problem (keeping the page si

Re: ajax proj

2005-05-02 Thread Dakota Jack
I thought I would toss in a couple of philosophical points about the HTML being created in the action. As we know, the "technologies" of Servlets and Taglibs essentially mask the fact that HTML is created other than on the page. I won't complete all my thinking on that. Just tossing that into th

Re: ajax proj

2005-05-02 Thread Rick Reumann
Frank W. Zammetti wrote the following on 5/2/2005 3:33 PM: The fifth example in my webapp from the article shows this, Perfect thanks. I should have looked at all of these before posting:) -- Rick - To unsubscribe, e-mail: [EMAIL

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Woops, a couple of typos in there... When I talked about "...all the outputting of HTML would be removed...", I was referring to removing what you see now in the Action. And the first line of that JSP code should read: <% ArrayList sortedPresidentsList = (ArrayList)request.getAttribute("sortedPr

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Sure! :) Basically view the entire server portion as one piece... at the end of whatever it is that it does, it's returning HTML (whether it's a complete page, as usual, or just a snippet, like with Ajax techniques usually). Whether that HTML is written directly to response in an Action or a JSP

Re: ajax proj

2005-05-02 Thread Rick Reumann
Frank W. Zammetti wrote the following on 5/2/2005 2:53 PM: I think most people would tell you to forward to a JSP to generate what really amounts to just a snippet of HTML... I'm confused though, you can do that? In other words you can make an XMLHttpRequest from one JSP that goes to an Action a

Re: ajax proj

2005-05-02 Thread Rick Reumann
Frank W. Zammetti wrote the following on 5/2/2005 2:53 PM: Sometimes I think we all get so wrapped up in trying to achieve the perfect architecture that we overcomplicate things... amen brotha' Preaching to the choir:) -- Rick - T

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Hmm... well, if I was doing something like that in real life I might well do it from the Action :) That doesn't make it the generally accepted "right answer' thought. I think most people would tell you to forward to a JSP to generate what really amounts to just a snippet of HTML... IIRC, one of m

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Feel free, link away! If you like that, I suggest taking a peak at the ajaxtags... it's even better when you don't have to write the code yourself, just throw an entry in a config file :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mo

Re: ajax proj

2005-05-02 Thread Rick Reumann
Frank W. Zammetti wrote the following on 5/2/2005 2:18 PM: Glad your enjoying it Rick! I hope you find something useful in it too. :) I see in your examples you make the note about writing the HTML in your Action is bad form, but I'm curious then how you handle this in real life. For example, lo

Re: ajax proj

2005-05-02 Thread Rick Reumann
Frank W. Zammetti wrote the following on 5/2/2005 2:18 PM: Glad your enjoying it Rick! I hope you find something useful in it too. :) I like learning from examples and your examples ARE AWESOME If you don't mind, I'm going to link your article from Struttin With Struts http://www.reumann.

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Glad your enjoying it Rick! I hope you find something useful in it too. :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, May 2, 2005 2:00 pm, Rick Reumann said: > Thanks for your Ajax/Struts PDF Frank. Reading it right now. Good st

Re: ajax proj

2005-05-02 Thread Rick Reumann
Thanks for your Ajax/Struts PDF Frank. Reading it right now. Good stuff. Frank W. Zammetti wrote the following on 5/2/2005 1:40 PM: Because of some technical difficulties that are being worked on (not with AjaxTags itself though), there is no official download available yet, of the updated taglib o

Re: ajax proj

2005-05-02 Thread Frank W. Zammetti
Because of some technical difficulties that are being worked on (not with AjaxTags itself though), there is no official download available yet, of the updated taglib or the sample app. You would get it in exploded format as well, but that's probably not a big deal to anyone. If you want to play w

ajax proj

2005-05-02 Thread Sergey Livanov
Frank, Where can I find ajaxsample.war ? -- С уважением, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]