Home » Language IDEs » ServerTools (WTP) » JSP Include files
JSP Include files [message #94668] |
Sun, 24 April 2005 23:36  |
Eclipse User |
|
|
|
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 #94984 is a reply to message #94728] |
Tue, 26 April 2005 05:25   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #96813 is a reply to message #95064] |
Sun, 01 May 2005 15:08   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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>");
>>> }
>>> ...
>>>
>>>
>>>
>>>
>>>
>>>
|
|
|
Goto Forum:
Current Time: Wed Jul 16 05:24:12 EDT 2025
Powered by FUDForum. Page generated in 0.32307 seconds
|