eclipse « Variable « JSP-Servlet Q&A

1. Eclipse JSP editing with WTP doesn't find variable and class definitions

I'm using Eclipse (3.6.1 on OS X) to write Java and JSP. Unfortunately, our JSPs contain a lot of Java -- I'd prefer to keep as much Java as possible in ...

2. How Eclipse can compile jsp fragments whose variables are declared in another file?

I want completion and compilation erros on eclipse for jsp fragments in eclipse. How can i have completion on test2.jnc for this files :

<%-- test1.jsp --%>
<%@ page language="java" %>
String ma_variable = ...