jsp only calls the action implementation code on the first load

  • 2020-06-12 10:16:57
  • OfStack

 
<% 
List<Class> list=(List)request.getAttribute("classlist"); 
if(list==null){ 
response.sendRedirect("class.do?method=doShow"); 
} 
%> 

class.do is the name of action.

Related articles: