I want to perform some action like
<% Locale locale = request.getLocale(); %>
<%@include file="/layouts/common/modal_body.<%="_"+locale%>jsp"%>
Basically i have a variable in locale in scriplet and want to use it to point to some jsp of that locale but dont know how to achieve it any idea pls.
is scriplet in another scriplet allowed?
@include fileis called static include, It is like an inline inclusion i.e., the contents of the file will be included at translation phase (Remember#includeofC). It can not have dynamic file name.For that you have to use
<jsp:include page=”fileName” />The Syntax is
So,