bionicblakey
asked on
server problem or my coding is wrong... plz help...
i am using linux redhat and installed tomcat.
i tried to test my server, thus i wrote a little simple jsp
<%@ page language = "java" import = "java.util.*, java.lang.*"%>
<%
out.println("test");
%>
however, it does not work...
u can see the result at
http://207.218.249.233:8080/vcclient/test.jsp
however, when i input a wrong url, tomcat logo actually shows up
http://207.218.249.233:8080/vcclient/test/
thus, i am not sure if my code is wrong or i did not install the tomcat, right??
Please Help
i tried to test my server, thus i wrote a little simple jsp
<%@ page language = "java" import = "java.util.*, java.lang.*"%>
<%
out.println("test");
%>
however, it does not work...
u can see the result at
http://207.218.249.233:8080/vcclient/test.jsp
however, when i input a wrong url, tomcat logo actually shows up
http://207.218.249.233:8080/vcclient/test/
thus, i am not sure if my code is wrong or i did not install the tomcat, right??
Please Help
what is it u see?
your folder must be contain a folder called web-inf and then be deployed in tomcat..did you do that?
Ghost
Ghost
ASKER
i move the jsp into web-inf, but it still did not work...
it just print out my jsp code...
it just print out my jsp code...
Try to split the following line:
-----
<%@ page language = "java" import = "java.util.*, java.lang.*"%>
-----
<%@page language = "java"%>
<%@import = "java.util.*, java.lang.*"%>
and try .. and also .. the JSP file needs to be outside the WEB-INF dir ... i.e. at the same level as that of WEB-INF or in a directory structure .. that is at the same level as that of WEB-INF
-----
<%@ page language = "java" import = "java.util.*, java.lang.*"%>
-----
<%@page language = "java"%>
<%@import = "java.util.*, java.lang.*"%>
and try .. and also .. the JSP file needs to be outside the WEB-INF dir ... i.e. at the same level as that of WEB-INF or in a directory structure .. that is at the same level as that of WEB-INF
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.