Andreas,

HTML files are just static files. The way JSP works is that JSP files are
compiled to servlets under the hood when needing, so when you copy the code,
you are really just copying HTML code.

There are two things you should check here:

1. Browser cache. You may be caching the page.
2. Run the server in debug mode. When the JVM is running in debug mode,
it'll allow hot reloading of classes that don't require restarting the JVM.
3. Last case - do a full rebuild. This will blow away the output
directories. You shouldn't need this step, since step 2 should resolve the
issue if it is not a browser cache issue.



On Sun, Nov 22, 2009 at 7:15 AM, andreas diavastos <[email protected]>wrote:

> I also have the same problem and i do have the jdk1.6 installed.
> If i copy the guestbook.jsp code inside the predefined index.html file
> in the eclipse the guestbook.jsp code it shows me the
> html code in the browser but the java functions does not work!
> If I do a new file named guestbook.jsp nothing works.
> Any other ideas please?
>
> Thank you,
> Andreas
>
> On Nov 15, 5:06 am, "[email protected]" <[email protected]> wrote:
> > 1. make sure use jdk1.5 or 1.6
> >
> > 2. uninstall your jre , only let jdk in your computer.
> >
> > On Nov 15, 8:10 am, Martin <[email protected]> wrote:
> >
> >
> >
> > > Hello - I'm trying to work through the Guestbook tutorial of Google
> > > App Engine tutorial.  (Using Eclipse), but getting stuck at the
> > > section where I develop jsps (and then develop a guestbook.jsp)
> >
> > > I'm able to get the project working - I can manipulate the
> > > GuestbookServlet class file to display a welcome message.
> >
> > > However, when I attempt to incorporate the guestbook.jsp, I still only
> > > see the old display message that I wrote in GuestbookServlet.
> > > (I've recompiled, restarted Eclipse, and even restarted computer).
> >
> > > 1) Web xml looks like:
> > >     <welcome-file-list>
> > >          <welcome-file>guestbook.jsp</welcome-file>
> > >     </welcome-file-list>
> >
> > > 2) guestbook.jsp is pasted directly from tutorial.
> >
> > > 3) Going to "http://localhost:8080/guestbook"; yields the message I
> > > coded in the GuestbookServlet
> >
> > > 4) Going directly to:http://localhost:8080/guestbook.jspyieldsan
> > > error:
> > > Error running javac.exe compiler
> > > RequestURI=/guestbook.jsp
> > > Caused by:
> > > Error running javac.exe compiler
> > >         at
> > >
> org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExter
> nalCompile
> > > (DefaultCompilerAdapter.java:473)
> > >         at
> org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute
> > > (JavacExternal.java:47)
> > >         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
> > >         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
> > >         at
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:
> > > 382)
> >
> > > 5) I even trimmed out all jsp code from guestbook.jsp and i get same
> > > results - get servlet message from going to /guestbook and get above
> > > error from going directly to guestbook.jsp. (And yeap, I recompiled
> > > and restarted)
> > > .....
> > > Any thoguhts?
> > > Thank you very much for your help. I greatly appreciate it.
> > > Martin
>
> --
>
> 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=.


Reply via email to