HI,

I have the Users table which i have decided to use to stuff common fields
and i have Teacher, Student and Parent which i have made to be subclasses of
Users and which would store specific fields that are not common using the
hibernate joined subclass  per table strategy.  I have also included a
getUser Type  fields  in the classes which returns and integer  representing
either a user, parent etc.

Now i want to have for example a base jsp which is already there anyway
called Userform.jsp  which holds the common attributes then i would aslo
have a teacher-user.jsp which should hold teacher specific attributes and
also a student-user.jsp which holds student specific attributes. Now i want
a situation whereby i want to create a teacher and teacher has a user type
of 2 then i would pass this as a parameter to the controller which would now
display a page that has the contents of the userForm.jsp and the
teacher-user.jsp the same goes for if i want to create a student, parent,
etc.

My big question is how can i handle this in appfuse especially the page
seperation and linking them together when required. Also is it possible to
do what i want to do at the controller layer?

I am using appfuse 1.9.4 and spring mvc.

Thanks all for your wonderful support.

Reply via email to