Home >Web Front-end >HTML Tutorial >java web的page属性范围_html/css_WEB-ITnose

java web的page属性范围_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:41:101090browse

web html

一个简单的java web,在浏览器地址输入地址,说是“无法找到该网页”,这个代码没什么问题吧?
    pageEncoding="ISO-8859-1"%>

nbsp;html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


pageContent


pageContext.setAttribute("name","Jerry");
pageContext.setAttibute("data",new Date());
%>
String username = (String)pageContext.getAttribute("name");
Date birthday = (Date)pageContext.getAttribute("data");
%>





回复讨论(解决方案)

应该是路径问题  网页有问题的话不会是404错误 

跟页面没关系的 注意 你的地址指向。

同意2楼,不过注意地址指向的同时请分清jsp和html的区别。jsp是要编译后才能正常显示

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn