Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP not working in JWS

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have JWSDk installed and I created a simple JSP file
which dispalys date.
This is the piece of code in my JSP file.
Current time: <%= new java.util.Date() %>
I saved in E:\servlets\jswdk-1.0.1\examples\WEB-INF\jsp\date.jsp
I tried to run in my browser saying
http:\\localhost:8080\examples\jsp\date.jsp
and gives me 404 error.
I am not sure where I have made the mistake.
Should I use JWSdk for JSP . Is it good in the long run.
help me
bye
 
Ajay Kumar
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
newtojsp,
First of all U need to ensure that the server is running, which u can do by just putting http:\\localhost:8080\ and U should see that Java Server Web Development Kit home page. If U do not see this, then UR server is not running.
Next, the place to keep your jsp's is in the examples\jsp directory NOT in examples\WEB-INF\jsp directory.
Hope this helps and Good Luck
Ajay Kumar
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for ur response...I did as u said.
I am able to see the JSWdk page and I tried to execute the
Jsp examples. I am getting Http 500 error. I also tried to execute my JSp file and I get the same error.
I saved my Jsp file under examples/jsp dir
WHat should I do..
 
Ajay Kumar
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
newtojsp,
When U are getting the 500 error, take a look at the trace in the server window. It may throw some clue about the type of problem encountered. I hope have the tools.jar file in your classpath.
Should I use JWSdk for JSP . Is it good in the long run.
I would suggest U go in for TOMCAT.
Just my $0.02.
help me

Ajay Kumar
[This message has been edited by Ajay Kumar (edited June 22, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic