cornercorner
FeaturesPluginsDocs & SupportCommunityPartners
 
<%--
This example uses JSTL, uncomment the taglib directive above.
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
--%>
<!-- here we have a HTML comment to see the difference form JSP comment --> <style type="text/css">
<!-- body { color: #2F2F2F; padding:0px; margin:0px; font-size: 0.7em; font-family: Verdana, "Verdana CE", Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif; height:500px; } A:link, A:visited { color: #1E2A60; font-weight : normal; text-decoration: underline; } A:link:hover, A:visited:hover { color: #1E2A60; font-weight : normal; text-decoration : underline; } --> </style> <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>List MicroMarket</title> </head> <body> <% String text = "test"; System.out.println("from scripting"); /** Creates new form Anagrams */ public Anagrams() { initComponents(); getRootPane().setDefaultButton(guessButton); scrambledWord.setText(WordLibrary.getScrambledWord(wordIdx)); pack(); guessedWord.requestFocusInWindow(); // Center in the screen Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); setLocation(new Point((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.width) / 2)); } %> <f:view> <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/> <h1>Listing MicroMarkets</h1> <h:form> <%-- below current line --%> <h:commandLink action="#{microMarket.createSetup}" value="New MicroMarket"/> <table> <tr><td>${(1==2) ? 3 : 4}</td></tr> ; <tr><td>${10 mod 4}</td></tr> ; <tr><td>${(10*10) ne 100}</td></tr> ; <tr><td>${my:reverse(param["foo"])}</td></tr> ; <tr><td>${param.foo}</td></tr> ; <tr><td>${param["foo"]}</td></tr> ; </table> <br> <a href="/WebApplication5/index.jsp">Back to index</a> <br> <h:outputText value="Item #{microMarket.firstItem + 1}..#{microMarket.lastItem} of #{microMarket.itemCount}"/>  <h:commandLink action="#{microMarket.prev}" value="Previous #{microMarket.batchSize}" rendered="#{microMarket.firstItem >= microMarket.batchSize}"/>  <h:commandLink action="#{microMarket.next}" value="Next #{microMarket.batchSize}" rendered="#{microMarket.lastItem + microMarket.batchSize <= microMarket.itemCount}"/>  <h:commandLink action="#{microMarket.next}" value="Remaining #{microMarket.itemCount - microMarket.lastItem}" rendered="#{microMarket.lastItem < microMarket.itemCount && microMarket.lastItem + microMarket.batchSize > microMarket.itemCount}"/> <h:dataTable value='#{microMarket.microMarkets}' var='item' border="1" cellpadding="2" cellspacing="0"> <h:column> <f:facet name="header"> <h:outputText value="ZipCode"/> </f:facet> <h:commandLink action="#{microMarket.detailSetup}" value="#{item.zipCode}"/> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Radius"/> </f:facet> <h:outputText value="#{item.radius}"/> </h:column> <%-- below matching parentheses --%> <h:column> <f:facet name="header"> <h:outputText value="AreaLength"/> </f:facet> <h:outputText value="#{item.areaLength}"/> </h:column> <h:column> <f:facet name="header"> <h:outputText value="AreaWidth"/> </f:facet> <h:outputText value="#{item.areaWidth}"/> </h:column> <h:column> <h:commandLink value="Destroy" action="#{microMarket.destroy}"> <f:param name="zipCode" value="#{item.zipCode}"/> </h:commandLink> <h:outputText value=" "/> <%-- below selected text --%> <h:commandLink value="Edit" action="#{microMarket.editSetup}"> <f:param name="zipCode" value="#{item.zipCode}"/> </h:commandLink> </h:column> </h:dataTable> </h:form> </f:view> </body> </html> embedded css embedded css on current line embedded css selected embedded Java Script embedded javascript on current line embedded javascript selected embedded Expression Language embedded expression_lang on current line embedded expression_lang selected embedded java embedded java on current line embedded java selected embedded cdata embedded cdata on current line embedded cdata selected
Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems