Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp code not executing

 
ankittt agarwala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • 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
 
Bhagwan Das Armani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
ya its importing problem but not being tackled till now still suggestions are required
 
Malatesh Karabisti
Ranch Hand
Posts: 153
Java Oracle
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic