• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in running jsp page in javawebserver

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
I have problem in running the jsp page in javawebserver
the program is given below
<HTML>
<HEAD>
<TITLE>HELLO</TITLE>
</HEAD>
<BODY>
<H1>
<%
if (request.getParameter("name") == null)
{
out.println("HELLO World");
}
else
{
out.println("Hello,"+ request.getParameter("name"));
}
%>
</h1>
</body>
</html>
I have saved this file in hello1.jsp,I put this file in Public_html
directory in javawebserver2.0.,I have started javawebserver,after that
in the browser i have typed
httpd://localhost:8080/hello1.jsp?name=vikram
I gives me a error saying that 404 not found.
I installed javawebserver in windows 98,I think Beacuse of this it
gives a error.I dont know,Wheater i have to instal javawebserver in
windows NT .I am using Internet explorer4.0.To run jsp page i have
to install higher version browser.
And one more point i like to mention When i store .html file in
Public_html directory in javawebserver2.0 ,the file looks like explorer
icon,But when i store .jsp page in public_html directory,the file looks
like simple textfile.
Wheather i have to change any property file in javawebserver2.0.
Please help me In this error.

from
vikram
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your webserver running? Type http://localhost:9090 in addressbar and start it with admin & admin as usernme & password respectively.
Rani
 
vikram veera
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HAI RANI,
NICE TO GET YOUR REPLY,
I STARTED MY WEB SERVER EVEN THOUGH IS SHOWS THE SAME ERROR.
WHAT TO DO,PLEASE HELP ME.
WITH REGARDS
VIKRAM
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi vikram,
Did u set ur class path properly.start the webserver thru http and try running it.
hope this should help u
madhavi.
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

first start u'r JAVAWEBSERVER by using httpd.exe located in the bin directory of JWS.
Then copy u'r hello1.jsp to public_html directory of JWS.
In the url type:
http://localhost:8080/hello1.jsp
Type 'http' in the URL and not 'httpd' (as u mentioned in u'r problem)
Hope this solves u'r problem....
Try this and get back...
regds,
Sandeep.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi vikram,
I have read ur problem and i think that u must write and edit ur .jsp files through dos and not through windows. Though u can do it through windows also but it gives a little bit of problem. Hence I'm recommending the command prompt.
Goto the command prompt and goto the jsp folder in the examples folder. Here save ur file or edit ur file or create a new file using a dos editor.
For Example type at the command prompt the following:
c:/>javawebserver2.0\examples\jsp>edit hello1.jsp
Hope this will help u to solve ur problem.
I usually run my .jsp files using this method only.
Regards
Muffazal
 
vikram veera
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
THANKS TO ALL,
Now it works properly.As Muffazal Tikiwala
told me to save the page in command promat.THROUGH that it execute properly.

with regards,
vikram
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic