| | |
HTML - .jsp?
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
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?
JSP Syntax (Toggle Plain Text)
<%@ 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?
![]() |
Similar Threads
- jsp,eclipse and weblogic server (JSP)
- What program language should a beginner use? (IT Professionals' Lounge)
- login page using javabeans and jsp (JSP)
- including java programs or code in jsp (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
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web





