facebook

[Closed] Java validation within JSP <% %>

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #254729 Reply

    rogue_dev
    Member

    If I have a method which has a signature of

    String myMethod(MyObject obj)

    then in a JSP page the following should cause a validation error

    <%= myClass.myMethod("ohoh") %>

    as I am trying to pass in a String not a MyObject, right?

    I have validation turned on everywhere I could find it, but I do not get errors.

    Ecplise 3.1.0, Java 1.5, MyEcplise 4.1.0GA
    (I will be upgrading to 3.2 and 5.0 once 5.0 goes GA)

    #254774 Reply

    Riyad Kalla
    Member

    Make sure you have your JDK’s /bin directory in your System path. Before MyEclipse 5.0, the “javac” Executable from your JDK install is required to perform the JSP validation step.

    #254892 Reply

    rogue_dev
    Member

    @support-rkalla wrote:

    Make sure you have your JDK’s /bin directory in your System path. Before MyEclipse 5.0, the “javac” Executable from your JDK install is required to perform the JSP validation step.

    That was it.

    And it even follows fragments, though that takes a manual validation on the directory where all the pages are.

    Thanks!

    #254937 Reply

    rogue_dev
    Member

    This message has not been recovered.

    #254938 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] Java validation within JSP <% %>

You must be logged in to post in the forum log in