• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

File Extensions to Use

Say, I've created an index.jsp pages that calls three other html files... How should I name the other files?  file1.htm, file2.htm, file3.htm, or file1.jsp, file2.jsp, file3,jsp?  (Somehow I had the idea that all that was required was for the invoking page - index.jsp - to have the jsp extension.)  And, what guidelines exist?
0
LarryAndro
Asked:
LarryAndro
  • 2
  • 2
1 Solution
 
petmagdyCommented:
actually the index page if static can be index.html u set that in the welcome page in web.xml of ur web module, u can name the other html or jsp files any name based n the functionality but don't use special character like space if u have a page called for example Questions and answers then the file could be called questions_and_answers.html or just qa.html
0
 
LarryAndroAuthor Commented:
It sounds like any file can potentially be either html or jsp, as you say, "based on the functionality."  Meaning, if it's static, containing no jsp or javascript, name it html.  Otherwise, name it jsp?  
0
 
petmagdyCommented:
JSP is used if their is a Java server side logic is needed like a web page retrives from database, static means web page tat provide static information
0
 
LarryAndroAuthor Commented:
Thanks!!  That helps...
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now