Host scripts taglib ver. 1.5

    Custom JSP tag. This tag lets you execute scripts on your host.

For example (on NT):

<%@ taglib uri="taglib.tld" prefix="exec" %>

<exec:runScript command=" /c some_file.bat" />


If your script prints some data you may save them in the page scope variable:

<%@ taglib uri="taglib.tld" prefix="exec" %>

<exec:runScript command=" /c dir" id="A" />

Directory is <%=A%>

Tags are:


Executes the given script (shell command) on your host. Parameters are:

1) command executed command
2) id Optional parameter. Describes a name for the page scope variable (type is java.lang.String).
3) asynch Optional parameter. Describes a mode for the execution. Possible values are true or false. Default value is false. If you set this value to true command will be executed in the separate thread.
4) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (execute command).

for downloading:

Library: hosttag.jar    Description: taglib.tld

 © Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: