Re: [S2] Form doesn't redirect

2008-07-30 Thread Dave Newton
--- On Wed, 7/30/08, Nick Scavelli <[EMAIL PROTECTED]> wrote: > I'm replying to this because it's somewhat related > to an issue I'm having. Not really :p > Let's say I have the following control in my jsp: > targets="resultsDiv" indicator="indicator"/> > > But let's say my session h

Re: [S2] Form doesn't redirect

2008-07-30 Thread Nick Scavelli
I'm replying to this because it's somewhat related to an issue I'm having. Let's say I have the following control in my jsp: This of course will update the div defined in my jsp: Everything works great under normal circumstances. But let's say my session has timed out, and I need to redirect

Re: [S2] Form doesn't redirect

2008-07-29 Thread Milan Milanovic
Hi Dave, thank you on Ajax reference. I know basically Ajax and I'm using it in my applications for simple updating of data. I just forgot to remove theme="ajax" from submit button and that was the problem, as I said so. -- Regards, Milan newton.dave wrote: > > --- On Mon, 7/28/08, Milan Mila

Re: [S2] Form doesn't redirect

2008-07-28 Thread Milan Milanovic
I forgot to change theme from ajax to simple in my second form. Now it works, sorry. -- Milan Milan Milanovic wrote: > > Hi Dave, > > well I don't understand what is the problem, I use ajax for my first form, > but not to second which should redirect ? > > -- > Thx, Milan > > > newton.dave

Re: [S2] Form doesn't redirect

2008-07-28 Thread Dave Newton
--- On Mon, 7/28/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > well I don't understand what is the problem, I use ajax > for my first form, but not to second which should redirect? ... Not reloading the entire page is one of the main points of Ajax. If you want to reload the entire page (like

Re: [S2] Form doesn't redirect

2008-07-28 Thread Milan Milanovic
Hi Dave, well I don't understand what is the problem, I use ajax for my first form, but not to second which should redirect ? -- Thx, Milan newton.dave wrote: > > --- On Mon, 7/28/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: >> this second form should redirect and yes it doesn't have target

Re: [S2] Form doesn't redirect

2008-07-28 Thread Dave Newton
--- On Mon, 7/28/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > this second form should redirect and yes it doesn't have target > specified, as I don't want to specify any part of the page, but > I want to show (redirect to) completely new page. What can I do ? Don't use Ajax? Dave -

Re: [S2] Form doesn't redirect

2008-07-28 Thread Milan Milanovic
Hi Newton, my first form doesn't redirect, it just send some data to action class and updates targeting div in the page to show updated data from my class, so it works fine, but it shouldn't redirect from page. But, this second form should redirect and yes it doesn't have target specified, as I d

Re: [S2] Form doesn't redirect

2008-07-27 Thread Dave Newton
--- On Sun, 7/27/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: >>> >>> >>> >> cssClass="submit" align="right" value="Save"/> >>> Do Ajax forms redirect? I thought they submitted in the background via an XHR. Since you don't have a target specified, would the result just be ign

Re: [S2] Form doesn't redirect

2008-07-27 Thread Milan Milanovic
Hi, no, no error! My first form works good with ajax and updates some table value, but this second form that should save one value from textfield and redirect from that page, works fine with called submit method, but there is no redirection, it just stays on this page, it even not refresh. -- Th

Re: [S2] Form doesn't redirect

2008-07-26 Thread Dhiraj Thakur
r u getting any error? Regards, Dhiraj On Fri, Jul 25, 2008 at 9:29 PM, Milan Milanovic <[EMAIL PROTECTED]>wrote: > > Hi, > > I have two forms in my .jsp page which are connected to one Action class. > They both works fine, but when user submit second form, method in action > class > is called,

[S2] Form doesn't redirect

2008-07-25 Thread Milan Milanovic
Hi, I have two forms in my .jsp page which are connected to one Action class. They both works fine, but when user submit second form, method in action class is called, but no redirection to resulting .jsp page (as defined GOOD in struts.xml) is done ? This is my (second) form: