1

Consider the page below. As in the image I have attached. enter image description here

Now my problem is that I have multiple clients accessing the same page as given below. Now consider that each client has their own requirement such as:-

  1. Name is mandatory for some clients not for others.
  2. Age is mandatory for some clients but not for others along with some specific validations like age<20 or age>30 etc.
  3. Search is also optional depending upon the clients.

Now I am searching for any such tools or technologies or methods that could help me to sort out the issue of dynamically validating the fields as well as hiding and showing the fields depending upon my clients. Please let me know any tools or technologies that can help in order to solve the above problem. I also heard about rule engine and templating .... Is it possible to work together with it to achieve the same. Please suggest.

4

1 回答 1

1

我不知道为什么 hibernate-validator 不能在这里工作。您可以根据需要通过实现接口并在需要时创建自己的验证注释来实现验证。这是一个服务器端验证顺便说一句。

在 JSP 的情况下显示或不显示某些内容是通过条件完成的:

c:when/c:choose 

例如,假设您使用的是 JSP。

于 2012-08-22T08:38:04.097 回答