aspose file tools*
The moose likes Servlets and the fly likes jsp code not executing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp code not executing" Watch "jsp code not executing" New topic
Author

jsp code not executing

ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
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

Joined: Jan 24, 2011
Posts: 1
looks like package importing issue.
Orgnaise the Imports in teaexpert and teaselect.

If your using eclipse do ctrl+shft+o

ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
ya its importing problem but not being tackled till now still suggestions are required
Malatesh Karabisti
Ranch Hand

Joined: Jul 28, 2010
Posts: 153

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp code not executing