Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

jsp:include tag not processed in Tomcat 4.0.4 and Apache2 combination  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scenario: Apache 2.0.39 connected to Tomcat 4.0.4 with APJ13.
<jsp:include> tag is not processed when I request a page from Apache. It work fine if I request the same page from tomcat.
Here is the code. This code works fine if I request it as http://localhost:8080/abc/main.jsp. But displays blank page if request from Apache as http://localhost/abc/main.jsp and if I request individual include pages from Apache all of them work fine!!
I appreciate any help.
---------
main.jsp
---------
<html>
<head>
<title>Apex Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<jsp:include page="menu_head.jsp" flush="true"/>
</head>
<jsp:include page="menu_body.jsp" flush="false" />
<jsp:include page="close_div.jsp" flush="true" />
</body>
</html>
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens when you try to request this page through Apache?[code]<html>
<head>
<title>Apex Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<h3><%= "Hello World" %></h3>
</body>
</html>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!