Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Imports in include files
Imports in include files [message #77468] Sat, 26 February 2005 18:31 Go to next message
Jason Calabrese is currently offline Jason CalabreseFriend
Messages: 11
Registered: July 2009
Junior Member
I'm using eclipse 3.1M5 with wst 1.0M3.

Is there anything special you have to do to get the jsp editor to look for
imports in include files?

For some of my jsp files the jsp editor finds the imports in the include
files, but for other files it doesn't.
Re: Imports in include files [message #77490 is a reply to message #77468] Sat, 26 February 2005 19:05 Go to previous messageGo to next message
Jason Calabrese is currently offline Jason CalabreseFriend
Messages: 11
Registered: July 2009
Junior Member
> I'm using eclipse 3.1M5 with wst 1.0M3.
>
> Is there anything special you have to do to get the jsp editor to look for
> imports in include files?
>
> For some of my jsp files the jsp editor finds the imports in the include
> files, but for other files it doesn't.

I found the problem.

In the include file the imports were formatted like this:
<%@ page import="java.io.*" %><%@
page import="java.net.*" %><%@
page import="java.util.*" %><%@
page import="java.sql.*" %>

The problem was fixed by formatting the imports like this:
<%@page import="java.io.*" %>
<%@page import="java.net.*" %>
<%@page import="java.util.*" %>
<%@page import="java.sql.*" %>

I bet there there is a regex somewhere that need to be tweeked.
Re: Imports in include files [message #77533 is a reply to message #77490] Sun, 27 February 2005 07:53 Go to previous message
Eclipse UserFriend
Originally posted by: jmordax.terra.es

This is a multi-part message in MIME format.
--------------040904040507040401090908
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Jason Calabrese wrote:

>>I'm using eclipse 3.1M5 with wst 1.0M3.
>>
>>Is there anything special you have to do to get the jsp editor to look for
>>imports in include files?
>>
>>For some of my jsp files the jsp editor finds the imports in the include
>>files, but for other files it doesn't.
>>
>>
>
>I found the problem.
>
>In the include file the imports were formatted like this:
><%@ page import="java.io.*" %><%@
> page import="java.net.*" %><%@
> page import="java.util.*" %><%@
> page import="java.sql.*" %>
>
>The problem was fixed by formatting the imports like this:
><%@page import="java.io.*" %>
><%@page import="java.net.*" %>
><%@page import="java.util.*" %>
><%@page import="java.sql.*" %>
>
>I bet there there is a regex somewhere that need to be tweeked.
>
Please, open a bug at: https://bugs.eclipse.org/bugs/ so development can
investigate the problem.

Thanks,

Chemi.

--------------040904040507040401090908
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Jason Calabrese wrote:<br>
<blockquote cite="midcvqn7h$puj$2@www.eclipse.org" type="cite">
<blockquote type="cite">
<pre wrap="">I'm using eclipse 3.1M5 with wst 1.0M3.

Is there anything special you have to do to get the jsp editor to look for
imports in include files?

For some of my jsp files the jsp editor finds the imports in the include
files, but for other files it doesn't.
</pre>
</blockquote>
<pre wrap=""><!---->
I found the problem.

In the include file the imports were formatted like this:
&lt;%@ page import="java.io.*" %&gt;&lt;%@
page import="java.net.*" %&gt;&lt;%@
page import="java.util.*" %&gt;&lt;%@
page import="java.sql.*" %&gt;

The problem was fixed by formatting the imports like this:
&lt;%@page import="java.io.*" %&gt;
&lt;%@page import="java.net.*" %&gt;
&lt;%@page import="java.util.*" %&gt;
&lt;%@page import="java.sql.*" %&gt;

I bet there there is a regex somewhere that need to be tweeked.</pre>
</blockquote>
Please, open a bug at: <a class="moz-txt-link-freetext" href="https://bugs.eclipse.org/bugs/">https://bugs.eclipse.org/bugs/</a> so development
can investigate the problem.<br>
<br>
Thanks,<br>
<br>
&nbsp;&nbsp;&nbsp; Chemi.<br>
</body>
</html>

--------------040904040507040401090908--
Previous Topic:JSP, security and MySQL
Next Topic:Configure Eclipse for Tomcat5.0
Goto Forum:
  


Current Time: Wed Jul 17 20:46:01 GMT 2024

Powered by FUDForum. Page generated in 0.03304 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top