I am completely new to jsp, and I have been stuck on this for quite a while.
I am developing a jsp page, a.jsp, in which I need to do some checking on a parameter x obtained from request.getHeader(). The method for checking is already written on b.jsp in <%...%> tags and I would like to somehow call that method on a.jsp.
I'm not sure what I can do here since I am not suppose to change b.jsp, just redevelop a.jsp. Is there any way I can call a method from b.jsp in a.jsp?
将b.jsp包含到a.jsp中,您可以访问所有方法。
<%@ include file="a.jsp"%>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.