JSP Session和Tapestry Session

IEngine engine = (IEngine) session.getAttribute("org.apache.tapestry.engine:project-name");
Visit visit = engine.getVisit();

visit就是T3中的session了,其中的project-name是你设定的T3在web.xml中application sevlet的name。
例如
<servlet>
<servlet-name>workbench</servlet-name>
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
project-name就是workbench

 

你可能感兴趣的:(jsp,session,servlet,application,tapestry)