Topic: 有点不明白 (JSP源代码) |
Print this page |
1.有点不明白 (JSP源代码) | Copy to clipboard |
Posted by: zilin Posted on: 2003-03-17 14:46 “JSP 中的 Java 代码均在服务器端执行。因此,在浏览器中使用“查看源文件”菜单是无法看到 JSP 源代码的,只能看到结果 HTML 代码。” 那我在保存原文件时看到的 < %@ page language="java" %> < %! String str="0"; %> < % for (int i=1; i < 10; i++) { str = str + i; } %> 这些代码不是他的原文件吗?谢谢 |
2.Re:有点不明白 [Re: zilin] | Copy to clipboard |
Posted by: xs21cn Posted on: 2003-03-17 22:03 你的问题说得不清楚,你指的“保存原文件时“是什么意? 如果你是直接用浏览器去打开一个jsp文件,而不是向一个web Server去请求一个jsp页面。那么这时所有<%%>中的代码都没有被运行,只是简单的被浏览器隐藏了。如果这时你查看源码,当然能看见了。 |
3.Re:有点不明白 [Re: zilin] | Copy to clipboard |
Posted by: floater Posted on: 2003-03-19 02:41 jsp files are converted into java files, which are actually servlets, which then output html codes, roughly speaking. |
4.Re:有点不明白 [Re: floater] | Copy to clipboard |
Posted by: zilin Posted on: 2003-03-19 09:19 I want to ask how to distinguish jsp servlets and javabeans or EJB ,thank you ! |
5.Re:有点不明白 [Re: zilin] | Copy to clipboard |
Posted by: floater Posted on: 2003-03-19 23:41 zilin wrote: Don't get your point. servlets are extended from servlet class, javabean follows naming convention, EJBs have its own rules, totally different. |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |