Announcement Announcement Module
Collapse
No announcement yet.
Can I trigger ON and OFF the validations Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can I trigger ON and OFF the validations

    I have my controller extends MultiActionController....

    public class ChooseAdFromLibraryController extends MultiActionController
    {
    public ModelAndView saveToMyAdList(HttpServletRequest request, HttpServletResponse response)
    throws Exception
    {
    .......... some code here
    }

    public ModelAndView deleteFromMyList(HttpServletRequest request, HttpServletResponse response)
    throws Exception
    {
    .......... some code here
    }

    }


    I am using validation.xml and validator-rules.xml for server side validations

    in my jsp i have two submit buttion... 1. saveToMyList ( hits the corresponding method in the controller) ..2. deleteFromMyList (hits the corresponding method in the controller)

    I want to run the server side validations when I click saveToMyList and i dont want to run validations when i click deleteFromMyList

    any ideas...
    Thanks

  • #2
    Hmm, maybe turn them into two seperate controllers? It seems your "workflow" for save and delete are different enough to justify splitting out...

    Just my not very humble, but pretty ignorant all the same opinion

    Comment

    Working...
    X