HTML 标记(HTML tag)
我正在阅读Servlet“HellowWorld”教程。 servelet在HelloWorldServelet.java类中定义。 超级简单的输出“地狱世界”消息到客户端请求。 唯一的html文件是下面的“index.html”。 我不明白元标记是如何工作的。 当我在Web服务器中运行该应用程序时,它会自动将此页面与URL一起使用:
HTTP://本地主机:8080 /的HelloWorld /的HelloWorld
属性“http-equiv”和“content”如何与servelet一起工作?
<html> <head> <meta http-equiv="Refresh" content="0; URL=HelloWorld"> </head> </html>
I am reading a Servlet "HellowWorld" tutorial. The servelet is defined in a HelloWorldServelet.java class. Super simple to output "Hell world" message to the client request. The only html file is "index.html" below. I don't understand how the meta tag works. As I run the application in the web server, it automatically this page with the URL:
http://localhost:8080/helloworld/HelloWorld
How the attributes "http-equiv" and "content" work together with the servelet?
<html> <head> <meta http-equiv="Refresh" content="0; URL=HelloWorld"> </head> </html>
满意答案
Refresh
元标记会自动将浏览器重定向到指定时间后给定的URL。如果没有看到您正在使用的教程,我无法想象为什么您需要将它用于您的任务。
The
Refresh
meta-tag automatically redirects the browser to the URL given after the specified amount of time.Without seeing the tutorial you are using, I can't imagine why you would need to use it for your task.
相关问答
更多如何从静态HTML页面读取数据,例如元标记?(How can I read data from my static HTML page, such as the meta tag?)
HTML:元描述标签的用途(HTML: Meta description tag's uses)
如何在视图MVC中删除元标记的html标记?(How to remove html tag of meta tag in view MVC?)
用于内容语言的HTML元标记(HTML meta tag for content language)
您需要在HTML中关闭元标记和链接标记吗?(Do you need to close meta and link tags in HTML?)
HTML5:验证未注册的标记的“正确”行为是什么?(HTML5: What is the “correct” behavior for validation of unregistered tags?)
你如何检查是否存在使用JavaScript的HTML元标记?(How do you check if a html Meta tag exist using JavaScript?)
使用剃刀在HTML页面标题中输出元标记(Output meta tag in html page header using razor)
使用Express动态地将元标记注入HTML(Inject meta tag dynamically to HTML with Express)
HTML 标记(HTML tag)
相关文章
更多HTML meta标签
HTML 排版标记
HTML 字体标记
关于微信公众号内嵌网页的几个meta标签
删除Hbase的META中多余表项
在HTML中使用javascript
HTML转义标签
在html使用CSS的方式
html适应手机
HTML5 Video元素【HTML5教程 - 第三篇】
最新问答
更多绝地求生、荒野行动、香肠派对 哪个更好玩???(都是吃鸡类游戏)
如何在jQuery集合中选择第n个jQuery对象?(How to select the nth jQuery object in a jQuery collection?)
ASP NET使用jQuery和AJAX上传图像(ASP NET upload image with jQuery and AJAX)
SQL Server XML查询中包含名称空间的位置(SQL Server XML query with namespaces in the where exist)
宁夏银川永宁县望远镇哪里有修mp5的?
我想用更新的日期标记所有更新的行(I would like to mark all updated rows with the date that they have been updated)
郑州会计培训班
如何定位数组中的负数,并得到所有正数的总和?(How to target e negative number from an array, and get the sum of all positive numbers?)
在响应图像上叠加网格(Overlay grid on responsive image)
无法让POST在Azure网站上运行(Could not get POST to work on Azure Website)
Copyright ©2023 656463.com All Rights Reserved.滇ICP备2022006988号-50
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们,本站将尽快处理。谢谢合作!