Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2007, 10:28 AM
yulin11
Guest
 
Posts: n/a
Default how to write a javabean?

i don't knon know how to write a javabean,how to start?
www.codeuu.com

 
Old December 6th, 2007, 11:35 PM
jomet
Guest
 
Posts: n/a
Default

Hi,

start from the j2ee tutorial provided by java.sun.......
http://java.sun.com/j2ee/tutorial/1_.../JSPBeans.html

regds


jomet.
 
Old December 21st, 2007, 11:30 PM
Authorized User
 
Join Date: Jul 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ironchef
Default

Incase u still dont no, they must have a couple requirements: atleast 1 contsructor that requires no args and methods that allow you to set and get each property. EX:


<---User.java--->

public class User {

private String fstName = null;
private String lastName = null;

public User() {
}

public void setFstName(String newName) {
this.fstName = newName;
}

public String getFstName() {
return this.fstName;
}

public void setLastName(String newName) {
this.lastName = newName;
}

public String getLastName() {
return last.fstName;
}

}

IronChef - http://www.freewebs.com/cool_recipes
 
Old December 24th, 2007, 05:54 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

http://www.gulland.com/courses/JavaS.../jsp_beans.jsp
http://java.sun.com/j2ee/tutorial/1_.../JSPBeans.html
http://www.roseindia.net/jsp/usingbeansinjsp.shtml

google it you'll find plenty of resources.


- Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling javabean onChange event itheiner JSP Basics 1 July 3rd, 2006 05:19 AM
Javamail + form(javabean) octave J2EE 0 February 23rd, 2006 05:37 AM
how to get vaklue from javabean tllcll Pro JSP 2 December 22nd, 2005 05:38 AM
Using JavaBean with Session Bean siddsonline J2EE 0 April 12th, 2005 07:16 AM
How to implement a javabean data source like this. CSharpKnife Crystal Reports 0 May 21st, 2004 12:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.