这里面包含了一百多个JAVA源文件

源代码在线查看: e1058. generating dynamic content on a jsp page.txt

软件大小: 551 K
上传用户: maple_78
关键词: JAVA
下载地址: 免注册下载 普通下载 VIP

相关代码

				The primary method for generating dynamic content on a JSP page is through the use of JSP expressions. A JSP expression is essentially a Java expression that is automatically converted to a String and written to the output stream. Here are some examples of JSP expressions: 
				    The value of Pi is: 
				    
				    A random number between 1 and 100 is: 
				    
				    The value of the "p" request paramter is: 
				    
				    Today is: 
				
				Dynamic content can also be generated from a scriptlet by using out to write to the output stream. Here are some examples: 
				    				        if (Math.random() > .5) {
				            out.println("You win!");
				        } else {
				            out.println("Sorry, you lose. Try again.");
				        }
				    %>
				
							

相关资源