Quoting Hermod Opstvedt <[EMAIL PROTECTED]>:
> Hi
>
> The bottom of the page might be a clue :
>
> id:"null" | type:"javax.faces.component.UIViewRoot"
>
> Hermod
>
>
> -Opprinnelig melding-
> Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sendt: 7. mai 2006 01:48
> Til: Struts U
The reason is that the form bean is configed to be saved in session scope,
and the reset() method is not called when the form is submitted.
--
Wang Zeng
Good Morning Sander-
I found Log4j supports multiple implementations to log event activities
Information and binaries are available at
http://logging.apache.org/log4j/docs/
(2 cents from the wolf pack)
Sverige Altid
Martin Gainty
__
Disclaimer and co
王曾wang_zeng wrote:
The reason is that the form bean is configed to be saved in session scope,
and the reset() method is not called when the form is submitted.
Rizwan,
Meaning... you need to override the ActionForm reset method and set any
of your ActionForm booleans to false. Then you'll be a
Thanks for the responses guys! Please see end of message for follow up
question :)
So I get most of what you said about overriding the ActionForm. Since I
am using DynaValidatorForm I will need to extend that class.
Currently my form-bean definition is as follows
type="org.apache.stru
You could have the ActionForward mapped to an Action class in your
struts_config.xml file just as easily as a JSP, e.g. and then just
'return ActionForward("validation_failed")' if validation failed on
page1.
HTH,
-ed
On 5/6/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote:
Hi Ed
Thanks for an a
Jakub,
Why can't you reset the page attribute to the appropriate value in your
Action classes when validation fails.
-Richard
Richard Yee wrote:
Jakub,
I think the more elegant solution is to do the validations in the
ActionForm validate method and also use a hidden static 'page'
variable
Hi
I do not catch it:
I do not think this synax is ok.
The problem is that i use autovalidation.
If validation fails i am forwarded to another action specified by input
attribute.Let's call it action2.
But action2 is never executed because before its execute() method is
invoked.Form bean is
Hi Richard.
I can't because of autovalidation. Remember that all my action have the same
actionForm which is storred in session.
If validation fails i am forwarded to previous action but this action is not
even executed cause before this previous action can be invoked validation
process occurs. Pa
Rizwan Merchant wrote:
and in ExtendedDynaValidatorForm I would have a reset() method as follows
public void reset(ActionMapping mapping, HttpServletRequest request){
super.reset();
//not sure what goes here
}
So my next question is..how to I reset all the booleans in the form? Do
I hav
Thanks Rick.
I have 6 checkboxes in that session scope form and 5 of them behave fine
(I can set or unset them), only one of them acts funny and cannot be
reset to false.
Any idea why this would be happening..just curious!
Rick Reumann wrote:
Rizwan Merchant wrote:
and in ExtendedDynaValid
I have a tiles template:
Which is involved from titles-defs.xml:
On a jsp file
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-tiles" pre
On 5/7/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote:
Hi
I do not catch it:
> name="validation_failed" action="RepopulateAction"/>
>
I do not think this synax is ok.
The is inside of a block in your
struts-config.xml, the syntax is approximate and should be enough to
give you the idea.
T
Jakub,
Even though you are using autovalidation, don't you still have a
validate() method in your ActionForm that is getting called? Can you
alter the page attribute appropriately there (ie. if (errors.size() > 0)
page--;
-Richard
Jakub Milkiewicz wrote:
Hi Richard.
I can't because of autov
Rizwan,
Have you tried using a source level debugger to watch the value of the
boolean in the reset method?
You should also view the source of your page to make sure the checkbox
has the right name.
-Richard
Rizwan Merchant wrote:
Thanks Rick.
I have 6 checkboxes in that session scope fo
Hi Everyone,
I am using struts validatior to valiate my form on JSP and dont want to take
validation to my Action class.
I have a check box and a text box on my JSP. I want to validate text box to
have 19 characters when check box is not checked and 17 characters when
checkbox is checked.
How s
You can use the flow:
POPULATE1-> JSP1 -> ACTION1 -> POPULATE2 -> JSP2 -> ACTION2 -> POPULATE3 -> JSP3
All of the POPULATE actions have "validate=false" in the config. So, if
validation fails after JSP2 is submitted, it forwards to POPULATE2 (ACTION2 has
input="POPULATE2" set), which won't try to
Hi
I need your help.I have been getting this error for past 3 days and i have
not been able to trace the reason.
i m gettin ERROR 500:
javax.servlet.ServletException: Cannot retrieve definition for form bean
LoginForm on action /doLogin
org.apache.jasper.runtime.PageContextI
Rajan,
Your form name "LoginForm.do" and the action's form name of "LoginForm" do not
match exactly. I recommend you change
your form-bean from:
I expect the ".do you added to your form-bean name to be the problem:
to:
Regards,
David
-Original Message-
From: rajan pahuja [mailto:[
Hi,
Why are u naming ur form bean as LoginForm.do?? instead of LoginForm.
Keep both values of name attr in form bean and action tag same
Thanks
Pradyumna
-Original Message-
From: rajan pahuja [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 9:34 AM
To: user@st
Sandeep,
You can do complex validations in your ActionForm validate method. You
can also still invoke Validator validations by calling super.validate()
in your validation method if you are extending
|org.apache.struts.validator.action.ValidatorForm
I have found that there are many situations
you can also override the reset() method like this:
public void reset(ActionMapping mapping, HttpServletRequest request){
this.initialize();
}
in the dynamic form class ,there is a initialize() method which will clear
all the properties. The initialize() is called only when the bean is
in
Thank you very much!
This is what i was assking for ! :-)))
Stanislav
- Original Message Follows -
> On Fri, 2006-05-05 at 15:19 +0200, Stanislav wrote:
> > Hi!
> >
> > I want to do some check every time when java file "starts". How can i do
> > this? I think that is
> > posible with
23 matches
Mail list logo