Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

SSI Parameter Passing Problem  RSS feed

 
Ranch Hand
Posts: 835
  • 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: 2570
323
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • 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" -->
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!