Category: FromSitesTree.com

SaleEntry1.jsp Page that uses the SaleEntry bean, using explicit Java code to read request parameters and assign them to bean properties. #Programming Code Examples #Java/J2EE/J2ME #Applets and Basic Graphics

SaleEntry1.jsp Page that uses the SaleEntry bean, using explicit Java code to read request parameters and assign them to bean properties. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!– Example of using jsp:setProperty with an explicit value supplied to the "value" attribute. See SaleEntry2.jsp and SaleEntry3.jsp for alternatives. Taken from Core Web Programming Java 2 …

Continue reading

SaleEntry2.jsp Page that uses the SaleEntry bean, using the param attribute to read request parameters and assign them to bean properties #Programming Code Examples #Java/J2EE/J2ME #Applets and Basic Graphics

SaleEntry2.jsp Page that uses the SaleEntry bean, using the param attribute to read request parameters and assign them to bean properties <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!– Example of using jsp:setProperty and an explicity association with an input parameter. See SaleEntry1.jsp and SaleEntry3.jsp for alternatives. Taken from Core Web Programming Java 2 Edition …

Continue reading

SaleEntry3.jsp Page that uses the SaleEntry bean, using property="*" to read request parameters and assign them to bean properties #Programming Code Examples #Java/J2EE/J2ME #Applets and Basic Graphics

SaleEntry3.jsp Page that uses the SaleEntry bean, using property="*" to read request parameters and assign them to bean properties <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!– Example of using jsp:setProperty and a general association with the input parameters. See SaleEntry1.jsp and SaleEntry2.jsp for alternatives. Taken from Core Web Programming Java 2 Edition from Prentice …

Continue reading

AccessCountBean.java Bean used to illustrate the difference between running jsp:setProperty for every request vs. only when the object is created #Programming Code Examples #Java/J2EE/J2ME #Applets and Basic Graphics

AccessCountBean.java Bean used to illustrate the difference between running jsp:setProperty for every request vs. only when the object is created package cwp; /** Simple bean to illustrate sharing beans through * use of the scope attribute of jsp:useBean. * <P> * Taken from Core Web Programming Java 2 Edition * from Prentice Hall and Sun …

Continue reading

StringBean.jsp Page that manipulates the StringBean bean with both jsp:useBean (i.e., XML-style) syntax #Programming Code Examples #Java/J2EE/J2ME #Applets and Basic Graphics

StringBean.jsp Page that manipulates the StringBean bean with both jsp:useBean (i.e., XML-style) syntax package cwp; /** Simple bean to illustrate sharing beans through * use of the scope attribute of jsp:useBean. * <P> * Taken from Core Web Programming Java 2 Edition * from Prentice Hall and Sun Microsystems Press, * . * May be …

Continue reading

An applet that reads arrays of strings packaged inside a QueryCollection and places them in a scrolling TextArea. #Programming Code Examples #Java/J2EE/J2ME #Applets and Basic Graphics

import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.net.*; /** Applet reads arrays of strings packaged inside * a QueryCollection and places them in a scrolling * TextArea. The QueryCollection obtains the strings * by means of a serialized object input stream * connected to the QueryGenerator servlet. * * Taken from Core Web Programming Java …

Continue reading

The class that actually gets the strings over the network by means of an ObjectInputStream via HTTP tunneling. #Programming Code Examples #Java/J2EE/J2ME #Applets and Basic Graphics

import java.net.*; import java.io.*; /** When this class is built, it returns a value * immediately, but this value returns false for isDone * and null for getQueries. Meanwhile, it starts a Thread * to request an array of query strings from the server, * reading them in one fell swoop by means of an …

Continue reading

An applet that searches multiple search engines, displaying the results in side-by-side frame cells. #Programming Code Examples #Java/J2EE/J2ME #Applets and Basic Graphics

Using Applets as Front Ends to Server-Side Programs ************************************************** SearchApplet.java An applet that searches multiple search engines, displaying the results in side-by-side frame cells. Uses the following files: SearchSpec.javaParallelSearches.htmlSearchAppletFrame.htmlGoogleResultsFrame.htmlInfoseekResultsFrame.htmlLycosResultsFrame.html *************************************************** // import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.net.*; // /** An applet that reads a value from a TextField, * then uses it to …

Continue reading

A class the encapsulates the URLs used by various search engines. #Programming Code Examples #Java/J2EE/J2ME #Applets and Basic Graphics

SearchSpec.java ******************* /** Small class that encapsulates how to construct a * search string for a particular search engine. * Taken from Core Web Programming Java 2 Edition * from Prentice Hall and Sun Microsystems Press, * May be freely used or adapted. */ public class SearchSpec { private String name, baseURL, numResultsSuffix; private static …

Continue reading

TextAreas #Programming Code Examples #Java/J2EE/J2ME #AWT Components

TextAreas.java ************** import java.applet.Applet; import java.awt.*; /././././././,/././././ public class TextAreas extends Applet { public void init() { setBackground(Color.lightGray); add(new TextArea(3, 10)); add(new TextArea("SomenInitialnText", 3, 10)); } } Note: Brought from our old site: http://www.salearningschool.com/example_codes/ on Jan 2nd, 2017 From: http://sitestree.com/?p=10342 Categories:Programming Code Examples, Java/J2EE/J2ME, AWT ComponentsTags:Java/J2EE/J2MEAWT Components Post Data:2017-01-02 16:04:35 Shop Online: https://www.ShopForSoul.com/ (Big Data, …

Continue reading