Issue Details (XML | Word | Printable)

Key: JAVAEETUTORIAL-226
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: jendrock
Reporter: jendrock
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
javaeetutorial

Error in code example in advanced security chapter

Created: 30/Jul/13 09:57 PM   Updated: 31/Jul/13 07:00 PM  Due: 30/Jul/13   Resolved: 31/Jul/13 07:00 PM
Component/s: None
Affects Version/s: 7.0.1
Fix Version/s: 7.0.2

Time Tracking:
Not Specified

Tags:
Participants: Ian Evans and jendrock


 Description  « Hide

A user reports that there is an error in the code example in the advanced security chapter in this section: http://docs.oracle.com/javaee/7/tutorial/doc/security-advanced003.htm#BABIFJGI.

The corrections are indicated by the comments at the end of the lines that contain the errors.

@Stateless
@ManagedBean // add annotation
public class LoginBean {
private String username;
private String password;

public String getUsername() { return this.username; }

public void setUserName(String username) { this.username = username; }

public String getPassword() { return this.password; }

public void setPassword(String password) { //add String password this.password = password; }