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
94
votes
5 answers

What is .jspf file extension? How to compile it?

What are .jspf files in JSP? As I know the compiler will look for .jsp files to compile, then how are the .jspf files compiled?
giri
  • 26,773
  • 63
  • 143
  • 176
9
votes
3 answers

Difference between JSPX and JSFF file-types inside ADF framework?

What is the difference between JSPF and JSFF file-types in ADF ? I have not been able to find sufficient information on JSFF files online. JSPX and JSFF refer to JSP Fragment and JSF Fragment respectively. JSFF is typically used in ADF projects.
Debajit
  • 46,327
  • 33
  • 91
  • 100
6
votes
2 answers

how to precompile .jspf files with jasper2 in ant

.jspf files are "Java server fragments" -- jsp that is intended only for inclusion () in other .jsp files. Precompiling all .jsp files is very handy because it exposes syntax errors, missing imports, java code errors, etc. at build time rather than…
TSnyder
  • 437
  • 4
  • 6
5
votes
2 answers

How to Include a JSP Fragment into a JSP Page while forwading from Servlet?

First, Please suggest me if my question heading is not correct. Moving on to question: Say I am having below components: search.jsp - A JSP Page with a Form to Submit Data Search.java - A controller Servlet having both get() and post() defined…
Asif
  • 4,980
  • 8
  • 38
  • 53
4
votes
1 answer

Is it possible to add jspf files to a jsp page without using jsp:include?

What I want to achieve is something similar to a master page in asp.net. I'm following a tutorial, but I may have missed something cause I have added my header.jspf and footer.jspf to the WEB-INF/jspf folder and index.jsp is outside of WEB-INF. I…
Erik L
  • 126
  • 4
  • 15
4
votes
2 answers

How to create a Macro/Snippet/HTML Fragment/Named section in JSP without using tags/includes/JSPFragments?

This might be a very newbie question, but I didn't find anything satisfying I want to do somethign like this in JSP (out of the box preferably): e.g. in a file called products.jsp an imaginary implementation that explains what I…
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
3
votes
2 answers

How does the server and/or browser handle JSP and JSPF files differently?

Edit: This question was asked in response to incorrect observations I made. Please disregard. I know that JSPFs are used to define fragments that can be included inside JSPs. Beyond this convention, are there differences in how the server (eg…
WoodenKitty
  • 6,521
  • 8
  • 53
  • 73
3
votes
2 answers

Unknown tags and undefined functions in JSP fragments

I imported a web project build in JSP, which I am relatively new to. I got some errors in WEB-INF/includes/components that I am unable to resolve. Some .jspf files show me errors such as at that line:
Mohamed Khamis
  • 7,731
  • 10
  • 38
  • 58
2
votes
1 answer

Error in includign jspf

I want to make include jspf into index jsp page , these statements <%-- any content can be specified here e.g.: --%> <%@ page pageEncoding="UTF-8" %> aappears in the index page !! here's the include line in index page
palAlaa
  • 9,500
  • 33
  • 107
  • 166
2
votes
2 answers

jsp include doesn't work for jspf files under tomcat 8 but works under the jetty

I have the following jsp: ... ... When I open following jsp when application run under the tomcat 8 I see that my include replaces with empty string. When I run application under the jetty - it renders…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
2
votes
1 answer

Customizing LifeRay portlet using jspf hook

i need to customize the create account portlet, i want to hide the filed "middle name" , but that field exists under the file /html/portlet/login/create_account_user_name.jspf, using the hook for customizing jsp pages didn't work because that file…
Mathis Hobden
  • 356
  • 2
  • 7
  • 19
2
votes
1 answer

.jspf not compiling even though in jsp

I have two files. choose.jsp and little.jspf choose.jsp little.jspf <%@ page language="java" contentType="text/html; charset=ISO-8859-1" …
dono
  • 149
  • 1
  • 4
  • 16
2
votes
1 answer

How do I get Aptana to recognize .jspf files?

How do I get Aptana to recognize .jspf files? I'd like to have syntax highlighting for .jspf files. I'm sure there's a preference/config option or an xml file to edit, but I'm not finding it. I assume it's similar to the eclipse process, so I'm…
Keith Bentrup
  • 11,834
  • 7
  • 49
  • 56
2
votes
1 answer

include jspf in another jspf

I'm working on a JSF project on NetBeans. I'm using JSPF fragments for modularity. My JSPF directory is "/WEB-INF/jspf". I'm using for including JSPF files. The problem is: I tried to include a…
gesus
  • 471
  • 1
  • 10
  • 24
1
vote
1 answer

Using JSP-Fragments outside of the tag where it was defined

I want to define a template using a JspFragment. That's why I created the following Tag class: public class CreateTemplateTag extends SimpleTagSupport { private String name; public void setName(String name) { this.name = name; …
Javaguru
  • 890
  • 5
  • 10
1
2 3 4