aspose file tools*
The moose likes Servlets and the fly likes Executing servlets from HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Executing servlets from HTML" Watch "Executing servlets from HTML" New topic
Author

Executing servlets from HTML

Joe Wolf
Ranch Hand

Joined: Jul 05, 2001
Posts: 42
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

Joined: Mar 22, 2000
Posts: 12789
    
    5
I believe that is an obsolete usage. JSP has taken over so you might as well switch.
Bill
Joe Wolf
Ranch Hand

Joined: Jul 05, 2001
Posts: 42
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Executing servlets from HTML