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

2005-04-06 Thread Simon MARTIN
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: In my JSP, I'm using this property like this: html:select property

html:select: 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: html:select property=matTeacher c:set var=CURTEACHER value=${student.matTeacher.teacherId} / c:forEach var=teacher

html:select with multiple=true - creating an appropriate Model

2005-03-27 Thread Simon MARTIN
Hi, I'm using a form which is defined like this: form-bean name=diplomarbeitForm type=org.apache.struts.validator.DynaValidatorForm form-property name=diplomarbeit type=org.mmo.model.Diplomarbeiten/ /form-bean The part with the html:select tag in my JSP looks like this: html:select

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: nested:iterate id=diplomarbeit property=diplomarbeiten indexId=daId ... nested:iterate id=schuelerDiplomarbeit property=schuelerDiplomarbeiten indexId=index nested:text property=note / nested:checkbox

Key from ressource bundle not fount in fmt:message, 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 does not

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

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

2004-12-08 Thread Simon MARTIN
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 with Struts. -Bill Siggelkow Simon MARTIN wrote: Hi, I'm currently writing a short Struts application without a database (I

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