1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | public class Gebruiker { private String voornaam; private String voorletters; private String achternaam; private String straat; private String postcode; private String woonplaats; private String telefoon; private String geboortedatum; private String wachtwoord; public String getVoornaam() { return voornaam; } public void setVoornaam(String voornaam) { this.voornaam = voornaam; } public String getVoorletters() { return voorletters; } public void setVoorletters(String voorletters) { this.voorletters = voorletters; } public String getAchternaam() { return achternaam; } public void setAchternaam(String achternaam) { this.achternaam = achternaam; } public String getStraat() { return straat; } public void setStraat(String straat) { this.straat = straat; } public String getPostcode() { return postcode; } public void setPostcode(String postcode) { this.postcode = postcode; } public String getWoonplaats() { return woonplaats; } public void setWoonplaats(String woonplaats) { this.woonplaats = woonplaats; } public String getTelefoon() { return telefoon; } public void setTelefoon(String telefoon) { this.telefoon = telefoon; } public String getGeboortedatum() { return geboortedatum; } public void setGeboortedatum(String geboortedatum) { this.geboortedatum = geboortedatum; } public String getWachtwoord() { return wachtwoord; } public void setWachtwoord(String wachtwoord) { this.wachtwoord = wachtwoord; } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <head> <title>Toevoegen gebruiker</title> </head> <body> Voeg hier een nieuwe gebruiker toe: <br><br> <form method="get" action="./gebruiker_getregdata.jsp"> <p>voornaam: <input type="voornaam"><br> <p>voorletters: <input type="voorletters"><br> <p>achternaam: <input type="achternaam"><br> <p>straat+nr: <input type="straat"><br> <p>postcode: <input type="postcode"><br> <p>plaats: <input type="plaats"><br> <p>telefoon nummer: <input type="telefoon"><br> <p>geboortedatum: <input type="geboortedatum"><br> <br> <input type="submit" name="submit" value="submit"> </form> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 | <jsp:useBean id="gebrid" class="gebruiker.Gebruiker" scope="session"></jsp:useBean> <jsp:setProperty name="gebrid" property="*"/> <html> <body> Je hebt de volgende data opgegegeven:<br> <br> achternaam: <%= gebrid.getAchternaam() %> </body> </html> |
Ik werk verder niet met java maar moet het niet:quote:Op donderdag 5 juli 2007 08:47 schreef BlueCurl het volgende:
niemand?
1 2 3 | return this.achternaam; } |
1 2 3 | return achternaam; } |
Ow haha, die was te makkelijkquote:Op donderdag 5 juli 2007 12:15 schreef Litpho het volgende:
Het zou vast helpen als je formpje input type="text" name="naam" zou gebruiken. Achternaam is bij mijn weten geen geldig type.
ik schaam mij al enorm diep okayquote:Op donderdag 5 juli 2007 12:15 schreef Litpho het volgende:
Het zou vast helpen als je formpje input type="text" name="naam" zou gebruiken. Achternaam is bij mijn weten geen geldig type.
|
Forum Opties | |
---|---|
Forumhop: | |
Hop naar: |