944,192 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 1297
  • JSP RSS
Nov 14th, 2007
0

HTML - .jsp?

Expand Post »
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:
JSP Syntax (Toggle Plain Text)
  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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bryanau is offline Offline
1 posts
since Nov 2007
Nov 16th, 2007
0

Re: HTML - .jsp?

You need to make sure your particular server allows for .jsp (i.e. has tomcat or something similar installed).
Reputation Points: 85
Solved Threads: 64
Practically a Master Poster
sillyboy is offline Offline
686 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: a simple jsp question
Next Thread in JSP Forum Timeline: JSP Hosting





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC