• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp code not executing

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
as mentioned in headfirst example i did following things
made folowing architecture
project->e->src->com->example->web ->teaexpert
project->e->src->com->example->modell->teaselect
the coding is as follows

teaexpert


and for teaselect its



now teaexpert compiled successfully
but on compiling teaselect following error occurs
C:\project\e>javac -classpath c:\project\lib\servlet-api.jar -d classes src\com\example\web
src\com\example\web\teaselect.java:2: package com.example.modell does not exist
import com.example.modell.*;
^
src\com\example\web\teaselect.java:22: cannot find symbol
symbol : class teaexpert
location: class com.example.web.teaselect
teaexpert te =new teaexpert();
^
src\com\example\web\teaselect.java:22: cannot find symbol
symbol : class teaexpert
location: class com.example.web.teaselect
teaexpert te =new teaexpert();
^
3 errors
it says package does not exist how can that be it exists and note i have used modell in place of model intentionally its not an eroor my folder also named like that
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
looks like package importing issue.
Orgnaise the Imports in teaexpert and teaselect.

If your using eclipse do ctrl+shft+o

 
ankittt agarwala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ya its importing problem but not being tackled till now still suggestions are required
 
Ranch Hand
Posts: 153
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
project->e->src->com->example->web ->teaexpert
package com.example.modell;
import java.util.*;

project->e->src->com->example->modell->teaselect
and for teaselect its
package com.example.web;
import com.example.modell.*;
import java.io.*;

check the package name and directory structure
 
reply
    Bookmark Topic Watch Topic
  • New Topic