Alright so I created a website using HTML. I later found out that I had to store links via .jsp and use a database so i made an index.jsp page instead. The first couple sections look like this:

<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="_css/style.css"/>
<link rel="stylesheet" type="text/css" href="_css/form.css"/>
<SCRIPT TYPE="text/javascript">
function dropdown(mySel)
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
   if(mySel.form.target)myWin = parent[mySel.form.target];
   else myWin = window;
   if (! myWin) return true;
   myWin.location = myVal;
return false;

<body id="homepage">

<div id="wrap">

<jsp:include page="header.jsp"/>

I put the heading and navbar in a separate .jsp page called header.jsp. When i upload it onto the server it just outputs the code exactly and I don't know why. Anyone help?

10 Years
Discussion Span
Last Post by sillyboy

You need to make sure your particular server allows for .jsp (i.e. has tomcat or something similar installed).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.