Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

managed-bean problem

800663Jun 14 2008 — edited Jun 14 2008
I have this code:
public class TableBean {

	private perInfo[] perInfoAll = new perInfo[]{
		new perInfo(101, "CHANDAN", "9891444444", "aaa", 11111),
		new perInfo(102, "RAVI", "9911666666", "bbb" ,22222),
		new perInfo(103, "JOHN", "9313888888", "ccc", 33333),
		new perInfo(104, "ANDREW", "9911222222", "ddd" , 44444),
		new perInfo(105, "SYMONDS", "9313999999", "eee", 55555),
	};

	public perInfo[] getperInfoAll() {
		return perInfoAll;
	}

	public class perInfo {
		int id;
		String name;
		String phone;
		String city;
		int pin;

		public perInfo(int id, String name, String phone, String city, int pin) {
			this.id = id;
			this.name = name;
			this.phone = phone;
			this.city = city;
			this.pin= pin;
		}

		public int getid() {
			return id;
		}

		public String getname() {
			return name;
		}

		public String getphone() {
			return phone;
		}

		public String getcity() {
			return city;
		}

		public int getpin() {
			return pin;
		}

	}

}
It generates me 2 files:
TableBean$perInfo.class
TableBean.class

Now, i want to map the thing.
<managed-bean>
		<managed-bean-name>TableBean</managed-bean-name>
		<managed-bean-class>personclass.TableBean</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
As soon as i added this, the page says "The requested resource is not available.", i take it away and it works. Help please :P
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2008
Added on Jun 14 2008
2 comments
156 views