Enter the verification before and after the page

xiaoxiao2021-03-06  60

Just wrote, lost, just want

From Struts 1.1, support your front and back checks, let's get started. . .

1) Add in JSP to let Struts join the appropriate check JavaScript code

4) in the action in public ActionForward addTransferSearch (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {// some code DynaActionForm transferForm = (DynaActionForm) form; // must cast ActionErrors errors = transferForm.validate (mapping, request); // Check this // rest code}

In this general sense of "front and back" checks, in other posts, there is also a parameter check for Business Delegate and EJB, this is not repeated.

- == Welcome everyone with the topic of this article and interested, I discuss issues == -

转载请注明原文地址:https://www.9cbs.com/read-112472.html

New Post(0)