jspf file

34 views
Skip to first unread message

Kiran Gawde

unread,
Mar 29, 2010, 1:27:26 AM3/29/10
to javatechnicals
What is the difference between jspf and jsp file.What are the
advantages of using jspf file over jsp.

srinivas

unread,
Apr 22, 2010, 3:21:44 AM4/22/10
to javatechnicals
.jspf files are as per J2EE standards. These meaning stands for Java
Server Pages Fragments.
As per jsp best practices the size of file should not better exceed
20kb.
But in real time world application has a lot of code repeated.
Instead of re writing the logic created a .jspf file. and you can use
them include directive.

This is just a simple code convention. You might have seen a common
jsp include on top of every page.
Sometimes we don't require whole page solution only a part of it is
required to reduce the load.

As per J2EE standard you place these .jspf files in /WEB-INF/jspf/
folder
--/WEB-INF
--/classes // compiled classes of java source
--/jspf // for jspf files
--/tld //for tag library
--/lib // library required to build
--/dtd // definition of taglibs

In case a any further queries, please feel free to ask.


--
Subscription settings: http://groups.google.com/group/javatechnicals/subscribe?hl=en
Reply all
Reply to author
Forward
0 new messages