Forum Moderators: open

Message Too Old, No Replies

saving .jsp as .java

         

thamps

4:29 am on Jan 20, 2005 (gmt 0)

10+ Year Member



hi,

For an technical interview , interviewer asked one question. " he want to save jsp files as .java files, for this purpose what all changes are to be made in web server?"

is it possible to save jsp files with .java extention and without .jsp file extention? or it was a tricky question to test my knowledge?

if it is possible to save jsp with .java extention , please tell me how to do so?

BlobFisk

9:13 am on Jan 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It certainly is an unusual one. JSP files are scripted server pages whereas JAVA files are the raw Java code file (before being compiled into the bytecode CLASS file).

However crazy it is, it is possible! You need to tell your web server setup to parse JAVA files through the JSP engine and it should work fine...