Solved

asp vs jsp or maybe shtml?

Posted on 2004-04-19
10
681 Views
Last Modified: 2012-08-13
ok, I'm looking to be able to add my .nav header in all my htm/pages with a few lines of code, so i can edited it from one place... my server doesn't allow me to use the asp header, but i can use .asp files??(and i dont want to change) can I still use asp code? without the header? or would .jsp file be a better way to go? or could shtml be as good?


Also, I would like to know the pros and cons of each..and which is best.
0
Comment
Question by:Caiapfas
  • 3
  • 2
  • 2
  • +3
10 Comments
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 25 total points
Comment Utility
My prefrence for this sort of thing is to use Server Side Includes because maintaining them is just about as much of a no-brainer as you can find.

Cd&
0
 
LVL 9

Accepted Solution

by:
pepsichris earned 75 total points
Comment Utility
Yeah, and Shtml files should be faster in theory as they only have one specific thing to look for and do.

Syntax for ASP & SSI is exactly the same.

<!--#include file="thing.inc"-->
or
<!--#include virtual="otherthing.inc"-->


If you were considering having some Server Side activity going on in future then it'd be a better bet to make 'em all ASP now thuogh, imho.

Out of interest, why are they all ASP now if they aren't doing any ASPing?
0
 
LVL 17

Expert Comment

by:dorward
Comment Utility
You should also consider an HTML Preprocessor which requires no server resources at all.
http://www.allmyfaqs.com/faq.pl?Include_one_file_in_another
0
 

Expert Comment

by:Rodjel_Ronel_Cuebillas
Comment Utility
use include file
 
0
 
LVL 2

Author Comment

by:Caiapfas
Comment Utility
ok,

I'm using ssi, but i'm having a issue. when i try to go back a few directories i get [an error occurred while processing this directive]

example of what i'm doing <!--#include file="../menus/cds.htm"-->
how do I go back a directory or 2? using absolute paths doesnt work either.

>>>>> Syntax for ASP & SSI is exactly the same. <<< is all syntax the same?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 8

Assisted Solution

by:fozylet
fozylet earned 25 total points
Comment Utility
You can use virtual= instead of file=

<!--#include file="/html/menus/cds.htm"-->

where /html/menus/cds.htm is the full virtual path to the include file
0
 
LVL 8

Expert Comment

by:fozylet
Comment Utility
oops!

<!--#include virtual="/html/menus/cds.htm"-->
0
 
LVL 2

Author Comment

by:Caiapfas
Comment Utility
can you point me torwards a go SSI tutorial?
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
Glad we could help.  Thanks for the A. :^)

Cd&
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now