Download presentation
Presentation is loading. Please wait.
Published byMia Garrett Modified over 11 years ago
1
JSP e Beans Alcides Calsavara
2
Exemplo de beans ExemploBeans.html FORM HTML ExemploBeans.jsp HTML + Java ACTION SpellCheck.class (bean)
3
ExemploBeans.html Exemplo de Beans Forneca uma palavra: Reverse Spellcheck
4
ExemploBeans.jsp Exemplo de Bean Voce forneceu a entrada: A correspondente saida eh: <%= Integer.parseInt( request.getParameter( "mode" ) ) == 1 ? help.reverse( ) : " " + help.check( ) %>
5
SpellCheck.java package ACalsavara.D; public class SpellCheck { private String word; public SpellCheck( ) { } public String reverse( ) { return (new StringBuffer (word).reverse( ) ).toString( ); } public boolean check( ) { return true; } public String getWord( ) { return word; } public void setWord( String aWord ) { word = aWord; }
6
Exemplo de beans - instalação webapps ACalsavara D Espec2000 ExemploBeans.html ExemploBeans.jsp Web-inf classes ACalsavara D SpellCheck.class
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.