Link to home
Start Free TrialLog in
Avatar of Mark
Mark

asked on

Can I define an interface in JSP?

Can I define an interface in jsp? I've tried the following at the beginning of my program:

interface iFace {
    Object reportDetail(Object arg);
}

and I get the error:

An error occurred at line: 22 in the jsp file: /printAPchecks.jsp
The member interface iFace can only be defined inside a top-level class or interface
ASKER CERTIFIED SOLUTION
Avatar of mrcoffee365
mrcoffee365
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark
Mark

ASKER

That did the trick! Thanks.