• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP code

 
Dibya Bhadra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have written a very simple JSP code which contains html and shows seneral fields(text fields). Though I have not yet attached any validations on these fields but I am not able to see the page when I try it to open through IE, it gives me the error message 'page can not be found'. Strange enough when I save the same code with a different file extension other than jsp and try opening through IE am able to see the page and fields.
code name : sample.jsp (not able to view if opening through IE)
codename :sample.jsp.latest or sample.jsp.bkp(able to view the page through IE)
Can anyone explain this erratic behaviour am I missing something?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you just opening the file in the browser, or is it being served by a servlet container like Tomcat?
 
Dibya Bhadra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just opening the file in browser.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well that will certainly not work. JSP is evaluated on the server, not the client browser, by a servlet container such as Tomcat, Resin or other products. The resulting plain HTML is then sent to the browser for display.

Search this forum for links to tutorials on JSP for further info.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!