Help coderanch get a
new server
by contributing to the fundraiser

Veeru Bond

Greenhorn
+ Follow
since Aug 09, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Veeru Bond

Thanks Patrick & congratz once again
~ Veeru
Congratz Patrick
How much did you score in HFSJ final mock exam?And how much approximate time did you spend everyday? I am kind of worried because I am a working professional(but not in Web Applications!) & I am finding it real hard to take out time to study on a regular basis
I am still only half-way through HFSJ book after little more than 1 month
Any suggestions from anybody will be highly appreciated.

~ Veeru
I also think that the option D is correct.But nothing is mentioned in errata regarding pg 336
Lalit-please help up & let us know if you are referring to any other errata link.
Thanks!
I tried with both
-sourcepath src/com/examples/web BeerSelect.java
as well as by removing the sourcepath altogether
src/com/examples/web/BeerSelect.java
But still facing the same error
Please help.

~ Veeru
Hi,
I am having problems with compiling Servlet version two code in HFSJ(page-85)
I have kept model class at-> D:\MyProjects\beerV1\src\com\example\model\BeerExpert.java

Servlet at-> D:\MyProjects\beerV1\src\com\example\web\BeerSelect.java

servlet-api at->C:\Tomcat\apache-tomcat-5.5.23\common\lib\servlet-api.jar
Now I am trying to compile using:
javac -classpath "C:\Tomcat\apache-tomcat-5.5.23\common\lib\servlet-api.jar;". -d classes -sourcepath src/com/examples/web/BeerSelect.java

It is not getting compiled giving the following error:

javac: no source files
Usage: javac <options> <source files>
use -help for a list of possible options

This problem was being faced by marten(https://coderanch.com/t/407370/java/java/Problems-compiling-packages-JSP) & he got it resolved,but unfortunately I am still stuck with it
Please help me.

~ Veeru
ServletContext is an interface which defines a set of methods that a servlet uses to communicate with its servlet container.Examples of its uses being to get the MIME type of a file or write to log files or to dispatch request.
I am having the exactly same problem.
For me,
model@
D:\MyProjects\beerV1\src\com\example\model\BeerExpert.java
servlet@
D:\MyProjects\beerV1\src\com\example\web\BeerSelect.java
servlet-api@
C:\Tomcat\apache-tomcat-5.5.23\common\lib\servlet-api.jar
Now I am trying to compile using:
javac -classpath "C:\Tomcat\apache-tomcat-5.5.23\common\lib\servlet-api.jar;". -d classes -sourcepath src/com/examples/web/BeerSelect.java

Still it is not getting compiled giving the following error:

javac: no source files
Usage: javac <options> <source files>
use -help for a list of possible options

Please help.
Also I don't know the usage of . after "c:\Tomcat...\servlet-api.jar;"

~ Veeru
16 years ago
Is HFSJ enough or is there any other reference stuffs to be gone through??
~ Veeru
16 years ago
Congratz Sakthi
Could you please share how did you go about the preparation??

~ Veeru
16 years ago