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?