•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 456,234 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,817 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 790 | Replies: 1
![]() |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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:
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?
<%@ 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">
<head>
<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"/>
<title>AllSourceAuto.com</title>
<SCRIPT TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</SCRIPT>
</head>
<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?
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- What program language should a beginner use? (Software Developers' Lounge)
- login page using javabeans and jsp (JSP)
- including java programs or code in jsp (JSP)
- jsp,eclipse and weblogic server (JSP)
- Phoenix Jsp Developer Wanted (Web Development Job Offers)
- JSP Problem Student database search (Java)
- jsp command for open a page (JSP)
- Can't run JSP in Browser (JSP)
Other Threads in the JSP Forum
- Previous Thread: a simple jsp question
- Next Thread: JSP Hosting


Linear Mode