Hi,
I am not sure which is the best way. I usually use the First one for my
job.
Regards
Moin.
Oskar Zinger wrote:
> Hi,
> What is more time consuming?
>
> JSP1:
> <% request.setAttribute("FLAG", new Boolean("true")); %>
> <jsp:include page="JSP2.jsp" flush="true"/>
>
> JSP2:
> <% boolean FLAG = ((Boolean)
> request.getAttribute("FLAG")).booleanValue();
> if (FLAG) {
> ..........
> ...........
> }
> %>
>
> OR?:
>
> JSP1:
> <jsp:include page="JSP2.jsp?FLAG=true" flush="true"/>
>
> JSP2:
> <% String FLAG = request.getParameter("FLAG");
> if (FLAG.equals('true")) {
> ..........
> ..........
> }
> %>
>
> OR?:
>
> JSP1:
> <jsp:include page="JSP2.jsp?FLAG=true" flush="true"/>
>
> JSP2:
> <% boolean FLAG = (new
> Boolean(request.getParameter("FLAG"))).booleanValue();
> if (FLAG) {
> ..........
> ..........
> }
> %>
>
> AND, which way is it best practiced.
>
> Thankss for any help!
> --
> Oskar Zinger