Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Help! Where to put a bean class

 
P W
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Timcat4.0 and trying to put a bean class Sale.clss in to
C:\Tomcat4.0\webapps\ROOT\WEB-INF\classes
and I put my .JSP file into
C:\Tomcat4.0\webapps\ROOT
When I open my jsp page, some errors generated ... like

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 26 in the jsp file: /Sale.jsp
Generated servlet error:
C:\Tomcat4.0\work\localhost\_\Sale$jsp.java:60: Class org.apache.jsp.Sale not found.
Sale entry = null;
Thank you for any suggestions.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Add a page directive to your JSP page with the appropriate import attribute. eg.
<%@ page import="Sale" %>
Regards,
Doug
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
P W,
JavaRanch has a Naming Policy Compliance with the policy is required to be entered in the drawing for a giveaway. Please reregister with a proper name.

Tomcat has a noted bug in regards to loading class that are in the default package. Add a package to your Sales class and put it in the proper location.
 
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic