Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » JSP Include files
JSP Include files [message #94668] Sun, 24 April 2005 23:36 Go to next message
Eclipse UserFriend
I've been seeing bunch of problems with include files. Anyone else having
problems?

One very annoying problem is that the editor doesn't know about variable
that are defined in an include file.

It looks like there is an open bug for this, but I'm not sure that it's the
same problem that I'm seeing.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=71223
Re: JSP Include files [message #94728 is a reply to message #94668] Mon, 25 April 2005 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pavery.us.ibm.com

Hi Jason,

a couple of questions:

What is they syntax of the include you're using in your JSP (and the
path to the included JSP)?
Also, what type of project are you in?
Do you have a simple example to demonstrate this problem?

Thanks,
-phil

Jason Calabrese wrote:
> I've been seeing bunch of problems with include files. Anyone else having
> problems?
>
> One very annoying problem is that the editor doesn't know about variable
> that are defined in an include file.
>
> It looks like there is an open bug for this, but I'm not sure that it's the
> same problem that I'm seeing.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=71223
Re: JSP Include files [message #94787 is a reply to message #94728] Mon, 25 April 2005 12:34 Go to previous messageGo to next message
Eclipse UserFriend
> What is they syntax of the include you're using in your JSP (and the
> path to the included JSP)?

<%@ include file="../inc/header.jsp" %>


> Also, what type of project are you in?

I'm still using standard java projects since I don't see anyway to convert
an existing project/

> Do you have a simple example to demonstrate this problem?

Not right now, but I'll try to put something together later today.
Re: JSP Include files [message #94984 is a reply to message #94728] Tue, 26 April 2005 05:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: benedikt.wismans.ihb.uni-bamberg.de

> Do you have a simple example to demonstrate this problem?

Maybe I can give you some example. I am on 3.1, Linux MDK 10.1, Dynamic Web
Project.

I have a jsp-file portal.jsp with starts with

<%@ page import="java.sql.Connection" %>
....
<%@ page import="java.sql.ResultSet" %>

<%@ include file="/lib/jsp/config.jsp" %>
<%@ include file="/lib/jsp/format.jsp" %>
<%@ include file="/lib/jsp/util.jsp" %>

<%
// void main()
//
HTML_CreateHeader("Intranetportal", out);
//
// Javascript-Bibliotheken SIS
HTML_LibJS(cLibJSPathSIS,"config.js", out);
....

First issue is, that alle the SQL-includes are marked as not needed, because
they are not needed in portal.jsp but in util.jsp, format.jsp and
config.jsp.

Next issue: the functions HTML_CreateHeader and HTML_LibJS, defined in
format.jsp, and constant cLibJSPathSIS, defined in config.jsp, are marked
red (not found).

Its not really a problem, because the jsp file works fine, its just annoying
to see everything marked yellow and red.


Benedikt



fragment from format.jsp:

<%!
void HTML_CreateHeader(String sTitle, javax.servlet.jsp.JspWriter out)
throws java.io.IOException {
//
out.println("<html>");
out.println("<head>");
out.println("<meta name=\"author\" content=\"Benedikt Wismans\">");
...
out.println("<title>"+sTitle+"</title>");
out.println("</head>");
}

....
Re: JSP Include files [message #95064 is a reply to message #94984] Mon, 25 April 2005 22:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pavery.us.ibm.com

Ah this example does look the same as:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=71223

I was just wondering if it was something else (I thought Jason has said
a "../path/to/file.jsp" wasn't working)

I agree that the squiggles are annoying, and there is actually loss
of function (eg. no content assist for classes defined in the included
files).

Hopefully we can address this issue soon (probably by using a
WebURIResolver in JSPTranslator).

Thanks
-phil

Benedikt Wismans wrote:
>>Do you have a simple example to demonstrate this problem?
>
>
> Maybe I can give you some example. I am on 3.1, Linux MDK 10.1, Dynamic Web
> Project.
>
> I have a jsp-file portal.jsp with starts with
>
> <%@ page import="java.sql.Connection" %>
> ...
> <%@ page import="java.sql.ResultSet" %>
>
> <%@ include file="/lib/jsp/config.jsp" %>
> <%@ include file="/lib/jsp/format.jsp" %>
> <%@ include file="/lib/jsp/util.jsp" %>
>
> <%
> // void main()
> //
> HTML_CreateHeader("Intranetportal", out);
> //
> // Javascript-Bibliotheken SIS
> HTML_LibJS(cLibJSPathSIS,"config.js", out);
> ...
>
> First issue is, that alle the SQL-includes are marked as not needed, because
> they are not needed in portal.jsp but in util.jsp, format.jsp and
> config.jsp.
>
> Next issue: the functions HTML_CreateHeader and HTML_LibJS, defined in
> format.jsp, and constant cLibJSPathSIS, defined in config.jsp, are marked
> red (not found).
>
> Its not really a problem, because the jsp file works fine, its just annoying
> to see everything marked yellow and red.
>
>
> Benedikt
>
>
>
> fragment from format.jsp:
>
> <%!
> void HTML_CreateHeader(String sTitle, javax.servlet.jsp.JspWriter out)
> throws java.io.IOException {
> //
> out.println("<html>");
> out.println("<head>");
> out.println("<meta name=\"author\" content=\"Benedikt Wismans\">");
> ...
> out.println("<title>"+sTitle+"</title>");
> out.println("</head>");
> }
>
> ...
>
>
>
>
>
>
Re: JSP Include files [message #95278 is a reply to message #94787] Tue, 26 April 2005 23:41 Go to previous messageGo to next message
Eclipse UserFriend
I've been trying to create a simple example that reproduces the errors I'm
seeing in my application, but so far I can't break the jsp editor.

I guess there is something extra weird in my application that is causing
problems.

Jason Calabrese wrote:

>> What is they syntax of the include you're using in your JSP (and the
>> path to the included JSP)?
>
> <%@ include file="../inc/header.jsp" %>
>
>
>> Also, what type of project are you in?
>
> I'm still using standard java projects since I don't see anyway to convert
> an existing project/
>
>> Do you have a simple example to demonstrate this problem?
>
> Not right now, but I'll try to put something together later today.
Re: JSP Include files [message #95842 is a reply to message #95278] Wed, 27 April 2005 21:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pavery.us.ibm.com

Jason Calabrese wrote:
> I've been trying to create a simple example that reproduces the errors I'm
> seeing in my application, but so far I can't break the jsp editor.
>
> I guess there is something extra weird in my application that is causing
> problems.
>
> Jason Calabrese wrote:
>
Thanks for trying to track it down Jason.
If you figure out what it is, definitely open a bug.
It's helpful since somtimes it's hard for us to think of these "special"
test cases (that users seem to find quite easily =)

-phil


>
>>>What is they syntax of the include you're using in your JSP (and the
>>>path to the included JSP)?
>>
>><%@ include file="../inc/header.jsp" %>
>>
>>
>>>Also, what type of project are you in?
>>
>>I'm still using standard java projects since I don't see anyway to convert
>>an existing project/
>>
>>
>>>Do you have a simple example to demonstrate this problem?
>>
>>Not right now, but I'll try to put something together later today.
>
>
Re: JSP Include files [message #96813 is a reply to message #95064] Sun, 01 May 2005 15:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: btabenkin.verizon.net

I have 2 questions:

1. Should the include file be called something.jsp? If you do this, the
app server bulk compiler might fail since some of the include files are
just fragments. We use "inc", is that ok
2. I posted a question earlier, but jut to reiterate, should I expect
edit of the include files to allow variable inspection and debug support?
phil avery wrote:
> Ah this example does look the same as:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=71223
>
> I was just wondering if it was something else (I thought Jason has said
> a "../path/to/file.jsp" wasn't working)
>
> I agree that the squiggles are annoying, and there is actually loss
> of function (eg. no content assist for classes defined in the included
> files).
>
> Hopefully we can address this issue soon (probably by using a
> WebURIResolver in JSPTranslator).
>
> Thanks
> -phil
>
> Benedikt Wismans wrote:
>
>>> Do you have a simple example to demonstrate this problem?
>>
>>
>>
>> Maybe I can give you some example. I am on 3.1, Linux MDK 10.1,
>> Dynamic Web
>> Project.
>>
>> I have a jsp-file portal.jsp with starts with
>>
>> <%@ page import="java.sql.Connection" %>
>> ...
>> <%@ page import="java.sql.ResultSet" %>
>>
>> <%@ include file="/lib/jsp/config.jsp" %>
>> <%@ include file="/lib/jsp/format.jsp" %>
>> <%@ include file="/lib/jsp/util.jsp" %>
>>
>> <%
>> // void main()
>> //
>> HTML_CreateHeader("Intranetportal", out);
>> //
>> // Javascript-Bibliotheken SIS
>> HTML_LibJS(cLibJSPathSIS,"config.js", out);
>> ...
>>
>> First issue is, that alle the SQL-includes are marked as not needed,
>> because
>> they are not needed in portal.jsp but in util.jsp, format.jsp and
>> config.jsp.
>>
>> Next issue: the functions HTML_CreateHeader and HTML_LibJS, defined in
>> format.jsp, and constant cLibJSPathSIS, defined in config.jsp, are marked
>> red (not found).
>>
>> Its not really a problem, because the jsp file works fine, its just
>> annoying
>> to see everything marked yellow and red.
>>
>>
>> Benedikt
>>
>>
>>
>> fragment from format.jsp:
>>
>> <%!
>> void HTML_CreateHeader(String sTitle, javax.servlet.jsp.JspWriter out)
>> throws java.io.IOException {
>> //
>> out.println("<html>");
>> out.println("<head>");
>> out.println("<meta name=\"author\" content=\"Benedikt
>> Wismans\">");
>> ...
>> out.println("<title>"+sTitle+"</title>");
>> out.println("</head>");
>> }
>> ...
>>
>>
>>
>>
>>
>>
Re: JSP Include files [message #97627 is a reply to message #96813] Mon, 02 May 2005 23:10 Go to previous message
Eclipse UserFriend
Originally posted by: btabenkin.verizon.net

BT wrote:
> I have 2 questions:
>
> 1. Should the include file be called something.jsp? If you do this, the
> app server bulk compiler might fail since some of the include files are
> just fragments. We use "inc", is that ok
> 2. I posted a question earlier, but jut to reiterate, should I expect
> edit of the include files to allow variable inspection and debug support?
> phil avery wrote:
>
>> Ah this example does look the same as:
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=71223
>>
>> I was just wondering if it was something else (I thought Jason has
>> said a "../path/to/file.jsp" wasn't working)
>>
>> I agree that the squiggles are annoying, and there is actually loss
>> of function (eg. no content assist for classes defined in the included
>> files).
>>
>> Hopefully we can address this issue soon (probably by using a
>> WebURIResolver in JSPTranslator).
>>
>> Thanks
>> -phil
>>
>> Benedikt Wismans wrote:
>>
>>>> Do you have a simple example to demonstrate this problem?
>>>
>>>
>>>
>>>
>>> Maybe I can give you some example. I am on 3.1, Linux MDK 10.1,
>>> Dynamic Web
>>> Project.
>>>
>>> I have a jsp-file portal.jsp with starts with
>>>
>>> <%@ page import="java.sql.Connection" %>
>>> ...
>>> <%@ page import="java.sql.ResultSet" %>
>>>
>>> <%@ include file="/lib/jsp/config.jsp" %>
>>> <%@ include file="/lib/jsp/format.jsp" %>
>>> <%@ include file="/lib/jsp/util.jsp" %>
>>>
>>> <%
>>> // void main()
>>> //
>>> HTML_CreateHeader("Intranetportal", out);
>>> //
>>> // Javascript-Bibliotheken SIS
>>> HTML_LibJS(cLibJSPathSIS,"config.js", out);
>>> ...
>>>
>>> First issue is, that alle the SQL-includes are marked as not needed,
>>> because
>>> they are not needed in portal.jsp but in util.jsp, format.jsp and
>>> config.jsp.
>>>
>>> Next issue: the functions HTML_CreateHeader and HTML_LibJS, defined in
>>> format.jsp, and constant cLibJSPathSIS, defined in config.jsp, are
>>> marked
>>> red (not found).
>>>
>>> Its not really a problem, because the jsp file works fine, its just
>>> annoying
>>> to see everything marked yellow and red.
>>>
>>>
>>> Benedikt
>>>
>>>
>>>
>>> fragment from format.jsp:
>>>
>>> <%!
>>> void HTML_CreateHeader(String sTitle, javax.servlet.jsp.JspWriter out)
>>> throws java.io.IOException {
>>> //
>>> out.println("<html>");
>>> out.println("<head>");
>>> out.println("<meta name=\"author\" content=\"Benedikt
>>> Wismans\">");
>>> ...
>>> out.println("<title>"+sTitle+"</title>");
>>> out.println("</head>");
>>> }
>>> ...
>>>
>>>
>>>
>>>
>>>
>>>
Previous Topic:Re: JSP Include files
Next Topic:Using WTP for JSP debuging
Goto Forum:
  


Current Time: Wed Jul 16 05:24:12 EDT 2025

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

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

Back to the top