jsp editing [message #12362] |
Fri, 02 May 2003 16:17 |
Eclipse User |
|
|
|
Originally posted by: jknapp.dcti.com
When trying to edit JSP's both with and without the lomboz plugin I am
running into some odd behavior. When I get to a certain line in this example
from the wrox Beginning J2EE 1.4 book the editor starts to type backwards.
Is there a way to resolve this, is this a known issue?
This is the file I am trying to type in. I have commented where the editor
freaks out.
<%@ page errorPage="/WEB-INF/errorPage.jsp"
import="java.util.Iterator,Ch03.FaqCategories" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Java FAQ Welcome Page</title>
</head>
<body>
<h1>Java FAQ Welcome Page</h1>
Welcome to the Java FAQ
<%! FaqCategories faqs = new FaqCategories(); %>
Click a link below for answers to the given topic.
<%
Iterator categories = new faqs.getAllCategories();
while (categories.hasNext())
{
//********************************************************** *********
//After this %> the type starts typing from back to front.
//Has anyone seen this before and can tell me how to resolve it.
//********************************************************** **********
%>
<p><a href="/<%= replaceUnderscore(category) %>"<%= category %></a></p>
<%
}
%>
<%@ include file="/WEB-INF/footer.jspf" %>
</body>
</html>
<%!
public String replaceUndersore(String s)
{
return s.replace(' ','_');
}
%>
Thanks in Advance Jer
|
|
|
Powered by
FUDForum. Page generated in 0.04908 seconds