jQuery in Action, 3rd edition
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Executing servlets from HTML" Watch "Executing servlets from HTML" New topic

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

Joined: Mar 22, 2000
Posts: 13027
I believe that is an obsolete usage. JSP has taken over so you might as well switch.
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?
I agree. Here's the link: http://aspose.com/file-tools
subject: Executing servlets from HTML
It's not a secret anymore!