• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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.
 
Saloon Keeper
Posts: 2687
342
Android Eclipse IDE Angular Framework MySQL Database TypeScript Redhat 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 10 kinds of people in this world. Those that understand binary get this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!