Forum Moderators: phranque

Message Too Old, No Replies

about apache 2.0 configure in widows

         

lovela

12:04 pm on Jul 9, 2004 (gmt 0)

10+ Year Member



Hi i really need some help for jsp.I installed apache 2.0 and i put my domain and server name as localhost but when i try [localhost...] it shows me the starting page.But when i tried [localhost...] it does shows the normal html string but not any jsp displayed thing.Please help me here is my code.

<HTML>
<%@ page import ="java.io.*,java.util.List,java.util.*, java.sql.*" session = "true" %>
<BODY>
<% int i = 0;%>
Hello! The time is now <%= i %>
</BODY>
</HTML>

and here is my output with ie.
Hello! The time is now

nothing else.It meant to show the i value.its not showing.

gergoe

10:50 pm on Jul 10, 2004 (gmt 0)

10+ Year Member



Do you have the Tomcat and mod_jk installed and properly configured?

lovela

7:51 am on Jul 11, 2004 (gmt 0)

10+ Year Member



Thank God i at last figure that out with apache tomcat.If anyone needs help i can help them but i could not do the java class path set up.Can you please help me to do that.In my c drive i got c/j2sdk1.4.2_04 but i put set classpath =(tomcat folder where all the class are)but even i got net bean i compiled that .java file and i got the .class file as well but i have got error about the class path.Please let me know where is the problem.
Thanks for your reply anyway.

gergoe

2:34 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



The classpath environmental variable you need only for compiling source files. It should have all the possible jar's included like the rt.jar form the jre, and some jars from the tomcat dir like the servlet.jar. But this you need to change only if you're compiling your own code with the javac tool (or maybe with yikes also, i don't know). You need to modify the classpath only if you're using custom jars, like the microsoft sql server jdbc driver, but even this case it is not really required, since you can just copy the jars to the tomcatdir/server/lib directory so the tomcat will find it at once.

If you got messages from tomcat about compilation errors then maybe the java (you need the java sdk, not only the runtime) is not installed properly (try copying the tools.jar from the java sdk to the tomcatdir/common/lib directory).

If you still have difficulities then post the complete error messages you got.