天天看点

JSP如何将a标签跳转到外网? - JavaWeb

<a href="${user.email}">${user.email}</a>      

上面的 ​

​${user.email}​

​ 的内容是 clearlight.top

但是项目中跳转的网址是: ​

​localhost:8080/clearlight.top​

可我想跳到 https://www.clearlight.top 啊

解决办法

<a href="https://${user.email}">${user.email}</a>