This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing servlets from HTML

 
Joe Wolf
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to have HTML writers be able to insert a line at the beginning of their code that calls a servlet. I tried setting up JSSI-1.1.2 on my Apache 1.3.20 server but it didn't recognize <SERVLET> tags. I tried using SSI <!--#servlet code="yadayada" --> but Apache didn't recognize that command.
What should I do? Should I use JSP? Or, has anybody successfully installed JSSI? If so, how did you do it?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that is an obsolete usage. JSP has taken over so you might as well switch.
Bill
 
Joe Wolf
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I finally did get JSSI to work. It's not that spectacular but it does allow me to totally separate the Java code from the HTML code...so all the HTML authors have to do is include the line <SERVLET CODE="Authorize"></SERVLET> at the beginning of the file to make sure its viewers have been authorized.
If I were to use JSP, would it allow me to do the same thing?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic