[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [jdt-ui-dev] JSP debugging example
|
BTW, is the JSP rename refactoring participant part of that example
supposed to work for the Eclipse 3.0 M2 version? During my tryouts
this doesn't work and instead hangs/blocks the whole Eclipse IDE in
such a way, that you always have to kill completely the Eclipse
process in order to get out of that blocking.
It works for me with M2.
However, remember that javafamiliy is a sample in a very early stage.
It only handles the simplest case: it does not use a full-fledged JSP
parser and it only understands to rename unqualified types in
top-level jsp files.
Here is my setup:
- a project with a source folder "src" and a single class Date in the
default package
- the following JSP file at the top level of the project:
<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
<title>JSP is Easy</title>
</head>
<body bgcolor="white">
<jsp:useBean id="clock" class="Date" />
<h1>JSP is as easy as ...</h1>
<%-- Calculate the sum of 1 + 2 + 3 dynamically --%>
1 + 2 + 3 = <c:out value="${1 + 2 + 3}" />
<% if (clock.getHours() < 12) { %>
Good morning!
<% } else if (clock.getHours() < 17) { %>
Good day!
<% } else { %>
Good evening!
<% } %>
</body>
</html>
- be sure that the jsp file has been saved once before doing the refactoring.
"Renaming with participants" of class Date should update the "jsp:useBean" tag.
--andre