HTML - .jsp?

Reply

Join Date: Nov 2007
Posts: 1
Reputation: bryanau is an unknown quantity at this point 
Solved Threads: 0
bryanau bryanau is offline Offline
Newbie Poster

HTML - .jsp?

 
0
  #1
Nov 14th, 2007
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:
  1. <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <link rel="stylesheet" type="text/css" href="_css/style.css"/>
  7. <link rel="stylesheet" type="text/css" href="_css/form.css"/>
  8. <title>AllSourceAuto.com</title>
  9. <SCRIPT TYPE="text/javascript">
  10. <!--
  11. function dropdown(mySel)
  12. {
  13. var myWin, myVal;
  14. myVal = mySel.options[mySel.selectedIndex].value;
  15. if(myVal)
  16. {
  17. if(mySel.form.target)myWin = parent[mySel.form.target];
  18. else myWin = window;
  19. if (! myWin) return true;
  20. myWin.location = myVal;
  21. }
  22. return false;
  23. }
  24. //-->
  25. </SCRIPT>
  26. </head>
  27.  
  28. <body id="homepage">
  29.  
  30. <div id="wrap">
  31.  
  32. <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?
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: HTML - .jsp?

 
0
  #2
Nov 16th, 2007
You need to make sure your particular server allows for .jsp (i.e. has tomcat or something similar installed).
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC