Hi Sunny,
Now I dont get any error also when I my form wont redirect to my original
page when I dont enter any value. Here is my validate()

    public ActionErrors validate(
        ActionMapping mapping,
        HttpServletRequest request) {

        ActionErrors errors = new ActionErrors();
        if(getTheText().equals(""))
        {
            errors.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("error.text.required"));

                }

        return errors;

    }

And this is my struts-config.xml file
    <action
                path="/upload-submit"
                type="upload.UploadAction"
                name="uploadForm"
                scope="request"
                validate="true"
                input="/upload/upload.jsp">
      <forward name="failure" path="/upload/upload.jsp" />
      <forward name="display" path="/upload/display.jsp" />
    </action>


Why do I get a blank page?

Uma

-----Original Message-----
From: Sunny [mailto:[EMAIL PROTECTED]
Sent: Friday, December 24, 2004 9:17 AM
To: Struts Users Mailing List
Subject: Re: NullPointerException



Hey Uma,
 Kindly attach your logs when you face any exceptions. That'll really
help in debugging.

regards,
Sunny.

uma.k wrote:

>Hi,
>The solution is perfect. I forgot initialization. Now I dont get any error
>but nothing is displayed when the error is actually to be thrown. I get
>blank page and it doesn't go the actual page and show the error. Here is my
>struts-config.xml
>
>    <action
>               path="/upload-submit"
>               type="upload.UploadAction"
>               name="uploadForm"
>               scope="request"
>               validate="true"
>               input="/upload/upload.jsp">
>      <forward name="failure" path="/upload/upload.jsp" />
>      <forward name="display" path="/upload/display.jsp" />
>    </action>
>
>Any ideas?
>
>Uma
>

---------------------------------------------------------------------
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]

Reply via email to