Custom JSP taglib for UI development. This taglib lets you check out the status
of JavaScript in user's browser. You have to place jscheck tag inside of your form and check out
the value for jsenabled parameter during the processing.
<%@ taglib uri="taglib.tld" prefix="js" %> <js:jscheck>Please, enable JavaScript in your browser</js:jscheck> and now in your servlet (e.g. Struts action) or JSP page processes this form you can use the following value request.getParameter("jsenabled") for getting JavaScript status in user's browser. This value will be null is JavaScript is disabled. Tag outputs own body if JavaScript is disabled. You have to use this tag inside of HTML form (or form taglib from Coldtags suite). Tag noscript lets you define a page for the redirection if JavaScript is disabled. You have to place
this tag inside of head section for your page:
<%@ taglib uri="taglib.tld" prefix="js" %> <html> <head> <js:noscript>noscript.html</js:noscript> ... </head> <body> ... Tags are: jscheck Body tag lets you check out JavaScript status. Tag outputs own body if JavaScript is disabled. Parameters are: 1) cond - Optional attribute. Describes a boolean value tag's behavior depends on. Default value is true noscript Body tag lets you define a page for redirection in case of JavaScript is disabled. Parameters are: 1) cond - Optional attribute. Describes a boolean value tag's behavior depends on. Default value is true for downloading: Library: jstag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|