从 jsp 中删除 session 属性
是否可以调用 taglib 来删除某些对象事件(例如 onClick()
等)上的属性,因为现在这些在页面加载时被调用,我不希望这种情况发生,因为用户必须能够看到需要某个属性的报告,并且在呈现报告之前导航到的页面是需要删除该属性的页面。
提前致谢
Is it possible to call taglib to remove the attribute on certain object events like onClick()
etc because right now these are getting called when the page is getting loaded,I don't want this to happen as the user has to be able to see a report which will require a attribute as well the page where page where is navigates to before the report is beeen presented is the one where this attribute needs to be removed.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以发出 ajax 请求
onclick
,然后在 servlet 中调用session.remove()
。You can issue an ajax-request
onclick
, and then, in a servlet, you can callsession.remove()
.