• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

can jsp page be included in an html page?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
Need help. Can a jsp page include a already made html page with itself.??
Or can an html page include a jsp page.???
I am new to jsp. Could u pls help!
Regards,
Vartika
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes we can include a jsp file in an html file.. but we just need to remember the syntax to include them
like we can have a simple html file with a jsp tag
<html>
<body>
<%
this is a simple jsp file
%%>
</body>
</html>
and try to run it in the explorer:
http://localhost:8080/yourfilename.html
what exactly are u looking for?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, you cannot.
There is no include mechanism at all in HTML so there is no possibility of including any kind of page, including JSP.
Now, if you have "server-side includes" enabled by your web server, it might be possible to include JSP pages and have them processed by a servlet container. But that would depend upon the configuration capabilities of your server.
So, backing up a bit. What are you trying to accomplish in the first place?
bear
 
I will suppress my every urge. But not this shameless plug:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic