Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7849805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:38:43+00:00 2026-06-02T18:38:43+00:00

I have a bunch of htmls in the webserver context (outside the application context)

  • 0

I have a bunch of htmls in the webserver context (outside the application context) in the htdocs area. These htmls use SSI to call other htmls.

Here’s the problem:
When I use c:import to call the main html into the jsp, the secondary htmls inside the main html don’t render / are not processed.

Is there a way to get the main html to “compile” and then return to the jsp?

JSP codes:

<c:import url="<%=/folder/Header.html%>" 

HTML server side logic that needs to be processed:

<!--#include virtual="/abc/xyz.html" -->
<!--#if expr='"$Category" = "someCategory"' -->
<!--#echo var="pageTitle" -->

The prototypes were given as all htmls, so everything was in the web context and all files worked fine. The issue is moving the top layer to JSP and keeping the rest of the layers as HTML. (Its a requirement)

Any solutions /thoughts/ ideas would be welcome! Thanks for your asssistance!

Wave

EDIT: Ok, I’m getting the Header.html in an iFrame because that will initiate a new HTTP request (and thus have access to the SSI logic).

<iframe id="testSSI" src ="http://somesite.com/subfolder/testssi_1.html?pageTitle=Applications" frameborder="0" width="800px" height="300"></iframe>

The parameters are sent in the URL and I’ve managed to extract the control parameters using js.

My query has reduced to this:
How can I access this js value “Applications” in the SSI logic? Is it possible to set is as an environment variable? That could be pulled by the SSI logic.. I realise that the Js will run after the SSI is done, but hoping someone here would be able to help.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T18:38:45+00:00Added an answer on June 2, 2026 at 6:38 pm

    Thanks, got it done.

    I accessed the parameter in SSI by using the QUERY_STRING environment variable.
    Example of html call:

    http://somesite.com/subfolder/testssi_1.html?Applications
    

    Example of how i retrieved the value:

    <!--#set var="pageTitle" value="$QUERY_STRING" -->
    <!--#if expr=" ${pageTitle} = Program "  -->
      do something
    <!--#else -->
      do something else
    <!--#endif --> 
    

    The objective here:
    We use a JAVA framework. But Marketing wanted content to be editable by them in a separate process.This way, they can change the content frequently with out the intervention on the jsp / java team. (Eg. change header look and feel, add new links, etc)

    Hope this helps someone out later. 🙂

    Wave

    Edit: In the example above -> “Applications” will take the logic to the else section..
    In addition, to send name value pairs:

    http://somesite.com/subfolder/testssi_1.html?name=Applications&app=Demo
    

    you can reference them as:

    <!--#if expr=" ${QUERY_STRING} = /name=Applications/ "  -->
    

    AND

    <!--#if expr=" ${QUERY_STRING} = /app=Demo/ "  -->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bunch of these little bits of HTML code repeated over and
I have a web application with bunch of HTML code. There are some style-attributes
So I have a bunch of buttons on a page, interspersed with other HTML,
week DKK id=radio2 value=75 /> I have bunch of these div entry generated by
I have a bunch of html with lines like this: <a href=# rel=this is
We have bunch of Domain Entities which should be rendered to an html format,
I have a HTML/CSS File laid out with a bunch of areas that need
so I have this HTML table with a bunch of big numbers in it
I have html code like this <tr class=odd> <td><b>Reason for Termination:</b></td> <td>this has bunch
ok, so i have this slideshow.html containing just a bunch of pictures, and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.