Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running JSP on JWS 2.0

 
pradeep kurup
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I am Pradeep Kurup. I am finding a problem in running JSP on Java Webserver.
I had installed Java Web Server 2.0 on my comp. I had made a simple .jsp file and stored under the public_html directory. The .html file, which is used to call the .jsp file also was stored under public_html dir.
While running the server, I had typed http://localhost:8080/.html file in the address. The .html file itself was not opening first. Later on this problem was rectified. But now while submitting the form from the html file, its not calling the .jsp file. I had gone thru the docs. The path variable was set as c:\javawebserver2.0\lib\jsp.jar;
I had run this files under Win 98 and is working fine, but the problem persists with Win NT.
Kindly someone guide me as what to do to get out of the problem.
Thanks in anticipation.
Pradeep
 
Matthew X. Brown
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pradeep -I'm not exactly sure what your doing-maybe you could elaborate- I fear that my example is toooooo simple- but maybe it'll get you started in the right direction. This is a real application at my company- we use a JSP page to post some specifications for our construction specifications for some projects-basically, below is a simplified version- my test environment is java web server 2.0- I stored both files under public_html- and had the java web server running. My local port is 8181- which is not the default port they give you because I have other things running. Anyway- Here is the example:
When the person hits the "Damn Construction" button they are taken to the jsp page which has the damn construction jsp page is- with an excel spreadsheet embedded- (which I truncated here because we have alot of proprietary data in them)
<HTML>
<HEAD>
<TITLE> Construction</TITLE>
</HEAD>
<BODY BGCOLOR="#FDF5e6">
<FORM ACTION="http://localhost:8181/DamnConstruction.jsp"
METHOD="POST">
<INPUT TYPE="SUBMIT" NAME="ADD"
VALUE="Damn Construction">
</FORM>
</BODY>
</HTML>
Now my JSP is an excel spreadsheet:
<%@ page contentType="application/vnd.ms-excel" %>
<%-- --%>
ABC COMPANY
DAM CONSTRUCTION
DesignatedLocationType ofOne-WayPayUnitTotal Price
ConstructionOf FillFillHaul DistanceQuantityOfUnit Price Extension
PeriodPlacementMaterial(Miles)EstimateMeasure($/Unit)($)

WESTERN DAM - NORTH PORTION
6' RAISE - UPSTREAM CONSTRUCTION METHOD
 
pradeep kurup
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mathew,
Thanx a lot for your reply. I'm a starter in jsp and was trying a simple page like yours. But the port I used was localhost:8080. Now as you advised, I'll try my example with localhost:8181.
Thanx again,
Pradeep
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic