Java tutorial
package com.ggfix.gg.message.controller; /* * Copyright (c) 2010 Hewlett-Packard Company, Inc. All Rights Reserved. * This software is the confidential and proprietary information of * Hewlett-Packard, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Hewlett-Packard. * HP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. HP SHALL NOT BE LIABLE FOR * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. */ import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; /** * ??. * Revision: 9/14/14 * Author: <a href="mailto:si-ke.lv@hp.com">Lv,Si-Ke</a> */ @Controller public class MessageController { @RequestMapping("/adminchatform") public String openAdminChatForm(String sender, ModelMap model) { model.addAttribute("sender", sender); return "adminchatform"; } }