Jsp error

Hi,

I am converting this .java to a .jsp, and i get this error:

(I am calling the .jsp from a .html using Blazix web server)

<%@ pageimport ="java.util.*"%>

<%@ pageimport ="java.awt.*"%>

<%@ pageimport ="java.applet.*" %>

<%@ pageimport ="java.text.*"%>

<%

publicclass Clock2extends Appletimplements Runnable{

Thread timer;// The thread that displays clock

int lastxs, lastys, lastxm,

lastym, lastxh, lastyh;// Dimensions used to draw hands

SimpleDateFormat formatter;// Formats the date displayed

the code continues...

C:\Blazix\jspdir\Clock2_jsp.java:82: illegal start of expression

public class Clock2 extends Applet implements Runnable {

^

C:\Blazix\jspdir\Clock2_jsp.java:82: ';' expected

public class Clock2 extends Applet implements Runnable {

^

2 errors

What can i do to solve this?

thanks for any response...

[1525 byte] By [deroka] at [2007-11-27 1:39:35]
# 1
Why on earth are you "converting java to jsp" ? JSP is intented for display only.Inside the JSP just declare, instantiate, invoke and use the java class. That's it :)
BalusCa at 2007-7-12 0:52:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi BalusC,thanks,I know you can call the .class from the .jsp.But I want to do it they way i wrote above(if it can be done).so, what should i modify?
deroka at 2007-7-12 0:52:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
An JSP is actually a public class. As you cannot nest public classes, you have to define inner classes or just define methods.The way you're going to try is definitely a no-go.
BalusCa at 2007-7-12 0:52:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...