1

I want to import a class that is inside one jsp page to another jsp page. How must I write the import statement for it? For example I have a jsp page called Login.jsp which contains a class called User. I want to import this User class into another jsp page called Shop.jsp.

user2966968
  • 133
  • 1
  • 9

1 Answers1

1

Short: Not possible.

Longer: I could imagine few very dirty hacks to achieve what you want, but the whole conception is wrong. If you have classes to be shared between different JSP pages, these classes should be externalized, compiled independently, and then referenced (imported) as such in such JSP pages.

Jozef Chocholacek
  • 2,874
  • 2
  • 20
  • 25