You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2020/04/20 18:04:48 UTC
[struts-site] branch master updated: Correct extension of JSP
component.
This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/master by this push:
new 3ceb2e0 Correct extension of JSP component.
new 3817b8c Merge pull request #145 from davelnewton/patch-2
3ceb2e0 is described below
commit 3ceb2e04c861d5aa936a1a57a617ee2dbeed11b9
Author: Dave Newton <da...@gmail.com>
AuthorDate: Mon Apr 20 10:23:23 2020 -0400
Correct extension of JSP component.
May also want a directory change to better reflect common JSP usage (and that it cannot be on classpath).
---
source/tag-developers/component-tag.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/tag-developers/component-tag.md b/source/tag-developers/component-tag.md
index a42706d..a2b1d90 100644
--- a/source/tag-developers/component-tag.md
+++ b/source/tag-developers/component-tag.md
@@ -64,13 +64,13 @@ Unlike Freemarker or Velocity, JSP template could not be picked up from the clas
### JSP
```jsp
-<s:component template="/my/custom/component.vm"/>
+<s:component template="/my/custom/component.jsp"/>
```
or
```jsp
-<s:component template="/my/custom/component.vm">
+<s:component template="/my/custom/component.jsp">
<s:param name="key1" value="value1"/>
<s:param name="key2" value="value2"/>
</s:component>