facebook

Invalid JSP Syntax not detected by myeclipse (or tomcat)

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #198908 Reply

    pholister
    Member

    <jsp:useBean id=”searchbean” class=”org.test.class” scope=”request” />
    <jsp:setProperty name=”mybean” property=”*” />
    </jsp:useBean>

    Notice I used the shorthand /> to close off the <jsp:useBean> and left a dangling </jsp:useBean>

    This error was not caught by myeclipse.. and the JSP compiled fine with Tomcat and worked correctly. Problem is, that when I deployed on BEA 7.0 and 8.1 both gave me compile errors about a missing catch block.. usually that is caused by programming an extra }, but in this case, BEA blindly generated code for that </jsp:useBean> tag..

    I don’t see why this is not a syntax error at the JSP level in all environments… comments?

    #198919 Reply

    support-michael
    Keymaster

    I agree with you that I expected JSP validation to identify this situation as malformed content. I’m posting an issue in our tracking system for our development team to research.

    Thanks,

    Michael
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Invalid JSP Syntax not detected by myeclipse (or tomcat)

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