SV: SV: Struts Actions Forms Actions - ?????????

2004-01-26 Thread Tommy Holm - TELMORE
Ok lets look at it. 
You have a flow like this 
 1.) Selectmodel.jsp - 2.) listModels.do - 3.) listmodels.jsp -
4.)listModels.do - 5.)listmodels.jsp  ***
Correct ?
From which point doesn't it work anymore, after number 3 ?
Are you using an action for forwarding to Selectmodel.jsp ?
If you could show me your struts-config.xml, I probably would be able to
help you much faster, because 
Your flow is extremely simple and should work straight out of the box.

Anyway you must be able to find some log information somewhere.
Cheers

-Oprindelig meddelelse-
Fra: Vinicius Carvalho [mailto:[EMAIL PROTECTED] 
Sendt: 26. januar 2004 17:21
Til: Struts Users Mailing List
Emne: Re: SV: Struts Actions Forms Actions - ?


Sorry, I don't think you understood my question.
The problem is not within th html:form
but html:link which action is the same that the html:form on the
other 
page will use.
Got it?



| Selectmodel.jsp | -- calls an action (listModels.do) via link --
forwards to |listmodels.jsp| -- calls an action (listModels.do) via
submit 
-- forwards to listmodels.jsp


Got it?






At 14:21 26/1/2004, you wrote:
Are you using a html:form ... Tag for submitting the user request ? 
and are you sure that you are mapping the action to the correct action 
in the html:form action=? Did you implement the token check and

forgot about it, so that you actually are getting double form submit 
exceptions ?

I have once had the problem that we implement a token test on form 
submits to catch client double submits, well that's great when you 
update data but when you just view data it's not needed! Cheers
Tommy

-Oprindelig meddelelse-
Fra: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sendt: 26. januar 2004 17:07
Til: [EMAIL PROTECTED]
Emne: Struts Actions Forms Actions - ?


 Well, sometimes I wonder if struts is really the best 
framework to use in our application scope, it brought so many problems 
then solutions...
 But now I think its too late.
 Here's my problem (another one in the huge, never-ending list)

I need to call the same Action from a link and a Form, this is simple 
cuz the page rendered is the same, the diff. is that the first time 
it's called
from a link it renders the form, and a list of default attributes, when
the
user submits the form (actually just change a select object) the list
is

changed (the select acts like a filter). Well, problem is its not 
working.

when the user clicks on the link, it fowards to the default error page,

trying to debug, I've noticed that the controller never gets to the 
desired action (probably cuz the form class, can not get the getter and

setter for
its properties, cuz in the first call, the form does not exists yet).
So

what can I do to solve this? If at least the controller where getting 
to

the desired action, but it redirects the user before that.

Thanks

Vinicius


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SV: SV: Struts Actions Forms Actions - ?????????

2004-01-26 Thread Vinicius Carvalho
Well I changed my application (last time, next one I'll change framework ;P 
) to fit, and now it works, but thanks for all the help.

At 14:34 26/1/2004, you wrote:
Ok lets look at it.
You have a flow like this
 1.) Selectmodel.jsp - 2.) listModels.do - 3.) listmodels.jsp -
4.)listModels.do - 5.)listmodels.jsp  ***
Correct ?
From which point doesn't it work anymore, after number 3 ?
Are you using an action for forwarding to Selectmodel.jsp ?
If you could show me your struts-config.xml, I probably would be able to
help you much faster, because
Your flow is extremely simple and should work straight out of the box.
Anyway you must be able to find some log information somewhere.
Cheers
-Oprindelig meddelelse-
Fra: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sendt: 26. januar 2004 17:21
Til: Struts Users Mailing List
Emne: Re: SV: Struts Actions Forms Actions - ?
Sorry, I don't think you understood my question.
The problem is not within th html:form
but html:link which action is the same that the html:form on the
other
page will use.
Got it?


| Selectmodel.jsp | -- calls an action (listModels.do) via link --
forwards to |listmodels.jsp| -- calls an action (listModels.do) via
submit
-- forwards to listmodels.jsp
Got it?





At 14:21 26/1/2004, you wrote:
Are you using a html:form ... Tag for submitting the user request ?
and are you sure that you are mapping the action to the correct action
in the html:form action=? Did you implement the token check and
forgot about it, so that you actually are getting double form submit
exceptions ?

I have once had the problem that we implement a token test on form
submits to catch client double submits, well that's great when you
update data but when you just view data it's not needed! Cheers
Tommy

-Oprindelig meddelelse-
Fra: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sendt: 26. januar 2004 17:07
Til: [EMAIL PROTECTED]
Emne: Struts Actions Forms Actions - ?


 Well, sometimes I wonder if struts is really the best
framework to use in our application scope, it brought so many problems
then solutions...
 But now I think its too late.
 Here's my problem (another one in the huge, never-ending list)

I need to call the same Action from a link and a Form, this is simple
cuz the page rendered is the same, the diff. is that the first time
it's called
from a link it renders the form, and a list of default attributes, when
the
user submits the form (actually just change a select object) the list
is

changed (the select acts like a filter). Well, problem is its not
working.

when the user clicks on the link, it fowards to the default error page,
trying to debug, I've noticed that the controller never gets to the
desired action (probably cuz the form class, can not get the getter and
setter for
its properties, cuz in the first call, the form does not exists yet).
So

what can I do to solve this? If at least the controller where getting
to

the desired action, but it redirects the user before that.

Thanks

Vinicius


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]