facebook

JSP formating with scriplets

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #302395 Reply

    dignatenko
    Member

    Hello,

    MyEclipse cannot perform rigth formating of JSP page with Java scriplets.
    Before formatting

    <div>
    
    <%!
    
    public static class Link
    {
        private String url;private String title;
        
        public Link(String url,    String title) {this.url = url;this.title = title;
        }
    
        public void setUrl    (String url){
            this.url = url;
        }
    
        public String getUrl()
        {
            return url;
        }
    
        public void setTitle(String title) {
            this.title = title;
        }
    
        public String getTitle() {
            return title;
        }
        
        @Override
        public String toString() {
            return "<a href='" + url + "'>" + title + "</a>";
        }
    }
    
    %>
    </div>

    after formatting

    
    <div>
    
        <%!public static class Link {
            private String url;
            private String title;
    
            public Link(String url, String title) {
                this.url = url;
                this.title = title;
            }
    
            public void setUrl(String url) {
                this.url = url;
            }
    
            public String getUrl() {
                return url;
            }
    
            public void setTitle(String title) {
                this.title = title;
            }
    
            public String getTitle() {%>
    </div>
    

    The code after formating doesn’t compilable!
    Is it OK?

    #302431 Reply

    dignatenko,

    Thank you for bringing this issue to our notice. I am able to reproduce the same with MyEclipse7.5.
    Can you copy and paste your installation details. You can get them from – MyEclipse > Installation Summary > Installation Details

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP formating with scriplets

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