Re: Ajax and struts 1

2012-07-30 Thread Ing. Alvaro Gomez
in user servlet in ajax in single... call servlet in action is regenerate el code in html de selection On 30/07/2012 11:19 a.m., Adriana G wrote: I fill the select with a peersistent list than come from a method that returns a result from the DB. but i don't know how to update the select witho

Re: Ajax and struts 1

2012-07-30 Thread Dave Newton
Oh, so you're asking how to write JavaScript and update a select box? There should be plenty of tutorials on the internet; that you're using Struts 1 doesn't change any of the client-side stuff. Dave On Mon, Jul 30, 2012 at 1:19 PM, Adriana G wrote: > I fill the select with a peersistent list

Re: Ajax and struts 1

2012-07-30 Thread Adriana G
I fill the select with a peersistent list than come from a method that returns a result from the DB. but i don't know how to update the select without refresing the whole page, that's why i'm trying ajax with this function, but i don't know how to use it. On Mon, Jul 30, 2012 at 12:05 PM, Dave Ne

Re: Ajax and struts 1

2012-07-30 Thread Dave Newton
Define "doesn't work". What's in the response? JSON? How are you accessing the select element? I don't see anything where you set its ID or get it by its class name etc. What's in the JS console after your AJAX call returns? Anything? Dave On Mon, Jul 30, 2012 at 12:20 PM, Adriana G wrote: >

Re: Live search with Dojo (Ajax) and Struts 2

2010-04-08 Thread sandeep kotha
step1. google.com step2 search with autocomplete + dojo On 7 April 2010 01:15, Celinio Fernandes wrote: > Hi, > I am using Struts 2.1.8 and the Dojo plugin. > What i am trying to realize is the following : > the user has to fill a field that corresponds to a REFERENCEID. I want to > help that us

Live search with Dojo (Ajax) and Struts 2

2010-04-06 Thread Celinio Fernandes
Hi, I am using Struts 2.1.8 and the Dojo plugin. What i am trying to realize is the following : the user has to fill a field that corresponds to a REFERENCEID. I want to help that user to type in the REFERENCEID by suggesting 20 REFERENCEID as soon as he types in a digit. For instance, if he types

Redirect problem using Ajax and Struts - missing directory for image access

2009-04-24 Thread Qunhuan Mei
Hi there, My app uses Struts 2.1.6 to handle user’s file upload. It creates a user specific directory, say userDir at rumtime before upload starts. The userDir stores user uploaded files, say an intro.html with images. The app uses GDownloadUrl (google’s ajax) to access the intro.html i

Re: ajax and struts 2

2007-04-13 Thread Lance
. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:35 To: Struts Users Mailing List Subject: Re: ajax and struts 2 ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript

RE: ajax and struts 2

2007-04-13 Thread David Harland
Thanks Dave, I think that is exactly what I was looking for. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:54 To: Struts Users Mailing List Subject: RE: ajax and struts 2 --- David Harland <[EMAIL PROTECTED]> wrote: > Im using DWR. The p

RE: ajax and struts 2

2007-04-13 Thread Dave Newton
--- David Harland <[EMAIL PROTECTED]> wrote: > Im using DWR. The problem is that the java class > that the javascript talks to does not have access to > the session. http://getahead.org/dwr-demo/javadoc/uk/ltd/getahead/dwr/WebContext.html But there are better ways to handle this in S2. d. ___

RE: ajax and struts 2

2007-04-13 Thread David Harland
Users Mailing List Subject: Re: ajax and struts 2 ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript objects for you. http://getahead.org/dwr/overview/dwr on the serverside you can use WebContextFactory.get

Re: ajax and struts 2

2007-04-13 Thread Lance
ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript objects for you. http://getahead.org/dwr/overview/dwr on the serverside you can use WebContextFactory.get().getSession() Mahesh Parab wrote: Hi David, u c

Re: ajax and struts 2

2007-04-13 Thread Mahesh Parab
Hi David, u can able to read the session variable in javascript, e.g var intId intId='<%=session.getValue("id")%>' ; try this , Thanks, mahesh. On 4/12/07, David Harland <[EMAIL PROTECTED]> wrote: I am new to ajax and have just written my first ajax function. In my function I am passing a use

Re: ajax and struts 2

2007-04-12 Thread Martin Gainty
without making a copy. Thank you. - Original Message - From: "David Harland" <[EMAIL PROTECTED]> To: "struts" <[EMAIL PROTECTED]> Sent: Thursday, April 12, 2007 2:14 AM Subject: ajax and struts 2 I am new to ajax and have just written my first ajax functi

Re: ajax and struts 2

