I'm getting exactly the same thing. How did you create you jsp file? I could not find a specific jsp file on the File/New so I created a generic file and named it guestbook.jsp. This may be the problem, but I could not find a way around it.
On Mar 2, 5:43 pm, "marsh...@marshallfarrier.com" <marsh...@marshallfarrier.com> wrote: > another thing that might be helpful for diagnostics of my > guestbook.jsp following the java tutorial: Eclipse isn't color coding > anything or making use of its programmer-friendly features on the .jsp > file, which i have in the war directory of the project. Eclipse is of > course using a JDK for the project, so that error message is rather > cryptic to me. it just somehow isn't understanding what the .jsp > really is, even though when it builds, it builds the project correctly > (since it runs) but thinks there is an error--if that makes any sense. > > moving forward in the tutorial, all of this amounts not only to the > annoyance of the red-x marker, but also as i edit the file, since > eclipse isn't checking it, i'm on my own in terms of checking for > punctuation and all that--it would just be nice if eclipse could give > me the info that it usually does rather than misunderstanding that > file. > > On Mar 1, 9:42 pm, "marsh...@marshallfarrier.com" > > <marsh...@marshallfarrier.com> wrote: > > actually, i did just discover some info on what it doesn't like: Down > > in the bottom box where there's a console tab and a few others, there > > is also a problems tab. When i click there it says "your project must > > be configured to use a JDK in order to use JSPs." > > > Just following the tutorial, i did change web.xml to have > > guestbook.jsp as welcome-file but didn't change anything else. web.xml > > in its entirety is: > > [code] > > <?xml version="1.0" encoding="utf-8"?> > > <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns="http://java.sun.com/xml/ns/javaee" > > xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" > > xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/we..." > > version="2.5"> > > <servlet> > > <servlet-name>Guestbook</servlet-name> > > <servlet-class>guestbook.GuestbookServlet</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name>Guestbook</servlet-name> > > <url-pattern>/guestbook</url-pattern> > > </servlet-mapping> > > <welcome-file-list> > > <welcome-file>guestbook.jsp</welcome-file> > > </welcome-file-list> > > </web-app> > > > [/code] > > p.s.: what tags do you use here to set code apart so that it's easier > > to read? > > On Mar 1, 2:08 pm, "Ikai Lan (Google)" <ika...@google.com> wrote: > > > > Do you know what the error says when you hover over the X? > > > > Could just be Eclipse weirdness. > > > > Ikai Lan > > > Developer Programs Engineer, Google App Engine > > > Blog:http://googleappengine.blogspot.com > > > Twitter:http://twitter.com/app_engine > > > Reddit:http://www.reddit.com/r/appengine > > > > On Tue, Mar 1, 2011 at 8:05 AM, Aisthesis > > > <marsh...@marshallfarrier.com>wrote: > > > > > i'm just trying to learn how the app engine works and was working > > > > through the tutorial. in the guestbook.jsp version, using eclipse, i > > > > started off with some actual errors (missing quotation mark, missing > > > > space) but after getting enough of those corrected that the program > > > > does run in my browser, i still get the "x-file" sign in eclipse next > > > > to the guestbook.jsp file, and it hasn't gone away after repeated > > > > cleans. > > > > > here's my file: > > > > [code] > > > > <%@ page contentType="text/html;charset=UTF-8" language="java" %> > > > > <%@ page import="com.google.appengine.api.users.User" %> > > > > <%@ page import="com.google.appengine.api.users.UserService" %> > > > > <%@ page import="com.google.appengine.api.users.UserServiceFactory" %> > > > > > <html> > > > > <body> > > > > > <% > > > > UserService userService = UserServiceFactory.getUserService(); > > > > User user = userService.getCurrentUser(); > > > > if (user != null) { > > > > %> > > > > <p>Hello, <%= user.getNickname() %>! (You can > > > > <a href="<%= userService.createLogoutURL(request.getRequestURI()) > > > > %>">sign > > > > out</a>.)</p> > > > > > <% > > > > } else { > > > > %> > > > > <p>Hello! <a href="<%= > > > > userService.createLoginURL(request.getRequestURI()) %>">Sign > > > > in</a> to include your name with greetings you post.</p> > > > > > <% > > > > } > > > > %> > > > > </body> > > > > </html> > > > > [/code] > > > > > is there still something wrong with it? and, if not, any ideas as to > > > > what might be causing the eclipse error symbol? > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "Google App Engine for Java" group. > > > > To post to this group, send email to > > > > google-appengine-java@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-appengine-java+unsubscr...@googlegroups.com. > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.