btw, Dave, to answer a couple of your q's below:
>> > label="Dept Name"
>> value="dept.deptName"
>> size="10" />
>If dept (the Department) is already loaded then the
>value="dept.deptName" is not necessary; bean values
>will be handled automagically... I
--- shadman <[EMAIL PROTECTED]> wrote:
> I am more than just a little embarrassed.
I think if we all had a nickel for each time we've
made a mistake like that and had it staring us in the
face for a day or two we could buy enough beer to at
least make us not care that we made a mistake like
that a
Thanks once again, Dave. I am more than just a little embarrassed. Seems I
focused too much on S2, instead of core Java (auto-gen can be a bad thing
sometimes). "private" was the problem. Such a freshman error ...
shadman
--- shadman <[EMAIL PROTECTED]> wrote:
> private Department get
--- shadman <[EMAIL PROTECTED]> wrote:
> private Department getDept() { return dept; }
> private void setDept(Department department) {
*dingdingding*
Private, huh?
;)
> label="Dept Name"
> value="dept.deptName"
> size="10" />
If dept (the
Thanks for the reply, Dave. So I have the following:
struts2test1.xml
jsps/edit_list.jsp
jsps/edit_dept.jsp
Java:
public class Department implements java.io.Serializable {
private short deptId;
private String deptName;
public Department() { }
pub
--- shadman <[EMAIL PROTECTED]> wrote:
> The DepartmentAction retrieves the dept object from
> DB, and has getters and setters for the domain
"dept"
> object in the action.
>
>
This is the proper syntax; I do it all over the place.
If the action has a getDept() and the dept has a
getDeptId(), a
Thanks for the reply, Jeromy. That is exactly what has not been working.
Unfortunately, the s:property does not work either.
"dept" is a Department domain object, with two field, deptId: short; and
deptName: String. Both have getters and setters.
The DepartmentAction retrieves the dept object fr
I'm not 100% sure of your intent as this line is a bit strange - trying
to set the deptId to the deptName
but anyway, the documentation on the wiki around the expressions for
some tags is a bit confusing and I suspect the problem is that you need
"%{ }" to explicitly identify the OGN
So, if the action properties are pushed onto the stack via OGNL, then what
from below would be preventing me from seeing the values that should be
there? Displaying a list worked just find, the Dept object seems to be
unavailable. I have getter and setter, according to documentation, I
shouldn't h
9 matches
Mail list logo