Like PHP, a JSP or Java Server Page file creates a website from the server, allowing more complicated functions than a basic HTML page. PHP and JSP files are text-based, so if your server generates a PHP file that should be displayed as a JSP, switching it over is easy. The browser displays a webpage based on the extension, so even if the code would be best displayed in JSP form, if the extension is PHP the browser displays it that way.
Step 1
Right-click the PHP file on your hard drive.
Video of the Day
Step 2
Select "Open with" and click "Notepad."
Step 3
Select "Save As" from the "File" menu.
Step 4
Click "Java Server Page (*.jsp)" from the format menu and click "Save." The code is now a JSP file and will be displayed on your website as such.
Video of the Day