• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

SSI Parameter Passing Problem

 
Ranch Hand
Posts: 837
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably not the best location for this but the SSI is within a HTML page (if needed to be moved please do :-)). I have a SSI



that is included in a HTML Page. I want to pass in a parameter or two into this script but trying to add on an argument results in a SSI failure. How can I pass in parameters into this script via SSI? TIA for any helpful advice.
 
Sheriff
Posts: 3072
446
Android Eclipse IDE Angular Framework TypeScript Redhat MicroProfile Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which web server / framework are you running (httpd, Tomcat, etc.)?

I haven't use Service Side Includes for a long time so I could be wrong, but shouldn't you be using cmd= rather than cgi= to execute a script and include the results in the page?

    <!--#exec cmd="/cgi-bin/dir1/myscript.pl arg1 arg2" -->
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic