SSI Reference - 2.

zhaozj2021-02-16  77

Echocommand

THE

Echo SSI Command. As Extensions, It Has The Parameters "ReqState" (for echoing

Jigsaw request states) and "reqheader" (for echoing request header) .Also, it can take the flag "here", whose presence means that the variable is to be interpreted at the deepest request level (in the case of chained internal requests) , IT IT INSERTS The Value of a variable in the document.

Parameters:

VAR = a ssi variable reqState = a jigsaw request state = a request header here = a flag

EXAMPLES:

Display the document Uri display the referer header of the request Display The Request State "PAHTINFO"

Execcommand

The SSI

exec command. It inserts the output from a CGI script or a shell command in the document. Note that in the Jigsaw architecture CGI scripts are just another resource class, so that no distinction is made between executing a CGI script or including a file.

Parameters:

cmd = the command to execute

EXAMPLE:

Display the result of the ls commnd

FlastModCommand

THE Standard

Lastmod ssi commnd.

Parameters:

None

EXAMPLE:

Fsizecommand

The SSI

Fsize Command. it inserts the size of the unparsed file in the document, accounting to the capital value of the variable

Sizefmt.see

CONFigCommand.

Parameters:

None

EXAMPLE:

IncludeCommand

The SSI

INCLUDE Command. (CGI Scripts)

Can Be Included, Simply by Providing a so-caled Virtual path to a resource with a cgiframe) .parameters:

File = the file to include Virtual = a Virtual path ifheader = a request header else = a file

EXAMPLES:

if the request" included.html "else incrude" included2.html "

JDBCCommand

The SSI

JDBC Command Allows you to query a SQL Database Via JDBC. Combinated with Some

Control Commans, It Allows you to display the content of a database easyly.

Parameters:

SELECT = The SQL Request URL = The Database Url Driver = The JDBC Driver Class User = The Username Password = The Password Name = The Result Name Column = The Column Number Next = A Flag

EXAMPLE:

this is the setup of the command. this command move the point to the next line of the result set. display the first column of the current line. display the second column of the current line . - # jdbc name = "result" column = "3" -> Display the third column of the current line.

ServletCommand

The SSI

Servlet Command. Servlet Can Be Executed SIMPLY by Providing a URL Path To a servlet class.parameters:

Name = the command identifier code = the servlet url param = a parameter name value = a parameter value

EXAMPLE:

Control Commands

CounterCommand

The SSI

Counter Command. Used to do things like cpt = CPT 1.

Parameters:

Name = the counter odentifier init = the init value incr = the value to add to the counter value = a flag

EXAMPLE:

initialisation: cpt1 = 0 cpt1 = CPT1 1 Display the current value of CPT1

ElseCommand

Parameters:

Name = the if command Identifier

EXAMPLE:

EndifCommand

Parameters:

Name = the if command Identifier

EXAMPLE:

EndloopCommand

Parameters:

Name = the loop command Identifier

EXAMPLE:

ExitLoopCommand

Parameters:

Name = the loop command identifier command = a command name (jdbs, cpt) var = a command identifier equcast = a string value

EXAMPLE:

ifcommand

Parameters:

Name = the command identifier command = a command name (jdbc, cpt) var = a command identifier equcast = a string value

EXAMPLE:

LoopCommand

Parameters:

Name = The command Identifier

EXAMPLE:

Examplethe Following Example, Display The Four First Column of the Three First Lines of The Users Database.

Name login email age
< / TD> counter Value: The result could be:

Nameloginemailagesmith ssmith ssmith@example.org 25 lafrim ylafrim lafrim@example.org 25 teole pteole teole@example.org 27

转载请注明原文地址:https://www.9cbs.com/read-16859.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.041, SQL: 9