Changeset 396 for tapas/web/src/com/ether/Controller.java
- Timestamp:
- 03/05/12 16:23:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tapas/web/src/com/ether/Controller.java
r389 r396 4 4 import com.ether.annotation.Mandatory; 5 5 import com.ether.annotation.ParamName; 6 import com.ether.annotation.UseJSON; 6 7 import net.sf.json.JSONObject; 7 8 import org.apache.commons.logging.Log; … … 11 12 12 13 import java.util.HashMap; 13 import java.util.List;14 14 import java.util.Map; 15 15 16 16 /** 17 17 * @author vmipsl 18 * @date 17 feb 201118 * @date 05 march 2012 19 19 */ 20 20 public class Controller … … 24 24 /** *********************************************************** **/ 25 25 /** *********************** VIEWS ***************************** **/ 26 /** 27 * ********************************************************** * 28 */ 26 /** *********************************************************** **/ 29 27 @ControllerMethod(view = VIEW_INIT) 30 28 public Map<String, Object> home() … … 37 35 /** *********************************************************** **/ 38 36 /** *********************** CALLS ***************************** **/ 39 /** 40 * ********************************************************** * 41 */ 42 37 /** *********************************************************** **/ 43 38 @ControllerMethod(jsonResult = true) 44 public JSONObject createUserRequest( @ParamName(" input1") final String input1, @ParamName("input2") final String input2)39 public JSONObject createUserRequest( @ParamName("jsonFormXML") @Mandatory @UseJSON final FormXML jsonFormXML ) 45 40 throws ServiceException 46 41 { 47 48 42 //appel a createxml 49 43 _tapasService.createXMLRequest(); 50 44 51 52 45 final JSONObject result = new JSONObject(); 53 result.put( "result", "SUCCESS" );46 result.put( "result", "SUCCESS" ); 54 47 return result; 55 48 }
Note: See TracChangeset
for help on using the changeset viewer.