I am a newbie in Stropes 2, I want to display several lines from the database table in a JSP file. How to attribute the values in the JSP page to get or to set the values.
This method is often used:
public class anAction { Private list display list & lt; Robin & gt; ... Get the rows from the sitter / gesture for display and the jdbc resets in the list ... somewhere in the code ...} Robin is a JavaBin that results in Match one line.
Use the following code block to remove the content on the jsp page:
& lt; S: iterator value = "displayList" & gt; & Lt; TR & gt; & Lt; TD & gt; Attribute1 & lt; / TD & gt; & Lt; TD & gt; Attribute2 & lt; / TD & gt; ... & lt; TD & gt; AttributeN & lt; / TD & gt; & Lt; / TR & gt; & Lt; / S: iterator & gt; Where attribute1 ... attributeN is similar to the properties defined in Robian.
Hope it helps.
Comments
Post a Comment