Chris Pratt escribió:
You can refer to the DisplayTag documentation about what collections they
support, there are quite a few.  I usually use a java.util.List of
JavaBean's And yes, you'll have to use JDBC, JPA, Ibatis, Hibernate... to
get that data from the database into a structure that can be displayed.

As for your other question, take a look at the last column in my example,
that's exactly what it does.
  (*Chris*)

On Thu, Jan 7, 2010 at 1:05 AM, Sergio
<killing-is-my-busin...@hotmail.com>wrote:

but i don't understand the data structure to hold the users. When you get
the ResultSet from mysql, how do you put it into the list? Without using
hibernate or similar, i've tried with several collections, for example a
<String >, Map <String><String>. The first string holds the name or user id,
and the map holds attribute-value pair. No success, i think that is a bad
solution.

and another question: i need the user id be passed to another action as a
parameter. I've tried with a s:form and a hidden field, something like
<input type="hidden" value="<s:property>"> is the idea. It's about an online
shop, and i'm having problems with:

1.- listing products from mysql
2.- adding products to the cart (from a mysql products list

i'm a little newbie with struts.....

regards

--
Sergio


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



wow, i think i got. I'll take a look.

thank you very much

--
Sergio


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to