2007-04-12 Thread Felipe Rodrigues
y > connected to friends.http://mobile.yahoo.com/mail > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www

ajax and struts 2

2007-04-11 Thread David Harland
I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer t

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
} >>>>>>>>> >>>>>>>>> public int getCount() { >>>>>>>>> return ++counter; >>>>>>>>> } >>>>>>>>> >>>>>>>>> public String getData() { >>>>>>>>> return data; >>>

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
What is happening is that there is an error on the request, probably the action mapping is wrong, and it is returning a page with the error, but that page has the same menu as showcase, that's why your are seeing it twice. Put the full url for the action on the address bar, after you get that t

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
gt;>>>>>> request.setAttribute("decorator", "none"); >>>>>>> response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 >>>>>>> response.setHeader("Pragma","no-cache");

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
Are you sure you are not adding anything else to it and you are looking at the right one? I just check it out on showcase and it only loads once. Can you see if you have the same problem on showcase? regards musachy walidito wrote: Sorry but it didn't... It loads it many times Musachy B

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
xpires", 0); //prevents caching at the >>>>> proxy server >>>>> %> >>>>> >>>>> Result: @ >>>>> >>>>> >>>>> >>>>> musachy >>>>> >>>>> w

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
That needs to be fixed in struts, this is the jira ticket: https://issues.apache.org/struts/browse/WW-1551 from showcase: Initial Content That should load the div only once. musachy walidito wrote: Hi, Actually, I get this error both in my eclipse "console" and in my web page (debug ena

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
>> 18: loadingText="loading..."> >>>> 19: Initial Content >>>> >>>> >>>> In other word, a basic ajax component that allows a refreshment of only >>>> a >>>> part of my page. >>>> >&g

Re: Still Ajax and Struts 2

2006-12-08 Thread walidito
ingText="loading..."> >>>> 19: Initial Content >>>> >>>> >>>> In other word, a basic ajax component that allows a refreshment of only >>>> a >>>> part of my page. >>>> >>>> But I didn'

Re: Still Ajax and Struts 2

2006-12-08 Thread Musachy Barroso
You are seeing that error in your server logs right? There's a couple of things that we still need to fix for this integration between Struts and Dojo, but the application should work anyway. musachy walidito wrote: thanks, but I get an error with the code you gave me : SEVERE: Error setting

Re: Still Ajax and Struts 2

2006-12-08 Thread Ian Roughley
What release of Struts2 are you using and which browsers? /Ian walidito wrote: thanks, but I get an error with the code you gave me : SEVERE: Error setting expr 'dojo.transport' with value '[Ljava.lang.String;@179567c' ognl.OgnlException: target is null for setProperty(null, "transport", [Ljav

Re: Still Ajax and Struts 2

2006-12-07 Thread walidito
on and action mapping. >> For the moment I've tried to put a "success" return in my action ( is it >> enough ?), but I don't see what to put in my action mapping (i mean >> inside >> the tag. If I put nothing, of course it's >> wrong. >> I

Re: Still Ajax and Struts 2

2006-12-07 Thread Musachy Barroso
I think you should take a look at the Struts2/Webwork tutorials http://www.opensymphony.com/webwork/wikidocs/Tutorial.html and http://struts.apache.org/2.x/docs/tutorials.html If you look at the showcase code you will see this for the AjaxTest action: in struts-ajax.xml: class="org.apache.str

Still Ajax and Struts 2

2006-12-07 Thread walidito
result, It creates an infinite loop (always displays "loading"). Can sobdy help please? -- View this message in context: http://www.nabble.com/Still-Ajax-and-Struts-2-tf2776835.html#a7746954 Sent from the Struts - User mailing list archive at Nabble.com.

Re: Ajax and Struts

2006-09-03 Thread Frank W. Zammetti
Wen-Jung Chen wrote: Hi, I have a scenario that user enters data in the text box in the browser and clicks Continue button. I send this value into Struts Action class which checks against database to return me the true or false value. Based on this true or false value, I will display or hide in

Ajax and Struts

2006-09-03 Thread Wen-Jung Chen
Hi, I have a scenario that user enters data in the text box in the browser and clicks Continue button. I send this value into Struts Action class which checks against database to return me the true or false value. Based on this true or false value, I will display or hide in the same page. I am

Re: using AJAX and Struts Action class how to refresh data on jsp page

2006-04-03 Thread Michael Jouravlev
On 4/3/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Frank > I dont want to update all the jsp page, only the last > name text field, > I am able to do so if i do > PrintWriter out = response.getWriter(); > out.println(last); > return null; > > but suppose, i have 10-15 fields that need to be >

Re: using AJAX and Struts Action class how to refresh data on jsp page

2006-04-03 Thread Michael Jouravlev
On 4/3/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > hi > I am trying to learn AJAX and struts together (will > use some standard solution later) > This is what i am doing, > In my jsp i have 2 text fields FirstName and LastName > when the user enters FirstName

Re: using AJAX and Struts Action class how to refresh data on jsp page

2006-04-03 Thread Michael Jouravlev
On 4/3/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Then again, if you were to return a redirecting forward, that might do the > trick. I'm actually not sure how XMLHttpRequest reacts to a redirect... > that's an interesting question :) It does not, I tried it ;-) On the other hand, there

Re: using AJAX and Struts Action class how to refresh data on jsp page

2006-04-03 Thread Ashish Kulkarni
Frank I dont want to update all the jsp page, only the last name text field, I am able to do so if i do PrintWriter out = response.getWriter(); out.println(last); return null; but suppose, i have 10-15 fields that need to be updated, how will i pass data ack to jsp Is there a way to pass java obj

Re: using AJAX and Struts Action class how to refresh data on jsp page

2006-04-03 Thread Frank W. Zammetti
apping.getInputForward()); > > from your Action class. > > hope that helps, > -Brian > > > On Mon, 2006-04-03 at 10:19 -0700, Ashish Kulkarni wrote: >> hi >> I am trying to learn AJAX and struts together (will >> use some standard solution later) >&g

Re: using AJAX and Struts Action class how to refresh data on jsp page

2006-04-03 Thread Brian Long
Ashish, There's a built-in method you can use to return to the calling jsp. Try return (mapping.getInputForward()); from your Action class. hope that helps, -Brian On Mon, 2006-04-03 at 10:19 -0700, Ashish Kulkarni wrote: > hi > I am trying to learn AJAX and struts together (will

Re: using AJAX and Struts Action class how to refresh data on jsp page

2006-04-03 Thread Frank W. Zammetti
On Mon, April 3, 2006 1:19 pm, Ashish Kulkarni said: > In Struts, i want to populate ActionForm, and then > refresh jsp page This is pretty much the exact opposite of what AJAX is for :) Refreshing the whole page is what your actually tring to avoid with AJAX. You can populate the form fields yo

