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
0
votes
2 answers

jQuery.load() a JSP into a div

I am looking for some info on JSP imports. I currently have a main.jsp. A jsp is loaded into a div using jQuery upon user selection of of an item. then inside of that div, a modal dialog is opened upon another selection, and a jsp is loaded into…
bob
  • 1
  • 1
0
votes
1 answer

Is there a way to make JSP include action parameters optional

I use the function for a lot of my pages but the one big downfall I keep coming across if that if you put parameters in the page to be included, it seems as though you can't make them optional. Therefore if you have a bunch…
Flypkey
  • 13
  • 1
  • 4
0
votes
2 answers

Can jsp:include pages pass through filters

I have a jsp page in which includes a jsp page through jsp:include. Now the question is does the request for the included jsp pass through the filter? following is my filter mapping in web.xml
0
votes
2 answers

How to get include url in Filter

In my JSP page index.jsp I have I have a filter which is mapped to hello.jsp, how do I get the include url in this case /hello.jsp?name=user. If I try request.getUrl(), it gives me /index.jsp.
yogo
  • 36
  • 1
0
votes
0 answers

Unable to include a jsp file from a location outside the application

I have an application which has a jsp file. I need to include another jsp file which is in tomcat properties folder in this jsp file. I tried several methods but everytime I get the error as the file cannot be found. Jsp in application: <%@page…
Divya Rose
  • 227
  • 4
  • 22
0
votes
1 answer

Eclipse - How to disable / get rid of bogus "fragment not found" errors

I am using a JSP include statement to include a controller method like below : /menu is mapped to the controller, /showMenu is mapped to the method that checks what the user logged in to the web page has access…
Martin
  • 1,977
  • 5
  • 30
  • 67
0
votes
1 answer

include jsps compilation error

Had a quick question on the right way to include jsp header files (using appengine). I have an htmlinclude.jsp that just contains the head portion This is the header file
user529265
  • 820
  • 10
  • 27
0
votes
1 answer

Highlighting selected tab in nav header, JSP

Building a web app using JSP for the first time, and attempting to make a navigation header to span all my pages, with the current page highlighted. My understanding is that the way to share a header like this between my pages would be to use a JSP…
anon20202
  • 5
  • 3
0
votes
1 answer

jsp include file without line breaks

I have the following line of javascript code: element.innerHTML = '<%@include file="../jsp/welcome.jsp" %>'; Everything would work fine if the welcome.jsp file is written in one line. But as the file contains line breaks then the javascript code is…
xMichal
  • 624
  • 2
  • 7
  • 19
0
votes
0 answers

when to use jsp include and page directive include

In jsp we can use both jsp include tag and page directive include tag to include jsp classes in another jsp file. <%@include file="./inc/jsp3.jsp" %> To my knowledge the main difference is…
Dil.
  • 1,996
  • 7
  • 41
  • 68
0
votes
2 answers

Form with onSubmit on a JSP

I've got this form on a JSP:
Then I have the following Javascript in an…
gaudi_br
  • 183
  • 2
  • 12
0
votes
1 answer

Jasper exception occurring while trying to include a jsp page with dynamic URL

Please look at the following code snippet and let me know what's wrong with that as I'm getting the below errors when trying to run it. org.apache.jasper.JasperException: The jsp:param action must not be used outside the jsp:include, jsp:forward, or…
Hari Krishna
  • 67
  • 11
0
votes
2 answers

Export & deploying webapp in Eclipse

I have trouble with export my very simple project in eclipse SDK: eclipse does't compiling *.jar file for my "core" class. Struct of my simple project: │ .classpath │ .project │ ├───.settings │ .jsdtscope │ …
Dmitro
  • 1,870
  • 3
  • 16
  • 25
0
votes
1 answer

Dynamically importing a file in a JSP page

I want my JSP page to include another page based on a value in the Request. So i set the following: request.setAttribute("chosenLang", "NL"); RequestDispatcher dispatcher = request.getRequestDispatcher(address); …
bmeulmeester
  • 1,117
  • 12
  • 26
0
votes
2 answers

Webpage jsp:includes header but doesn't use linked stylesheet

I've got some problems with finding the right way to ask this question. But I hope you understand the problem and are able to help. I've set up a really basic Maven Web-App, using jsp's. At the moment I have 2 pages. Index.jsp (Starting page with…
Tristan
  • 40
  • 7