Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
Problems moving Validation from View to external jsp Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems moving Validation from View to external jsp

    Hi all,

    I have followed Matt Raibles instructions on setting Commons Validator w/Spring MVC and I have it working... however, I then went to put in the code to move it to an external file which he does using a jsp. I followed the instructions and I seem to have lost my client side validation (server side is still working).

    Anyway... at the same time... IntelliJ is telling me that my "element is not closed" using the following code in my validator.jsp:

    <%@ page language="java" contentType="javascript/x-javascript" %>
    <%@ taglib prefix="v" uri="" %>

    <v:javascript dynamicJavascript="false" staticJavascript="true"/>

    I tried removing the slash at the end and adding </v:javascript> but it doesn't seem to make a difference.

    The only thing I could think of is that I'm using the .2 jar vs the .1 jar which is what Matt was using at the time of his writing.

    Anyone have a clue as to how to fix this and if not... at least clue me into how I go about checking why IntelliJ thinks that I'm not closing my element properly?


  • #2
    Found the problem

    I had read something about this but the problem didn't seem to be the same... but I guess I didn't read it carefully enough.

    Anyway... all I had to do was move the validator bean xml code into the Main ApplicationContext xml file of Spring. It then worked.

    However, I haven't found the answer to why IntelliJ thinks I'm not closing the element in v:javascript tag... strange.