php.html

ファイルアップロードサンプル




	//実際のJava側のコード
	@POST
	@ActionParam
	public Navigation upload() {
		UploadFile file = $_FILES.get("aaa");
		logger.debug("file name: {}, size:{}", new Object[] { file.getName(),
				file.getSize() });
		return Forward.to("/html/php.html");
	}
	

通常のGETでのリクエスト内容取得サンプル




	//実際のJava側のコード
	@GET
	@ActionPath
	public Navigation execute() {
		String value = $_GET.get("hoge");
		logger.debug("value : {}", value);
		return Forward.to("/html/php.html");
	}