facebook

MyEclipse found errors in jsp tags [Closed]

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

    Frintrop
    Member
    
    <bean:define id="bean1" name="anybean"/>
    <bean:message key="<%="label.anylabel"+bean1%>"/>
    

    using the above code, myeclipse will report :

    expected %>”

    the code is not very fine, but will work …..

    #210304 Reply

    No Operation
    Member

    Your code does not conform to the spec. Try this:

    <bean:message key="<%=\"label.anylabel\"+bean1%>"/> 

    So the message tries to explain the %> is missing behind the first “. Well, a better mark of the error location would be helpful.

    The spec requires an explicit quoting of “:

    RTAttributeValueDouble::= ( ( QuotedChar – ‘”’ )* -(
    ( QuotedChar – ’”’ )* ’%>’ )

    If some container works with your code, the container is buggy.

    NOP

    #210315 Reply

    Riyad Kalla
    Member

    Frintrop, did NOP’s suggestion help?

    #210446 Reply

    Frintrop
    Member

    yes. it works.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: MyEclipse found errors in jsp tags [Closed]

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