Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about properties file

 
siva prakash
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
siva prakash
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic