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
2
votes
1 answer

Unloading/deleting or reusing already loaded javascript

I'm trying to load a jsp-file into a jQuery UI dialog http://jqueryui.com/demos/dialog/. The jsp contains a fullCalendar http://arshaw.com/fullcalendar/ calendar. The console calls for calLoader.jsp which more or less only contains:
2
votes
1 answer

Why is the aliased Model object not accessible from a jsp include?

I have a Model object ("foo") added to the ModelMap in the MVC controller: Spring MVC Controller: Foo foo = new Foo("FooName"); model.addAttribute("foo", foo); return "foo"; I can call properties of the object in foo.jsp. I also set an alias for…
Greg
  • 21
  • 1
2
votes
1 answer

SSI vs JSP difference?

What's the difference in using SSI include & JSP include? e.g. and <%@ include file="page.jsp" %>
Njax3SmmM2x2a0Zf7Hpd
  • 1,354
  • 4
  • 22
  • 44
2
votes
1 answer

From an included JSP, how do we access a variable declared in another included JSP (same parent)

I have a parent JSP with code that looks like a.jsp has a Java object which I need to access in c.jsp Is there a way to do…
zeiger
  • 700
  • 5
  • 16
2
votes
2 answers

Are jsp standard actions used anymore?

This is a quick question for all of you writing jsps in production. Do you use jsp standard actions and why? What are maybe some of common use cases? I ask because there are so many taglibs out there that seem to be so much more capable and I am not…
Kapsh
  • 20,751
  • 13
  • 36
  • 44
2
votes
0 answers

JSP include - compilation error cannot find symbol

Hi (my first question on stackoverflow), I'm using JSP on my website and I've got an error when I try to deploy it. For information, my website is hosted by Google App Engine. Locally, everything is working good. The way I include jsp from an…
Boris
  • 21
  • 3
2
votes
1 answer

JSP:Include not being called on forwarding page using doPost requestDispatcher

I am currently writing an web application where you need to log in, using username and password. The next step in the process is to select a Project in which the logged in user is involved. Once the project is selected and the submit button has…
Rhizosis
  • 29
  • 2
  • 9
2
votes
1 answer

Return with a 500 error from inside a JSP include

Is there a way to, from inside of a jsp:include page, get its requesting page to respond with an HTTP 500 error? I've tried using the response.sendError(418, "I'm a teapot.");, but that only works in the JSP that contains the jsp:include, and only…
Daevin
  • 778
  • 3
  • 14
  • 31
2
votes
2 answers

Maximum depth

We're using an application build using Weblogic Workshop 10.3 and running on weblogic server 10.3. I'm trying to display a tree of data using recursive calls to a jsp page using . The problem I'm having is that after about 3-4 layers…
jrlambs
  • 101
  • 9
2
votes
2 answers

php's Header equivalent in JSP

in php i used to authenticate whether a user was logged in or not by checking the session for a member id, if set ok, else the page would be redirected via Header to the login page. this auth script was in auth.php and i used to include it in any…
abel
  • 2,377
  • 9
  • 39
  • 62
2
votes
2 answers

Struts 2 s:include tag not working for header jspf file

I have index.jsp which contains header.jspf,main content and footer jspf. I am using s include to include header and footer jspf. My header jspf contains surl tags with param values in it. I have included s tagslib in it. My index.jsp/header.jspf…
Kiran Badi
  • 501
  • 2
  • 9
  • 24
2
votes
3 answers

java.lang.IllegalStateException: Cannot forward after response has been committed while including HTML files using jsp:include

When is used for including HTML file DispatcherServlet is throwing java.lang.IllegalStateException: Cannot forward after response has been committed I have one servlet: web
Pavel Polivka
  • 858
  • 4
  • 22
2
votes
3 answers

JSP include directive, jsp:include action, relative vs. absolute paths

I am doing some basic templating in my JSP-based webapp. For example, I want to have a standard header and footer (basic HTML) that I pull into each of my JSPs. My content JSP is at /WEB-INF/jsp/home.jsp, and I have template JSPs at…
Matt Mc
  • 8,882
  • 6
  • 53
  • 89
2
votes
2 answers

How to use declared variable in included page?

on header include file: ${pageTitle} test page: <% String pageTitle = "Test Title"; %> I am trying to declare the page title on the test page and use the value of that…
Kid Diamond
  • 2,232
  • 8
  • 37
  • 79
2
votes
1 answer

How to read Action attributes from JSP fragments included with ?

Trying to call an Action's getter from an included JSP, I get null: MyAction.java private String message = "The message I want to read..."; public String getMessage() { return message; } main.jsp <%@taglib prefix="s" uri="/struts-tags"…
Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243
1 2
3
12 13