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
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
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
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:
>
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
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
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
.
-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
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
--- 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.
___
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
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
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
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
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
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
}
>>>>>>>>>
>>>>>>>>> public int getCount() {
>>>>>>>>> return ++counter;
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> public String getData() {
>>>>>>>>> return data;
>>>
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
gt;>>>>>> request.setAttribute("decorator", "none");
>>>>>>> response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
>>>>>>> response.setHeader("Pragma","no-cache");
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
xpires", 0); //prevents caching at the
>>>>> proxy server
>>>>> %>
>>>>>
>>>>> Result: @
>>>>>
>>>>>
>>>>>
>>>>> musachy
>>>>>
>>>>> w
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
>> 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
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'
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
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
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
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
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.
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
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
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
>
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
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
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
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
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
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
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
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
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
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
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
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
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 .
45 matches
Mail list logo