Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reuse the HTML form in add_account.jsp and edit_account.jsp

11 views
Skip to first unread message

Tung Chau

unread,
Sep 14, 2004, 3:57:51 PM9/14/04
to
Hi,
add_account.jsp will collect all user's input to create an account and
add it into a database.
edit_account.jsp will edit a current account.

They both share the same HTML form. The only difference is that all
the boxes for input in add_account.jsp is supposed to be blank while
they are supposed to display current information of the current user
to be edited in edit_account.jsp.

I think about using jsp:include to reuse the HTML form that works for
both add_account.jsp and edit_account.jsp.My plan is to declare some
String variables that will get the values of a JavaBean(current user),
if the value is null, these variables will have "empty" String values
which works in add_account.jsp.

Is there any cleaner way to do this? Does MVC framework will help? I
have never used any MVC framework.
Tung Chau

0 new messages