facebook

Incorrect JSP template insert

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

    archerzz
    Member

    I’ve created a new template in “Window” –> “Preference” –> “MyEclipse” –> “JSP” –> “JSP Template”. I set the name to “<javascript”, set the contents to a declaration of “<script>xxxxxx</script>”, and set the Context to “All JSP”.
    What I expected is that after I input “<javascript” in the JSP editor and press the content assistant shortcut key, the “<javascript” will be replaced by “<script>xxx</script>”. Unfortunately, “<script>xxxxx</script>” is inserted but the “<javascript” is still remained. Now the codes are like “<javascript<script>xxxxx</script>”.
    Did I do something wrong?

    #273400 Reply

    Loyal Water
    Member

    You have uncovered a bug. You cannot use partial tags as name. Im going to file this for my dev team. For the time being, you can use a name like JScript instead of <javascript and that should do the trick.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Incorrect JSP template insert

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