Did you set the logging level to DEBUG? Try putting validate="true" in your action element in struts-config.xml. Can you see if your execute method in your Action class is getting executed in your debugger.
-Richard
At 06:50 PM 4/24/2004, you wrote:
Hi neil:
Niall Pemberton wrote:
>OK, so your submitting your form and its calling the forms validate()
>method - whats happens next, is it getting validation errors and returing to
>your input "/test/app/appCreate.jsp" or is it carrying on and running your
>action "AppCreateAction" - if its carrying on and executing the Action,
>where does the Action forward to when its finished?
>
originally(without validation), the form data goes to the form bean, and then passed to action, and finnaly redirects to the page named "success"
or "fail" according to the execution status. SIMPLY EVERYTHING'S FINE.
Well, with the validation added, I can't see any validation error from the server side, it simply displays a blank page after clicking the submit button, and it's seems that the biz logic is NOT executed. (found only <html></html, after opening the html source).
Thanks.
> >Niall > >----- Original Message ----- >From: <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Saturday, April 24, 2004 9:35 PM >Subject: urgent problem about validator !!! > > >>hello, >> I am working on a struts based web application, which requires > >validation both on > >>client side and server side. There's an action entry in the > >struts-config.xml here: > >> <action path="/appCreateApp" validate="true" >>+type="com.embisoft.dvb.server.actions.app.AppCreateAction" > >scope="request" name="appCreateAppForm" > >>+input="/test/app/appCreate.jsp"/> >> >> also it's corresponding form bean: >> <form-bean name="appCreateAppForm" > >type="com.embisoft.dvb.server.actions.app.AppCreateForm"> > >> <form-property name="appId" > >type="java.lang.String"/> > >> <form-property name="appName" type="java.lang.String"/> >> <form-property name="appVersion" type="java.lang.String"/> >> <form-property name="pathname" type="java.lang.String"/> >> </form-bean> >> >> >> The form bean AppCreateForm extends the ValidatorForm. >> the problem is that whenever the form is submited(whether valid or not), > >it always displays a > >>blank page. When I try to overwrite the validate method in the > >AppCreateForm and print a debug message, > >>I could certainly see it in the console, which means the validate method > >is executed. > >> So, what's the problem ? Thank you very much! >> >>Yours, >>Ding Lei <[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]