Win a copy of The Java Performance Companion this week in the Performance 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: 13064
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