Questions tagged [jspinclude]

The `` element allows you to include either a static or dynamic resource in a JSP page.

The <jsp:include> element allows you to include either a static or dynamic resource in a JSP page. The results of including static and dynamic resources are quite different. If the resource is static, its content is included in the calling JSP page. If the resource is dynamic, it acts on a request and sends back a result that is included in the JSP page. When the include action is finished, the JSP container continues processing the remainder of the JSP page.

181 questions
4
votes
1 answer

Why does jsp:include (sometimes) cause StackOverflowErrors on Google App Engine?

I am experiencing StackOverflowErrors with all requests to the latest version of an application on GAE. I tracked down Issue #3588 but that was closed because the reporter blamed it on a third-party library and the Google engineer didn't want to…
Isaac Truett
  • 8,734
  • 1
  • 29
  • 48
4
votes
1 answer

JSP request parameter is returning null on a jsp include with Weblogic

I am having trouble with the jsp:include tag. I have code like the following:
doug
  • 51
  • 2
  • 5
4
votes
1 answer

How to determine which JSP pages are being rendered?

I'm working on a legacy application that is using simple JSPs that are nested using . No frameworks are being used - just JSP Servlets and filters. Can anyone suggest a way to trace which JSP pages are being rendered? Perhaps there's a…
chickeninabiscuit
  • 9,061
  • 12
  • 50
  • 56
4
votes
4 answers

Including JSP page into another JSP page, how to avoid multiple HEAD / BODY sections?

I would like to include a JSP page into another JSP page. Let's say that I have master.jsp that is including slave.jsp. As slave.jsp has its own section for dealing with JavaScript and CSS, is there a way or maybe another method to merge the…
dawez
  • 2,714
  • 2
  • 29
  • 50
4
votes
3 answers

jQuery function only works when included again - twice (causing other conflicts)

I'm using this jQuery script / function to change the design of my select box: http://tutorialzine.com/2010/11/better-select-jquery-css3/ It's implemented and working. My site is built up by an index file that includes all other parts of the page…
Jonathan
  • 2,953
  • 3
  • 26
  • 37
3
votes
1 answer

how to check that jsp file is included or not in another jsp file?

see you all know about including file in a jsp... i have 2 files one.jsp two.jsp in two.jsp i have below given code Long something = 0; in one.jsp code is <%@include file='two.jsp'%> <%@include file='two.jsp'%> i have included same file two…
Jayesh
  • 3,661
  • 10
  • 46
  • 76
3
votes
1 answer

Object passed via jsp:param throws javax.el.PropertyNotFoundException: Property 'foo' not found on type java.lang.String

I know this might be silly question and i tried googling but didnt got perfect answer. I am using following code
Almas
  • 139
  • 1
  • 2
  • 4
3
votes
1 answer

How to include dynamic JSP from another server on a JSP page

I am writing a some code that to dynamically include an HTML snippet in a page. Basically, I have course information on one server, which I want other servers to be able to include with a single line of code. If it was on the same server, I would…
jeph perro
  • 6,242
  • 26
  • 90
  • 124
3
votes
1 answer

JSP getQueryString() and getParameterMap() returning different parameters

I have a JSP that's accessed from an url like http://localhost/products.jsp (thus without a query string), while that page includes other JSP's with:
watery
  • 5,026
  • 9
  • 52
  • 92
3
votes
1 answer

Get filename of source JSP file (even if included)

I am trying to do some debugging of JSP files that include multiple levels of nested includes. e.g. foo.jsp <%@ include file="bar.jsp"%> bar.jsp <%@ include file="baz.jsp"%> baz.jsp <%@ include file="boz.jsp"%> To help determine…
scunliffe
  • 62,582
  • 25
  • 126
  • 161
3
votes
1 answer

Including Servlet content in JSP

I'm using Eclipse (Java EE). I have a Servlet (testServlet.java) under the "Java Resources" > "Logic" package in my Project Explorer. I have a JSP page (sidebar.jsp) under WebContent. This sidebar is part of my web template, which means it is…
JTJM
  • 255
  • 1
  • 6
  • 18
2
votes
1 answer

JSF 1.2 custom component from jsp:include

Before I get started with my question, here are my unfortunate limitations: I'm using JSF 1.2, not 2; so no composite component. I'm using JSP for rendering instead of facelets; so none of those composite components either. I'm not allowed to use…
Zack Marrapese
  • 12,072
  • 9
  • 51
  • 69
2
votes
2 answers

How to implement a "include" jsp tag?

I need to define a jsp tag which named "include". It should be used as: It has an attribute page which points to another jsp, and it will include the content of that jsp and render it. Is there any existing tag lib…
Freewind
  • 193,756
  • 157
  • 432
  • 708
2
votes
1 answer

In a lot of JSP/Servlet app examples, why is the .inc extension used instead of .jsp for include?

In a lot of JSP/Servlet app examples that I saw, when the app includes a resource in a JSP through the directive or action include, then the file included had an .inc extension. Why is that? Why we do not use a .jsp extension instead?
tt0686
  • 1,771
  • 6
  • 31
  • 60
1
2
3
12 13