将servlet链接到jsp. [英] linking a servlet to jsp.

查看:63
本文介绍了将servlet链接到jsp.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种无需使用物理URL链接即可将servlet链接到JSP的方法.所以我希望servlet运行,然后让servlet带我去JSP. 有任何想法吗.

Is there a way of linking a servlet to a JSP without using physical url link. so I want the servlet to run and then the servlet to take me to a JSP. any ideas.

推荐答案

是的,在servlet中,您可以添加html代码,然后将重定向发送到JSP页面.

Yes,in the servlet you can add the html code,and then send a redirect to the JSP page.

这篇关于将servlet链接到jsp.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