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 and hits enter i call a
> javascri
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
That's true Brian, but if he doesn't have appropriate code on the
client-side to handle the response, it won't do much good in this
particular case. Remember he's getting the response via XMLHttpRequest.
Then again, if you were to return a redirecting forward, that might do the
trick. I'm actual
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
> use some
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 u
8 matches
Mail list logo