| Author |
about properties file
|
siva prakash
Ranch Hand
Joined: Aug 24, 2004
Posts: 80
|
|
Hi , I am new to web applications . now iam going through a code of an application file , there i found some files with extension of .prop and .jspf . Pls explain about these files, what they contains, their uses and in which situation we use them thanks, Siva
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Properties files are usually used for configuration (like ini or rc files). They store a list of name/value pairs. See: http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html '.jspf' is an extension that you give to JSP fragment files, intended to be used as include files. The 'F' tells compilers that these files are not intended to be compiled as standalone JSPs.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
siva prakash
Ranch Hand
Joined: Aug 24, 2004
Posts: 80
|
|
Hi Ben, thanks for ur reply , however i didn't understand the following sentence The 'F' tells compilers that these files are not intended to be compiled as standalone JSPs. what u mean by standalone JSPS can you brief me when we can opt for these jspf files thanks, siva
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26141
|
|
Siva, Ben meant the "F" as in the last letter of .jspf, or fragment. Normally, when you have a standalone JSP, you can type its name into a web browser and get some output. A JSP fragment is intended to be part of a JSP. So if you were to type its name into a web browser, you wouldn't expect to get anything meaninful, or even an error message. If you have a JSP that only gets included in other JSPs, call it a JSPF. This is useful for common page elements, such as headers and footers.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: about properties file
|
|
|