Questions tagged [jsp-fragments]

JSP Fragments Encapsulates a portion of JSP code in an object that can be invoked as many times as needed.

JSP Fragments Encapsulates a portion of JSP code in an object that can be invoked as many times as needed.

https://tomcat.apache.org/tomcat-5.5-doc/jspapi/javax/servlet/jsp/tagext/JspFragment.html

47 questions
1
vote
1 answer

Eclipse: Jspf can't be open with Editor

My Editor can't open JSPF Files in Eclipse. When i go to: "file Associations" & "Content Types" menus, jspf are associated with "JSP Editor " But it does not working. When i try to open a ".jspf file" I have this message: Unsupported content type…
RoadNKite
  • 21
  • 3
1
vote
2 answers

How to use JSP tags in JSP fragment?

Can anyone tell me if you can use JSP tags like this: ... in fragments of JSPs with a .jspf extension which are embedded into JSPs using include, e.g.: or is it…
Mr Morgan
  • 13
  • 1
  • 5
1
vote
1 answer

Javascript, JSP input value is being updated for every append

I'm trying to append a new DIV every time the user clicks on a button. For this I'm using this function: function afficherMyObject(blocParent, myID) { $q(".tdChampMyObject", blocParent).append('
Mohamed NAOUALI
  • 2,092
  • 1
  • 23
  • 29
1
vote
1 answer

problem with encoding when using jspf

When I include jspf inside jsp page such as: the encoding of all Arabic contents has been unreadable. Where can I set encoding style to UTF-8 when including jspf? I need to know the solution, please some body help…
palAlaa
  • 9,500
  • 33
  • 107
  • 166
1
vote
1 answer

What is the best practice for layout of jsp page?

Simple example: i have a page with header, footer and left menu. This modules viewing always. In header i am use dynamic information for count of users. I am create jspf files for header, for footer and left menu and include it to main page. I have…
Alexey Nikitenko
  • 2,047
  • 2
  • 20
  • 30
1
vote
0 answers

duplicate variable in jsp file

I have a jsp file in which I included twice a jspf file. In this jspf, I declared a variable : boolean allEmpty = Util.isEmpty(dossierArray) && Util.isEmpty(documentsUrbanArray) && Util.isEmpty(lienGuepardArray) …
1
vote
1 answer

What to do with css for JSP fragment?

I'm writing my first dynamic webpage with JSP. Right now I've got a working index.JSP without a header. I wrote a header.jspf which looks like this:
1
vote
1 answer

Eclipse - jspf validation - Premature end of file

I am porting my J2EE project from Eclipse Helios to Eclipse Kepler. My project validates and works correctly on Helios, but, when moving it and all of its dependencies to Kepler I get this "Premature end of file" during the validation. The file that…
Enrico
  • 103
  • 2
  • 10
1
vote
1 answer

Fragment jspf files not correctly included

I moved all my included files into a directory /include from root. Now, when I name those files .jsp they are all included properly: But these files are fragments, thus I want to rename them…
John Rumpel
  • 4,535
  • 5
  • 34
  • 48
1
vote
1 answer

JSP Fragments: Which tags are reduplicated at the top

I have a JSP page which has the following tags prior to the tag: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="c"…
David Neuschulz
  • 959
  • 1
  • 8
  • 14
1
vote
0 answers

Issue with icanhaz

I have the following code saved in a .jspf file:
Michael
  • 2,031
  • 6
  • 21
  • 27
0
votes
1 answer

What are the best practices to include static content with Jsp?

What are the best practices to include static content in a Java web application? I'm thinking about html, another jsp, jspf. If any of you have other ideas/recommandations, can you detail your suggestion?
0
votes
2 answers

How to Include Image tag in JSPF file

I want to image to be included in "usermenu.jspf file which is then included in main flat_status.jsp file
Shaggy
  • 5,422
  • 28
  • 98
  • 163
0
votes
1 answer

Getting: org.apache.jasper.JasperException: /view.jsp(35,3) PWC6117: File "/assignment/entry_search_columns.jspf" not found

The problem is: javax.portlet.PortletException: org.apache.jasper.JasperException: /view.jsp(35,3) PWC6117: File "/assignment/entry_search_columns.jspf" not found I am trying to build the gradebook application by watching the tutorials from…
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