Re: Re: : Setting property directly instead of using a ####Id property and loading object when saving?

2005-04-06 Thread Simon MARTIN
ely don't want to use an object for your property for the select. use the id of the matTeacher like I've shown and you should be all set. Rick Reumann wrote the following on 4/4/2005 6:06 PM: > Simon MARTIN wrote the following on 4/4/2005 5:37 PM: > >&g

: Setting property directly instead of using a ####Id property and loading object when saving?

2005-04-04 Thread Simon MARTIN
Hi, I've got a Student class that looks like this: public class Student { ... private Teacher matTeacher; ... } In my JSP, I'm using this property like this: selected> Showing this works pretty fine, but when I change the dropdown box and submit the form, I get an

with multiple="true" - creating an appropriate Model

2005-03-27 Thread Simon MARTIN
Hi, I'm using a form which is defined like this: The part with the html:select tag in my JSP looks like this: (the schuelerMatura array is put into the model manually in the Action) Showing the page works pretty fine, put selecting on ore more of the items in the l

Binding to property of layer one in two layer nested context

2005-03-24 Thread Simon MARTIN
Hi, I'm using the nested taglib like this: ... <%-- problem! --%> Everything works fine with the -tag (which gives me something like diplomarbeiten[0].schuelerDiplomarbeiten[0].note and so on), but the checkbox does not work ... I want to bind it

Key from ressource bundle not fount in , but found in ActionMessage

2005-03-05 Thread Simon MARTIN
Hi, my entry from the ressource bundle is found pretty well when I use it like this: if (username == null || username.equals("")) errors.add("username", new ActionMessage("loginForm.username.empty")); However, if I want to use the localized entries in a JSP directly, it doe

Nested properties using

2005-01-20 Thread Simon MARTIN
Hi, I'm using an array of SchuelerMatura-Objects in a DynaValidatorForm, being defined like this in struts-config: I want to show and edit those elements in a table, whereas I iterate through the array as follows: This works quite fine for schueler.*n

Best practice question: Properties (ShoppingCart) per user

2004-12-11 Thread Simon MARTIN
Hi, I'm currently writing a short Struts application without a database (I know that this would be better, but as it is only for teaching purposes, I don't want to 'overflow' my audience with databases and ORM). It should be a small online sales system -- I've got ShoppingItems, ShoppingUsers (whi

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-08 Thread Simon MARTIN
Bill Siggelkow said: > Simon, > > Actions should not hold client-state; instead, you can create a > ShoppingCart in the Action but then save it in the HttpSession. > > Without going into to many details, I suggest you take a look at the > Struts MailReader example distributed wit

Best practice question: Properties (ShoppingCart) per user

2004-12-07 Thread Simon MARTIN
Hi, I'm currently writing a short Struts application without a database (I know that this would be better, but as it is only for teaching purposes, I don't want to 'overflow' my audience with databases and ORM). It should be a small online sales system -- I've got ShoppingItems, ShoppingUsers (w