Custom JSP tag. This tag lets you execute scripts on your host. For example (on NT):
<%@ taglib uri="taglib.tld" prefix="exec" %> <html> <exec:runScript command="command.com /c some_file.bat" /> </html> If your script prints some data you may save them in the page scope variable:
<%@ taglib uri="taglib.tld" prefix="exec" %> <html> <exec:runScript command="command.com /c dir" id="A" /> Directory is <%=A%> </html> Tags are: runScript Executes the given script (shell command) on your host. Parameters are: 1) command executed command
for downloading: Library: hosttag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|