- This topic has 3 replies, 2 voices, and was last updated 20 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
aka3MemberI have installed 3.7.101 on a 3M9 eclipse platform. (not RC1)
1) JSP editor will not code complete if i have used any taglib declarations like the taglibs that New JSP page inserts it self….
a) if I put a <% …..%> before the taglib declaration it will perform code completion in in this scriplet.
b) If I put a <% ….%> after the taglib declaration it will not perform any code completion … it will beep at me 🙂<%@ taglib uri=”http://jakarta.apache.org/struts/tags-bean” prefix=”bean” %>
2) JSP editor will not suggest any of the beans, as was described in the
tutorial.3) Code completion for HTML tags seems to work.
4) Code completion for <jsp: seems to work.What can I be doing wrong ?
5) does the JSP editor support beans in general, can it read the tld files and give support for my own tags ?
Riyad KallaMember1) JSP editor will not code complete if i have used any taglib declarations like the taglibs that New JSP page inserts it self….
I was not able to reproduce this problem, please see my example below and my marks where autocomplete worked.
<% //request.| <-- AUTOCOMPLETE WORKS HERE. %> <%@ page language="java"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %> <% //request.| <-- AUTOCOMPLETE WORKS HERE %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html:html locale="true"> <head> <html:base /> <title>MyJsp.jsp</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> </head> <body> <% //request.| <-- AUTOCOMPLETE WORKS HERE %> </body> </html:html>
2) JSP editor will not suggest any of the beans, as was described in the
tutorial.What is your usage? Which sample are you talking about? Please give more details about what you are trying to do.
5) does the JSP editor support beans in general, can it read the tld files and give support for my own tags ?
These are two different questions, I don’t know what you mean by “support beans”, if you define a variable in your page, you can get autocomplete in scriplets for that variable, but not in taglibs.
And yes the JSP editor supports custom taglibs just like it does with Struts taglibs and any other taglibs you wish to use or devleop.
aka3MemberHi Riyad
Thank you very much for the quick and relevant responseNow I have downloaded Eclipse 3 RC1 and installed EnterpriseWorkbenchInstaller_030800Beta1.exe on this version.
I still get the same problem !!!
I have tried the same thing as you ……………[BEGINNING OF FILE..]====================================
<%@ page language=”java”%>
<%
System.out.println();
response. // here it works
%>
<jsp:include page=”xyz.jsp”/>
<jsp:forward page=”adfasf”/>
<%
response. // here it works
%>
<jsp:useBean id=”currency” class=”java.util.Currency”scope=”session”>
<jsp:setProperty name=”currency” property=”locale”
value=”<%= request.getLocale() %>”/>
</jsp:useBean>
<%
response. // Her it doesnt work and the editor beeps at me !!!
%>
…
[EOF]====================================It seems to me that a fail in tag usage can cause the code completion to fail.
Furthere more I do not get error marks in the left margin when I do syntex errors.
Is there any test I can run in order to see if I have installed the software correct ??Now I belive I have verified that it is not RC1 versus M9
I have made a project based on the J2EE /web module project
and simply started adding a jsp file in the webroot directory
could this be wrong ?
Riyad KallaMemberVerify that you are using our JSP Editor, you might have lomboz installed. RIght click on your JSP file and go to “Open With” and then “MyEclipse JSP Editor”. Also make sure that you have JSP validation turned on: Window > Preferences > MyEclipse > Editors > JSP/HTML > “Compiler JSPs”, and also make sure you have autobuild turned on: Window > Preferneces > Workbench > “Perform build automatically on resource modification”.
A note you should be aware of is that autocomplete is currently VERY sensative when it comes to files with errors in them. For example, the file you gave above, you might want to comment out your two previous “response.” lines, before trying the 3rd time.
I have made a project based on the J2EE /web module project
and simply started adding a jsp file in the webroot directory
could this be wrong ?Nope, this sounds right to me.
-
AuthorPosts