From commits-return-18342-archive-asf-public=cust-asf.ponee.io@struts.apache.org Sun Feb 17 18:31:04 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AA675180657 for ; Sun, 17 Feb 2019 19:31:03 +0100 (CET) Received: (qmail 96549 invoked by uid 500); 17 Feb 2019 18:31:02 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 96540 invoked by uid 99); 17 Feb 2019 18:31:02 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Feb 2019 18:31:02 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 11342850DC; Sun, 17 Feb 2019 18:31:02 +0000 (UTC) Date: Sun, 17 Feb 2019 18:31:02 +0000 To: "commits@struts.apache.org" Subject: [struts-site] branch asf-site updated: Updates production by Jenkins MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155042826200.29313.3566906102832821996@gitbox.apache.org> From: git-site-role@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: struts-site X-Git-Refname: refs/heads/asf-site X-Git-Reftype: branch X-Git-Oldrev: 8bcd71a1b90058c5e648299a819007fb8cbd8bc7 X-Git-Newrev: f470f94e4f47d44662dc47a3087e8d181ac6e54c X-Git-Rev: f470f94e4f47d44662dc47a3087e8d181ac6e54c X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. git-site-role pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/struts-site.git The following commit(s) were added to refs/heads/asf-site by this push: new f470f94 Updates production by Jenkins f470f94 is described below commit f470f94e4f47d44662dc47a3087e8d181ac6e54c Author: jenkins AuthorDate: Sun Feb 17 18:31:00 2019 +0000 Updates production by Jenkins --- content/tag-developers/include-tag.html | 88 ++++++++++----------------------- 1 file changed, 27 insertions(+), 61 deletions(-) diff --git a/content/tag-developers/include-tag.html b/content/tag-developers/include-tag.html index 87b8216..8f143c7 100644 --- a/content/tag-developers/include-tag.html +++ b/content/tag-developers/include-tag.html @@ -131,41 +131,23 @@

Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.

- - - - - -
-

Description

-

Include a servlet's output (result of servlet or a JSP page).

-

Note: Any additional params supplied to the included page are not - accessible within the rendered page through the tag +

Include a servlet’s output (result of servlet or a JSP page).

+ +

Note: Any additional params supplied to the included page are not + accessible within the rendered page through the <s:property…> tag since no valuestack will be created. You can, however, access them in a servlet via the HttpServletRequest object or from a JSP page via - a scriptlet. - - - -**(!) How To access parameters** - + a scriptlet.

-> +

How To access parameters

-> +

Parameters are passed as request parameters, so use the ${param.ParamName} notation to access them. Do not use the property tag to access parameters in included files.

-> Parameters are passed as request parameters, so use the \${param.ParamName} notation to access them. Do not use the **property** tag to access parameters in included files. +

Parameters

-> - -__Parameters__ - - - - -

+
@@ -211,49 +193,33 @@ __Parameters__ -
- -

- - -__Example__ - - - - - -```java - <-- One: --> - - - <-- Two: --> - - - - - - <-- Three: --> - - value1 - value2 - - -``` - + +

Example

+
 <!-- One: -->
+ <s:include value="myJsp.jsp" />
 
+ <!-- Two: -->
+ <s:include value="myJsp.jsp">
+    <s:param name="param1" value="value2" />
+    <s:param name="param2" value="value2" />
+ </s:include>
 
+ <!-- Three: -->
+ <s:include value="myJsp.jsp">
+    <s:param name="param1">value1</s:param>
+    <s:param name="param2">value2</s:param>
+ </s:include>
+
+
-```none - Example one - do an include myJsp.jsp page +
 Example one - do an include myJsp.jsp page
  Example two - do an include to myJsp.jsp page with parameters param1=value1 and param2=value2
  Example three - do an include to myJsp.jsp page with parameters param1=value1 and param2=value2
 
-```
-
+
-