Team Elements

Status: Caution PostgreSQL Open Source Initiative (OSI) Java
PUBLIC PROFILE

Back to topics

Developer Community

Admin.do?command=InsertUser

You need to be logged in to post messages

Admin.do?command=InsertUser

5/14/2008 6:55 AM EDT

hello,

i can't understand the meaning of :

<form name="editUser" method="post" action="Admin.do?command=InsertUser" onSubmit="return checkForm(this);">

especially, action="Admin.do?command=InsertUser" can you explain me please

thx.

1. 5/14/2008 8:52 AM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

Are you curious about this particular instance of form handling or any of Team Elements form handling in general?

Team Elements uses an MVC framework for handling HTTP requests. It's very similar to Struts. Read the following for a good primer about the ConcourseSuite MVC implementation:

http://www.concursive.com/ProjectManagement.do?command=ProjectCenter&section=Wiki&pid=175&subject=Application+Architecture

So, in the following form:

<form name="editUser" method="post" action="Admin.do?command=InsertUser" onSubmit="return checkForm(this);">

the user form will be sent to a servlet that matches "Admin" in config.xml, and the method executeCommandInsertUser will be executed in that class. If there is a hidden parameter called "auto-populate=true" then controller will take the form parameters and populate a bean specified in config.xml automatically. Before the form is posted however, a javascript validation occurs on the form checkForm(this). If it passes, then the form is posted to the server.

Hope that helps.

2. 6/12/2008 4:59 AM EDT

thanks for your reply, i understand now

2 results found