Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Nina Savannah

Ranch Hand
+ Follow
since Oct 15, 2008
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 Nina Savannah

Thank you so much for your response. Here is what I have done
I added the in C:\Tomcat\conf

web.xml





server.xml





Now this is far as I can go. I am a beginner and I really dont know much.
The system is due but this part is the only thing holding me back.

If you may please help me with the code that I should add that will allow
the connection pooling. If you could help I would be the happiest person ever.

I am not good with java so if I can work with JSP its best.
Could someone please please help me with my connection pooling? I have been trying for a while now with no success.
Below is my jsp file that I use for my database connection.
I need someone to help me with the codes that will make this file implement connection pooling.

Your help shall be very much appreciated.

I have edited web.xml and server.xml



Thank you Swastik Dey for helping me come this far.

The system I am working on is an already operational system and is saved in :-

C:\Tomcat5027\webapps\ROOT\publications

This is why I am requesting that we use that.

So right now I have

web.xml in C:\Tomcat5027\webapps\ROOT\publications\WEB-INF\
HelloWorld.class in C:\Tomcat5027\webapps\ROOT\publications\WEB-INF\classes\test
13 years ago
Yes I did what you suggested and I have now deleted web.xml in C:\Tomcat5027\webapps\ROOT\WEB-INF
so I'm left with web.xml in C:\Tomcat5027\conf
but my HelloWorld.class & HelloWorld.java is in C:\Tomcat5027\webapps\ROOT\WEB-INF\classes\test

Then I changed this




to that



And now my website is available
http://localhost:8080/publications

However, the url below
http://localhost:8080/publications/hello


says
The requested resource (/publications/hello) is not available.
13 years ago
My website is located in C:\Tomcat5027\webapps\ROOT\publications so does this mean that I have to copy WEB-INF folder to there instead?

I already have WEB-INF in C:\Tomcat5027\webapps\ROOT\WEB-INF which refuses to get deleted, error message says "Acess Denied"

The error The requested resource (/publications/) is not available. still persists
13 years ago

I'm trying to run my website on my computer and i'm getting the error

The requested resource (/publications/) is not available.
I tried re-starting Tomcat but it didnt correct the error.

I inserted the code


in web.xml

I have this web.xml in two locations:
C:\Tomcat5027\conf
&
C:\Tomcat5027\webapps\ROOT\WEB-INF\


Also when I correct this error, what do I type in the url space to test my servlet?
13 years ago
Swastik Dey you are a star!

This part has worked, I now have HelloWorld.class

Let me work on the next part and see how it goes!
13 years ago
Here is where Tomcat 5.0.27 is installed
C:\Tomcat5027

Java is installed in C:\j2sdk1.4.2
(There's another Java in C:\Program Files\Java\j2re1.4.2 though I am not using this one.)

Here is my classpath
.;C:\j2sdk1.4.2\bin;C:\Program Files\Java\j2re1.4.2\lib\ext\QTJava.zip;C:\Tomcat5027\common\lib\servlet-api.jar;

HelloWorld.java is saved in C:\Tomcat5027\webapps\ROOT\WEB-INF\classes\test
web.xml is saved in C:\Tomcat5027\conf, I copied it into C:\Tomcat5027\webapps\ROOT\WEB-INF\


Compiled like this again and got these errors:-

C:\Tomcat5027\webapps\ROOT\WEB-INF\classes\test>javac HelloWorld.java

13 years ago
Here is what I've done

C:\j2sdk1.4.2\bin>javac C:\Tomcat5027\webapps\ROOT\publications\test\HelloWorld.java

and here are the errors I'm still getting.:-

ERRORS
13 years ago
Thanks a lot. I have followed all the instruction. Now I am not sure how exactly the file is compiled.
I'm doing everything manually. Is what I have below what compiling is?


C:\j2sdk1.4.2\bin> javac C:\Tomcat5027\webapps\ROOT\publications\test\HelloWorld.java
13 years ago
I'm trying to get this servlet to work but i'm getting errors.
Here is what I did:-

I added the following code to web.xml to invoke my servlet in C:\Tomcat5027\conf



I saved my HelloWorld.java to

C:\Tomcat5027\conf\classes\test



To compile the java file I went to Command Prompt and typed


C:\j2sdk1.4.2>cd bin

then

C:\j2sdk1.4.2\bin>javac C:\Tomcat5027\webapps\ROOT\publications\test\HelloWorld.java



Here are the errors I got. I'd like to know, Where am I going wrong?:-

ERRORS
13 years ago
Thank you so much for your help. I have managed to get it working!

13 years ago
Yes it is valid.

I even tried using the IP address but I'm still getting the same error.
13 years ago
I have this at the top of my page. I dont know how to packages, do I need to do that.




This statement:- closes the select statement


The error I'm getting is the one below.

ERROR SENDING EMAIL:java.net.UnknownHostException: mailhost
13 years ago
I am trying to send an email message using the jsp code below. The message is not being sent but there is no error message either.
What could be wrong with my code?

13 years ago