• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp page wont recognise class

 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

I've got a compiled java file in the folder WEB-INF/classes/examples/list, but when i try to call a method from the class in my jsp file using the following import statement

<@ page import="examples.list.Listdrop" %>

and the following declaration

<jsp:useBean id="listvalue"
scope="session"
class="examples.list.Listdrop">
</jsp:useBean>

and then calling it by the following -





cheers

chris
 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its ok

i missed out the %

<%@ page import="examples.list.Listdrop" %>
 
Julian Kennedy
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chris,

Note that if you use <jsp:useBean> you don't need the import in the page directive.

Jules
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!