Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes JSP not working in JWS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP not working in JWS" Watch "JSP not working in JWS" New topic
Author

JSP not working in JWS

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Apr 28, 2000
Posts: 87
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

Regds<BR>Ajay Kumar
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Apr 28, 2000
Posts: 87
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).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP not working in JWS
 
Similar Threads
include file path
problem with JSP deployment in tomcat
wrong with my tomcat
First site not available
ClassNotFound Exception using JWSDK for JSP