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
22
votes
14 answers

Ajax request problem: error 80020101

I have a request which returns a jsp page. But the fact is, the jsp includes jsp:include in it(it calls another jsp file in it) and ie gives the error 80020101. Any ideas? Thanks
Ali
  • 269
  • 1
  • 3
  • 11
21
votes
5 answers

pass java variable in jsp:param

<%! String str = "prerna"; %> > I want to pass a java variable in the param tag,but i am not sure how to do it. I…
Deep
  • 461
  • 5
  • 9
  • 17
19
votes
2 answers

Passing c:forEach variable to a jsp:include

I am trying to access some JSTL variables that were set on a JSTL for-loop in an include. Example: Inside helper.jsp I want to be able to…
littlevahn
  • 637
  • 2
  • 8
  • 25
14
votes
7 answers

JSP Processing instruction not closed

I tried to include an HTML file to my JSP but I eclipse show'd this error The included file <%@include file="includes/head.html" %> And the error Processing instruction not closed And this is just the simple JSP <%@include file =…
user962206
  • 15,637
  • 61
  • 177
  • 270
13
votes
2 answers

Include file from dynamic property value

I have a project in Java thgat needs to use; <%@include file="content.jsp" %> to include a file into the current jsp page. However, I now need the content.jsp to be dynamic. How can I substitute everything in the quotes with a…
griegs
  • 22,624
  • 33
  • 128
  • 205
12
votes
4 answers

Preserving session in Java with sendredirect

I am creating a Login Application in JAVA.I am making the presentation in JSP and all the logic (Database connectivity) in Servlet [this is not a right approach I know that]. I check the username Password in Servlet and then create a session…
user1765876
12
votes
4 answers

how to use in jsp file. eclipse said it is unknown tag

I want to write a simple web page in .jsp file. I need to use tag. but it is not recognized. eclipse said it is unknown tag. I googled it and some said I need to include the standard lib (which is JSTL?). I just want to use some basic tags…
Joey
  • 2,732
  • 11
  • 43
  • 63
8
votes
2 answers

response.sendRedirect() from jsp:include being ignored?

I've got a jsp file, which includes another jsp file to check some values and such: Inside the setup.jsp I've got some conditional code which determines if some needed values are set in the session and if not…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
8
votes
1 answer

How to import constants in a JSP page

Are there any better ways to use constants in a JSP than: <%@ page import="static package.Interface.NAME"%> Is there any downside to using these (outside of mixing code/content)? Thanks!
javanix
  • 1,270
  • 3
  • 24
  • 40
8
votes
4 answers

what's the fundamental difference between a jsp taglib vs including a jsp page?

i have several common elements (components), that will generate some html. it seems my options are creating a taglib, or just putting that logic into a jsp page and including the jsp. whats the difference? positives vs negatives?
joshjdevl
  • 7,092
  • 12
  • 45
  • 57
6
votes
1 answer

JSP - Can I use inside ? Exception: "Must use jsp:body to specify tag body"

I have the following inside a JSP: window.isSummaryComplianceLinkVisible = '${TabList.isSummaryComplianceLinkVisible}'; window.isDetailComplianceLinkVisible =…
Agustin
  • 81
  • 1
  • 3
5
votes
2 answers

unable to add a cookie included in JSP via jsp:include

Cookies are not getting added to the browser when the code adding the cookie is part of a fragment of JSP (includes.jsp) included in the primary page (main.jsp) via JSP:INCLUDE. The code works fine when it is part of the primary page (main.jsp).…
SteveL
  • 171
  • 1
  • 1
  • 6
5
votes
3 answers

Can I import my own jsp page into another jsp page..?

I have prepared a static html page using netbeans. Can I import that page into another page so as to not re-write the code again n again and then make the respective changes.
Praful
  • 51
  • 1
  • 1
  • 2
5
votes
5 answers

why jsp:include parameters not visible

I have exactly the same basic question about accessing jsp:param values as this poster; following his example exactly does not work for me. The parameters passed in via jsp:include don't seem to show up in the included file. Is there something…
Justin
  • 4,437
  • 6
  • 32
  • 52
4
votes
3 answers

Why is my included JSP not found?

The main.jsp is location in this directory of the web app: /WEB-INF/jsps/foo/section/main.jsp main.jsp contains the following line of code to try to include the code contained in mainInclude.jsp which is found in a different directory:
Bert
  • 41
  • 1
  • 1
  • 2
1
2 3
12 13