首页>代码>ssm高仿beatport.com在线音乐网网站>/MusicWebProject/src/main/java/com/music/action/ArticlePage_Action.java
package com.music.action;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import com.ToolClass.Transformations_JSON;
/**
* 文章页面
* @author Administrator
*
*/
@Controller
@RequestMapping(value = "/Article_Page")
public class ArticlePage_Action {
@RequestMapping("/Article")
public ModelAndView Article(String article_name,HttpServletRequest request, HttpServletResponse response) throws IOException{
ModelAndView ArticlePage = new ModelAndView("/ArticlePage");
if(new com.ToolClass.Verify_HTTP().Islegal(request)){
ArticlePage.addObject("article_content",new com.ToolClass.Transformations_JSON().List_Transformations_JSON(new com.music.sqlConnect.dml.query.Article_ReleaseQuery().According_toArticleName(article_name)));
}else{
ArticlePage.addObject("article_content","[{\"error\":\"Current connection is unlawful\"}]");
}
return ArticlePage;
}
@RequestMapping("/Article_Conn")
public @ResponseBody net.sf.json.JSONArray Article_Conn(String article_name,HttpServletRequest request, HttpServletResponse response) throws IOException{
if(new com.ToolClass.Verify_HTTP().Islegal(request)){
return new com.ToolClass.Transformations_JSON().List_Transformations_JSON(new com.music.sqlConnect.dml.query.Article_ReleaseQuery().According_toArticleName(article_name));
}else{
return new Transformations_JSON()
.String_Transformations_JSON("[{\"Error\":\"Current connection is unlawful\"}]");
}
}
}
最近下载更多
zolscy LV24
2024年11月29日
微信网友_6602457430806528 LV6
2023年9月21日
13680889751 LV1
2023年5月13日
tanziyi1993 LV2
2022年2月17日
项目管理 LV6
2021年12月12日
wanglinddad LV55
2021年12月9日
cc123456RR LV5
2021年10月27日
加油干阳神 LV9
2021年7月15日
15871814851 LV1
2021年7月5日
橘子猫咪汽水 LV1
2021年5月29日

最近浏览