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
1
vote
1 answer

Including a jsp file through a java class

I am new to working with jsp tags. I have a tag defined, and within the java class that is used to generate the tag, I would like to include a jsp file (the content is too long to be nicely maintainable as a java string). The problem is that tags…
Emilie
  • 403
  • 2
  • 5
  • 17
1
vote
1 answer

Setting a default value to a param in s:include

I am writing a small widget in struts which I want to include. The height of the widget should be auto unless I pass in a param of height. For example: # Example 1: 300…
PKKid
  • 2,966
  • 3
  • 23
  • 20
1
vote
3 answers

jquery - open links in the current tab instead of leaving the page

I'm very new to jquery and I need you help with the following: I have a file "mainPage.jsp" which contains jquery tab, with only one tab at the moment. the content of this tab is an included jsp file, users.jsp, which builds a table of users. each…
Blue
  • 1,889
  • 4
  • 16
  • 16
0
votes
1 answer

include GWT in jsp

I need to include a GWT file into JSP page. The GWT resource is the form of : GWTPage.jsp#browser-based_bookmark I've tried using jsp:include and RequestDispatcher, for jsp-include, it says resrouce not found, and for RequestDispatcher, it returns…
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
0
votes
2 answers

How do I dynamically include the backing bean value in jsf 1.2

Hi i have the following code creatPage1.jsp i have updatePage1.jsp I want to be able to do include (via ui:include or…
Chun ping Wang
  • 3,879
  • 12
  • 42
  • 53
0
votes
1 answer

Jsp:Include Throwing Nonspecific Error

I am trying to pass a Boolean variable to an include page, but the error I'm receiving is not helpful. I'm also very new to JSP so I'm adapting to reading Java-based error logs. <% boolean publications = false; %>
justacoder
  • 2,684
  • 6
  • 47
  • 78
0
votes
4 answers

JSP out.flush() issue

I had a weird problem today. I have a head.jsp ( ending with out.flush ) which is being included by other pages. most of the pages doesn't have problem with this out.flush(); but one of my page is failing with IllegalStateException on jboss 4.2.2…
Olgun Kaya
  • 2,519
  • 4
  • 32
  • 46
0
votes
0 answers

Too slow loading of jsp fragment

devs. Here I have a problem with the speed of jsp footer loading I have my jsp page, where I include header.jsp, footer.jsp and navigation bar. header and navbar loads in a wink, but content of footer loads too slow (about 10-15 sec). But when I…
Volodymyr
  • 1
  • 3
0
votes
2 answers

Including lots of jspf files in a jsp file causes high memory usage

We have a web page, running on a glassfish server. In our jsp file we have a lot of includes like the one below. These files are included according to the user choice. Our jsp file is basically…
Alptugay
  • 1,676
  • 4
  • 22
  • 29
0
votes
0 answers

How to pass all URL parameters through a tag?

I have a JSP page which is called with various URL parameters like this: http://myserver.com/page_A.jsp?paramA=hello¶mB=you This page however doesn't do anything with the URL parameters; it's just supposed to pass them on to a second JSP page…
halloleo
  • 9,216
  • 13
  • 64
  • 122
0
votes
2 answers

java parameter in jsp:include

I wanted to know if I can pass a java variable to a . I tried to do something like this inside a jsp file: <% String folder = request.getParameter("something"); %> This does not work. I…
rgamber
  • 5,749
  • 10
  • 55
  • 99
0
votes
1 answer

How do you access an object by reference (not by value) in a jsp:include file?

a little back story: I am working on a file that got to be very large, eventually resulting in the following error: The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit. In order to get around…
AlexScript
  • 809
  • 8
  • 18
0
votes
1 answer

jsp:include making the divs mis-aligned in ie7

I have a webpage in which I am using 2 jsp:include directives. Basically one is the header and other is the footer. The headers and footers are aligned correctly. But the central body of the main page is aligned to the left side. This is the code of…
n3o
  • 2,795
  • 5
  • 24
  • 37
0
votes
1 answer

Using 3rd Party Java Libraries on JSP

How can I use 3rd party libraries like Twitter4J on JSP?
Nathan Campos
  • 28,769
  • 59
  • 194
  • 300
0
votes
1 answer

Confusion related with and <@ include>? Dynamic include and "friendly Containers"

There is good discussion on Stack Overflow about their difference found here. It roughly says that is dynamic, while <@ include> is static. Yet, I have some questions. 1. st question Say I use to include header.jsp file.…
Stefan
  • 969
  • 6
  • 9