Is there anything wrong with creating a ".jsp" page that is pure html with no scripts? I have a page like this in a site I built that lies in a chain of other jsp pages that do have scripts. I made the page a jsp page because I wasn't initially sure if I would use dynamic elements on that page or not. And I didn't think this mattered.
All the jsp pages display fine on firefox/netscape/ie when viewed on a windows machine (I wouldn't expect the browser to matter since the html is generated server-side). However, when I view the site using a safari browser on a mac machine a problem occurs: the first time I hit the html-only jsp page, it displays fine. However, every time I hit this page subsequently, safari displays the page's source code. Then if I hit the "refresh" button, it displays the page properly. But if I move to another page and then go back to the problem page, safari displays code again unless I refresh. All of the other jsp pages (that actually contain jsp scripts) are fine.
I'm not sure why this would happen since the server is sending complete and valid html code to the browser. I even copied the code that safari was receiving and ran it through a markup validator. No errors.
Is there anything wrong with having a ".jsp" page with no jsp tags? Is there a certain "<%@ page ...%> declaration required? Incidentally, I tested for this problem both with and without this...
<%@ page contentType="text/html; charset=iso-8859-1" language="java" errorPage="contact.htm" %>
at the top of the problem jsp. The problem occurs in both cases.
I guess the next thing I should try is to change the filetyp for the problem page to ".html" and see if this solves the problem. But I would really like to know why this is happening.
Of course a bit of my problem stems from the fact that I don't own a mac so troubleshooting is more cumbersome than it should be. I guess I need to get myself a mac mini on ebay.
If you'd like to witness this problem, get on a mac and browse (using safari) to
http://insatiablestudios.com/searchResults.jsp Then pick a shade you like and click "add to cart". Then hit the "checkout" button. This (chooseDelivery.jsp) is the problem page (but it should display correctly the first time). Click "Ship it over land". This should call up chooseDestination.jsp. Next, hit the "back" button. You should now see html code instead of the correctly rendered page. Hit "refresh" and the page appears correctly. Now hit "back" and then "checkout" again. Displays code again.
Why? Am I missing something very simple here?
I very much appreciate any insight you may have into this problem.
Thanks,
sean