Skip Navigation and Search to Content

Search Team Elements - Discussion - Concursive Corporation

Main Content

  • Status: Caution
  • PostgreSQL
  • Open Source Initiative (OSI)
  • Java

Team Elements

Back to Topics

  1. Developer Community

You need to be logged in to post messages.

Admin.do?command=InsertUser

5/14/2008 6:55 AM

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.

RE: Admin.do?command=InsertUser

1. 5/14/2008 8:52 AM
Matt Rajkowski photo

By Matt R.

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.

RE: Admin.do?command=InsertUser

2. 6/12/2008 4:59 AM

thanks for your reply, i understand now