| Home : Java : JSP |
| Click "Subscribe" if you want to be notified of new or updated links in this category. | Subscribe |
|
|
JSP Listings
|
|
Total:
62 | Displaying: 61 - 62 | Pages: << 1 2 3 4 5 6 7 |
|
|
|
We have already seen how to use the "out" variable to generate HTML output from within a scriptlet. For more complicated HTML, using the out variable all the time loses some of the advantages of JSP programming. It is simpler to mix scriptlets and HTML.
Suppose you have to generate a table in HTML. This is a common operation, and you may want to generate a table from a SQL table, or from the lines of a file. But to keep our example simple, we will generate a table containing the numbers from 1 to N. Not very useful, but it will show you the technique.
Updated: 03/24/2005
|
|
|
We have already seen how to embed Java expressions in JSP pages by putting them between the character sequences.
But it is difficult to do much programming just by putting Java expressions inside HTML.
JSP also allows you to write blocks of Java code inside the JSP. You do this by placing your Java code between characters (just like expressions, but without the = sign at the start of the sequence.)
Updated: 03/24/2005
|
|
|
JSP Listings
|
|
Total:
62 | Displaying: 61 - 62 | Pages: << 1 2 3 4 5 6 7 |
|
|