Home » Language IDEs » ServerTools (WTP) » Re: JSP Include files
Re: JSP Include files [message #97613] |
Mon, 02 May 2005 23:10 |
Eclipse User |
|
|
|
Originally posted by: btabenkin.verizon.net
Philip,
First of all thanks for an awesome product, I am really impressed by the
quality of the lattest code drops.
Here is what I found.
1. Setting break point in the *.inc files works fine, and the BP are hit
correctly.
2. Getting red underlines (errors) on referenced classes when editing.
3. The variable values are not visiable in the editor window, however
values are there in the variable window. ( I wonder if I need to compile
the JSP with -g extension)
Bit, this is progress, so thanks, it will help my project a great deal.
Phillip Avery wrote:
>
> /
> 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/
>
> Any extension should be fine from an editing standpoint (that isn't
> already reserved for another content type).
> I can't say I know the behavior of the app server "bulk compiler", but
> I would assume there's a way to
> specify the extension of your fragments.
>
> In order to edit your "inc" files with the JSP editor, you'll have to
> associate the content type w/ jsp or jsp fragment.
> The preference page for this is: window > preferences > general >
> editors > content types.
>
> /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?/
>
> It depends what the context is.
>
> If you have the editor open on the parent document, you should get
> content assist & as-you-type source validation
> for the included file.
>
> But if you have the included file open in the editor, you *won't* get
> content assist & validation for the variables from the *parent
> *document (since multiple documents can be its parent). We've talked
> about support for this before, but it's still not planned.
> Of course you should get CA and validation for the variables declared
> in the included file.
>
> Hope that answers your questions
>
> Thanks,
> -phil
>
> --- - - - - -
> Phillip Avery
> Structured Source Editor
> 919 254 8063
> pavery@us.ibm.com
>
>
>
> *BT <btabenkin@verizon.net>*
>
> 05/01/2005 03:08 PM
>
>
> To
> Phillip Avery/Raleigh/IBM@IBMUS
> cc
>
> Subject
> Re: JSP Include files
>
>
>
>
>
>
>
>
>
> 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: Mon Jul 14 07:04:40 EDT 2025
Powered by FUDForum. Page generated in 0.05972 seconds
|