- This topic has 3 replies, 2 voices, and was last updated 20 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
aka3MemberIn the code that I show below
you will find that I have misspelled the class in the jsp:useBean
aka.MyBeanxx does not exist. I should write aka.MyBean as
the import statement also indicatesProblem:
1) I get no red sourceline mark that I have misspelled aka.MyBeanxx
2) When I compile from the project root .. Yes my .JSP file is flagged
3) When I try to use some autocompletion as shown under the useBean
statements, it turns out that
X) when no errors in spelling of the class –> autocompletion works
Y) when errors in spelling of the class –> autocompletion BEEPS me.best regards
Anders Kr. Andersen<%@ page language=”java”%>
<%@ page import=”aka.MyBean” %>
<%
System.out.println(“test”);
%>
<H1>TEXT FROM MYBEAN </H1>
<jsp:useBean id=”mybean” class=”aka.MyBeanxx” scope=”request”>
<jsp:setProperty name=”mybean” property=”msg” value=”this is text”/><H2><jsp:getProperty name=”mybean” property=”msg”/></H2>
</jsp:useBean>
<%
request.
%>
Riyad KallaMember1) I get no red sourceline mark that I have misspelled aka.MyBeanxx
This is strange and sounds like an installation problem. Did you install the Eclipse SDK or JDT? If you just installed the Eclipse ‘platform’ that might help explain what is going on.
X) when no errors in spelling of the class –> autocompletion works
Y) when errors in spelling of the class –> autocompletion BEEPS me.Unfortunately this is a known weakness with the JSP editor, it breaks when the JSP file being edited has errors in it. We are working to take care of this in a future release.
aka3MemberAgain thanks for the rapid response
Yes the coloring is strange, Now after I completed the tutorials I suddently started working …..
Riyad KallaMemberNow after I completed the tutorials I suddently started working …..
That IS strange… atleast I am glad to hear you are working now. Let us know if you run into any more trouble.
-
AuthorPosts