Results 1 to 2 of 2

Thread: Problems moving Validation from View to external jsp

  1. #1

    Default 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="http://www.springmodules.org/tags/commons-validator" %>

    <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?


    Thanks,
    Steve

  2. #2

    Default 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.

    Steve

Similar Threads

  1. Replies: 9
    Last Post: Nov 1st, 2005, 10:36 PM
  2. Replies: 1
    Last Post: Oct 14th, 2005, 12:08 PM
  3. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  4. view problems in a jsp page
    By psychorav in forum Web
    Replies: 7
    Last Post: May 13th, 2005, 09:00 PM
  5. Content Provider vs View Model
    By Martin Kersten in forum Swing
    Replies: 21
    Last Post: Mar 10th, 2005, 02:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •