Playframework 视图中的url值和iframe
IDE:netbeans Playframework:v1.2.4 从我的app/controllers/application.java,我调用以下命令Playframework 视图中的url值和iframe,playframework,Playframework,IDE:netbeans Playframework:v1.2.4 从我的app/controllers/application.java,我调用以下命令 public static void DoSomething() { render("Application/Showresult.html"); } 当我查看URL时,它表示localhost/application/process 我可以看到结果 为什么会显示这个URL 在我的一个观点中,我有一个iframe。iframe的src
public static void DoSomething()
{
render("Application/Showresult.html");
}
当我查看URL时,它表示localhost/application/process
我可以看到结果
为什么会显示这个URL
在我的一个观点中,我有一个iframe。iframe的src指向一个html文件,图形团队可以在部署到生产环境后将其放入视图文件夹中
我是否必须将后期制作的html文件放在views文件夹中,并从iframe中这样调用它
myview.html
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<button id="click" title="click me" ></button>
<iframe src="@{'graphicteamview.html'}">
</body>
</html>
或者我必须告诉图形团队将他们的html放到公用文件夹中,然后以这样的方式访问它吗
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<button id="click" title="click me" ></button>
<iframe src="@{'public/iframeHTML/somepage.html'}">
</body>
</html>
如果是静态资源,请将其存储在公用文件夹下