• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp:include action

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I would like to include the static contents .html files into my jsp. All static contents are available in the Apache Web server.
We are using APACHE 2.2.4 and JBOSS 3.2.7. All dynamic contents in the Jboss server and static contents are in Web server due to performance issue.

I am using below syntax to include in jsp.
<jsp:include page="/news.html" flush="true" />

This news page is changing daily based on the activities. I am not getting any error, but the contents are not including. When I will use JSP directive then I will get below error.
ServletException in:/lottery/fr/loterie/news.jsp] /lottery/fr/loterie/news.jsp(47,0) File "/lottery/fr/loterie/news.html" not found'

I would like to use the jsp:action because of the days to day changes on news item.

APACHE httpd.conf files has set for the below

RewriteEngine on
RewriteCond %{REQUEST_URI} !.*\.(gif|png|jpg|pdf|js|css|swf|html)$
RewriteRule ^/(.*) balancer://esi_loadbalancer/$1 [P] lbmethod=byrequests nofailover=On


Can you help me on this?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic