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
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
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
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
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
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
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
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
8 matches
Mail list logo