Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To embed JSP code in html file

 
Raj Puri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an HTML file called menu.html.
Now, for some reason I want to embed a JSP code in menu.html. Seems it does not parse that. Is it right that file name needs to be .jsp to have any JSP code. I tried to include JSP code in <script language="javascript"> tag hoping it will take it. This did not work also.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It does need to be ".jsp" or ".jspf" (jspf is for fragments that will be included in ".jsp" pages).
[ March 30, 2005: Message edited by: Ben Souther ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Javasciprt is something else and JSP is something else.
You can try to change it to .jsp.
 
Niki Nono
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP stands for JAVA SERVER PAGES and it is not related to javascript in any way.
jsp gets executed on the server and html is run by ur browser. so u need to do the reverse and rename the file to .jsp and embed html in it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic