Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 999 Bytes

tag.part.md

File metadata and controls

39 lines (30 loc) · 999 Bytes

Part Tag

It will be more easy to include a common page part made by JSP with Part tag.
<%@ taglib prefix="efw" uri="efw" %>
<body>
...
<efw:Part path="part.jsp" param1="####" param2="####" />		//or efw:part , efw:PART
...
</body>

Attributes

NameRequiredDefaultDescription
pathYesA relative page path to the application url.
{any}No""Any value you want to send to.

You can get the params in the part jsp by request.getAttribute like the next.

<%=request.getAttribute("param1")%>	//this coding can work well.
<%=request.getAttribute("param2")%>
<efw:attr key="param1"/> //or use this coding.
<efw:attr key="param2"/> 

If you want send dynamic value to a part attr, you can do it like this.

<% 
String param1="hello";
%>
<efw:part path="part.jsp" param1="<%=param1%>"/>