Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Component HTML and SSI question

Status
Not open for further replies.

ksoong

Programmer
Oct 3, 2000
57
CA
Hi everyone, I'm running a web server called JBoss from Sun's Java. My boss at work wants me to make it so that all the components of a web page can be dynamically loaded in when the page is called.

The technology would model something like SSI.

Actually i was thinking that SSI would be the thing to use. However, I'm not sure if SSI will be usable with JSP. JSP is like ASP.

Doesn't SSI have to be parsed by the server just like JSP? If that's the case then is it possible for it to parse the JSP as well as the SSI at the same time? i highly doubt that but i could be wrong.

If i'm wrong is there any other way to make the pages component based without using frames?

thanks guys.

 
Every middleware language has an include type method. IN some case the SSI include - is actually called an ASP include.

It depends what components your server has - but I though SSI had to have a sht extension? In this way - only one is working at a time.

Could you further define 'component based'?

BB
 
well what i mean by "component based" is that you have a page and it loads other files. (e.g. the navigation bar)

That way if 200 of your pages call the same navigation bar, if you wanted to change the nav bar all you'd have to do is change that 1 nav bar file instead of the nav bar portion of the code on 200 pages.

that's sorta like SSI. but i'm wondering if SSI can run at the same time as something like ASP.
 
No need - ASP has include anyway - and no I don't think so, since you can have only one file extension. Syntax is in fact identical for ASP include.

Servers were made for this!
 
Hi,

Another way to do this is to call an external javascript that will write out your nav bar. This way, you would only have to change the nav bar js file to update all your HTML pages that use it.

Including HTML thru an external javascript does not need parsing by the server.

Bye.
 
Yeah. What they said.

Client-side includes sure would make life a lot easier, but instead you end up kludging one up in Javascript if you don't have the ability to do dynamic pages.

But if you worry about JSP you DO have that ability, and I can't beleive there isn't a JSP include capability.
 
Hi,

Including external javascripts does not prevent you from using server-side scripting to perform other functions. Using both together gives you a lot of flexibility.

Bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top