Skip to Content
author's profile photo Former Member
Former Member

To display the same page when an error occurs.

Hi,

I need to display the same page when an error occurs in the page. For example, I am validating a few fields in a page. If an error occurs, then same page is to be displayed.

I am presently using MVC type programming.

Thanks in advance.

Regards,

Vara

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 12, 2004 at 04:50 AM

    Are they form fields? Do you want to cancel submit when a error in input field detected?

    set <b>htmlbevent.cancelSubmit = true</b> in your validation javascript.

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Thanks for the reply. You solution would work if I were validating before submitting the application, that validating at Java Script level. But I am validating the data in model class method, which is called at DO_HANDLE_DATA. Anyway, I thank for your reply.

      Regards,

      Vara

  • Posted on Dec 13, 2004 at 06:42 AM

    Hi,

    you can use different types of validation:

    *) Client-Side using javascript:

    if you do it that way, you don't have to change the page being displayed

    *) Server-Side:

    Depending on the return status of your validation, just call the controller/view containing your input form again, many different ways to do so (depending on whether you use a model class or not, if you use data binding, ...)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.