Get the attribute that is non request time expression, either from the attribute of the node, or from a jsp:attribute @param name The name of the attribute @return The attribute value
(String name)
| 264 | * @return The attribute value |
| 265 | */ |
| 266 | public String getTextAttribute(String name) { |
| 267 | |
| 268 | String attr = getAttributeValue(name); |
| 269 | if (attr != null) { |
| 270 | return attr; |
| 271 | } |
| 272 | |
| 273 | NamedAttribute namedAttribute = getNamedAttributeNode(name); |
| 274 | if (namedAttribute == null) { |
| 275 | return null; |
| 276 | } |
| 277 | |
| 278 | return namedAttribute.getText(); |
| 279 | } |
| 280 | |
| 281 | /** |
| 282 | * Searches all sub-nodes of this node for jsp:attribute standard actions with the given name. |
no test coverage detected