Receiver type ‘X’ for instance message is a forward declaration

本文出自:http://blog.csdn.net/svitter

实验环境:Myeclipse10 + tomcat7.0

有时间会写windows和linux下的tomcat配置,现在时间有限,暂且不写了。。有些东西也是没有理解透彻。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%!
String getDate()
{return new java.util.Date().toLocaleString();}
int count = 10;
%>

<html>
  <head>
    <title>一个典型的JSP</title>
  </head>

  <body>
  	<div align="center">
    	<table>
    		<tr bgcolor=777777>
    		<td>------------------------</td></tr>
    		<%
    		int i;
    		String color1="99ccff";
    		String color2="88cc33";
    		for(i = 1; i <= count; i++){
    			String color="";
    			if(i % 2 == 0)
    				color = color1;
    			else
    				color = color2;
    			out.println("<tr bgcolor="+color+"> <td> --- </td> </tr>");
    		}
    		%>
    	</table>
    <hr><P>
   	当前时间是:
   	<%-- 下面是使用表达式的例子 --%>
   	<%=getDate() %></P></div>
  </body>
</html>

运行结果:

Receiver type ‘X’ for instance message is a forward declaration,布布扣,bubuko.com

时间: 2024-12-15 15:53:11

Receiver type ‘X’ for instance message is a forward declaration的相关文章

Receiver type &#39;XXX&#39; for instance message is a forward declaration

今天遇到这个错误.刚开始字体太大,没显示全,后来调小字体之后看到了完整提示信息: 之后就忽然想起没引入相关的类,添加 #import "RDVTabBarItem.h" 就行了. Receiver type 'XXX' for instance message is a forward declaration

Receiver type for instance message is a forward

本文转载至 http://my.oschina.net/sunqichao/blog?disp=2&catalog=0&sort=time&p=3 这往往是引用的问题.ARC要求完整的前向引用,也就是说在MRC时代可能只需要在.h中申明@class就可以,但是在ARC中如果调用某个子类中未覆盖的父类中的方法的话,必须对父类.h引用,否则无法编译. 有一篇文章讲的很详细 本文部分实例取自iOS 5 Toturail一书中关于ARC的教程和公开内容,仅用于技术交流和讨论.请不要将本文的

Receiver &#39;NSManagedObjectContext&#39; for class message is a forward declaration 错误的解决方案

All the CoreData header files are imported in App_Prefix.pch, so the CoreData classes will be available throughout your Project, so you don't have to manually import the header in the files you need them. So open up Xcode and look for some file like 

invalid receiver type

Because in a case like this: type I int type P *I func (i I) Get() int { return int(i) } func (p P) Get() int { return int(*p) } var v I var x = (&v).Get() it would be unclear whether the Get method in the last line would be I.Get or P.Get.  We could

ios新特征 ARC详解

IOS ARC 分类: IOS ARC2013-01-17 09:16 2069人阅读 评论(0) 收藏 举报 目录(?)[+] 关闭工程的ARC(Automatic Reference Counting) 顺带附上ARC教程 本文部分实例取自iOS 5 Toturail一书中关于ARC的教程和公开内容,仅用于技术交流和讨论.请不要将本文的部分或全部内容用于商用,谢谢合作. 欢迎转载本文,但是转载请注明本文出处:http://www.onevcat.com/2012/06/arc-hand-by

hdf第二周,每天加班,周末加班,周日健身

----------------------------------------------------------------------------- 受到挫折,写一些简单的练习,增加成就感 放大核心代码: - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return self.testImageView; } - (void)initialize { self.testScrollView.maximu

iOS -- warnings

Semantic Warnings Warning Message -WCFString-literal input conversion stopped due to an input byte that does not belong to the input codeset UTF-8 -WNSObject-attribute         __attribute ((NSObject)) may be put on a typedef only, attribute is ignore

IOS 警告 收集

Semantic Warnings Warning Message -WCFString-literal input conversion stopped due to an input byte that does not belong to the input codeset UTF-8 -WNSObject-attribute __attribute ((NSObject)) may be put on a typedef only, attribute is ignored -Wabst

xcode常见报错调试

问题 -[UITableView _configureCellForDisplay:forIndexPath:] 解答  因为- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 这个函数的返回值中有nil 问题   Xcode 工程文件打不开,cannot be opened because the project file cannot be