Rajeev Motha

+ Follow
since Apr 05, 2012
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rajeev Motha

You may use the constructor to set values at point of instantiation. However, an object may have many attributes that 1) you may not know at the point of instantiating or 2) may need to be changed after instantiating.
For this you need setters.
8 years ago
Hi Eric,

This is expected.
If you type javac -help you will see that -d is to specify the directory of the generated class files. And since "src\com\example\web\BeerSelect.java" is not a directory, it is stating that.

Code On!
8 years ago
Hi Nolan,

Firstly, - do as Greg has mentioned.

Then you need to figure out if the username and password is correct or not. For this you will need to access your Database, and query for the user entered username and password. I cannot give you any more detail here before you mention what technology you will be using for DB access.

Another thing is you mention calling getPassword and printing on the screen. This is not a done thing in any app - ever!

for the final step you have mentioned you just need a loop that would return when login is successful. Something like this (note I have not used your KeyboardReader class as that must be a proprietary thing you are using)

8 years ago
Hey Cathy,

Not sure what you are trying to do with the 'Arithmetic ' class, but in order to show a list of results in your JTextArea you need to create a string containing the list before you set it to it.

Try the following

Deleted code.

Rajeev Motha, please DontBeACodeMill.(⇐click)
8 years ago
Do you see javac in your jdk1.6.0_30/bin ? How are you trying to compile? Command Line?
Please post more details on your execution environment and any error messages.
8 years ago
Yep tomcat does get accessed according to the log, it doesnt log anything about the completion of the task. (Not sure if it's supposed to)

Apr 6, 2012 1:45:52 AM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/simple]
8 years ago
I have added the following target to my build.xml, and when invoked, it results with the success message (below)

<target name="undeploy">
<undeploy url="${tomcat.manager}"
path="/${app.name}" />

[undeploy] OK - Undeployed application at context path /simple

Total time: 0 seconds

However, the app doesnt get properly undeployed, as it still shows as 'running' in the tomcat manager.

Any ideas?
8 years ago