using AJAX and Struts Action class how to refresh data on jsp page

2006-04-03 Thread Ashish Kulkarni
hi I am trying to learn AJAX and struts together (will use some standard solution later) This is what i am doing, In my jsp i have 2 text fields FirstName and LastName when the user enters FirstName and hits enter i call a javascript which creates XMLHttpRequest objects, and calls a Action class

Re: How to update part of JSP using AJAX and struts action class

2006-01-12 Thread Frank W. Zammetti
Java Web Parts can do this: http://javawebparts.sourceforge.net And your in luck! The cookbook comes with an example of doing precisely this. Download it here: http://sourceforge.net/project/showfiles.php?group_id=140728&package_id=167877&release_id=366815 Frank Ashish Kulkarni wrote: Hi

Re: How to update part of JSP using AJAX and struts action class

2006-01-12 Thread Torgeir Veimo
On Thu, 2006-01-12 at 06:47 -0800, Ashish Kulkarni wrote: > Hi > I have a jsp where there are 2 drop down boxes, > I want to populate the value in second drop down box > depending on the selection of first dropdown box, > Suppose onClick event on first dropdown box i call a > struts Action using A

How to update part of JSP using AJAX and struts action class

2006-01-12 Thread Ashish Kulkarni
Hi I have a jsp where there are 2 drop down boxes, I want to populate the value in second drop down box depending on the selection of first dropdown box, Suppose onClick event on first dropdown box i call a struts Action using AJAX, this Action class populates the Form bean and sends it back to H

Re: ajax and struts-flow - how to refresh part of a page

2005-07-14 Thread Don Brown
I'm not sure I understand the question, but if you just want the ability to call Java methods from the client, I'd go with DWR. Struts Flow is a bit more experimental looking at rethinking web applications as continuations-based Javascript-glued apps where the view logic can be written in the same

ajax and struts-flow - how to refresh part of a page

2005-07-14 Thread Grzegorz Stasica
hi, I'm checking struts-flow package and one of it's features "Remote RPC support (termed Ajax but with JSON instead of XML) for calling flow methods from the client". As much as I can see now there is no problem to invoke actions from struts-config but as much as I see all page is being rend

AJAX and Struts -- Cocoon Use of Zammetti's ideas

2005-04-21 Thread Dakota Jack
Here is a post on Cocoon, which show the present end of a long series of posts using Frank Zammetti's idea propounded here and elsewhere, see the attribution in this posting. Cannot tell which list to post this to and I realize that everyone is going to ape sh__ over this because .