Thanks Lukasz,
I just found the cause... I was using the same form id in the different
divs. I had a jsp included in both divs, and it contained the form bean
(which needs to be different for both divs).
Lukasz Lenart wrote:
>
> There is some problem with div's inside form, when you want t
There is some problem with div's inside form, when you want to return
a content from Ajax call, I think it's only on IE, check that.
The second though can be duplicated id's for div's or other tags
Regards
--
Lukasz
http://www.lenart.org.pl/
-
Seems like it has something to do with this part of the code:
If I remove this, the code works... What is wrong here? It is inside the
form in
The submit action is present... However, I don't use a submit button, I use
a button which performs the action using an Ajax call. I overruled the
submit, by using onsubmit="return false;" as an form attribute. Is this the
reason?
You are sure it has nothing to do with a div containing the for
2008/10/20 Joris Kimpe <[EMAIL PROTECTED]>:
> I know I can use the same form for different actions. That's what I was
> trying to do. But I'm afraid it has something to do with the different div
> sections.
No, it shouldn't, div's are used only for display and are not
submitted to the actions. S
I know I can use the same form for different actions. That's what I was
trying to do. But I'm afraid it has something to do with the different div
sections.
Do you know whether this can be done? If not, what's the best way to create
the application I want?
Joris
Lukasz Lenart wrote:
>
> H
Hi,
I'm not sure where you have problem, you can define the same form for
different actions in struts-config.xml
Each html form has to have input with type submit, that's all.
I only noticed that you are using action path (saveStatusChange.do)
instead of action name (/saveStatusChange)
Regards
-
Hello,
I have an application with 2 buttons. Each button hides/shows a div. In
each div I want to use the same ActionForm, but different Actions. Maybe
this can't be done, but I also have problems using a different ActionForm
for each div.
A short overview:
- my initial jsp looks like this:
8 matches
Mail list logo