(一).DivTag.jsp显示界面
<?xml version="1.0" encoding="utf-8"?>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>DivTag 的使用</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/showcase.js"></script>
<sj:head
locale="zh_CN"
loadAtOnce="true"
compressed="false"
jquerytheme="showcase"
customBasepath="themes"
loadFromGoogle="false"
debug="true"
/>
</head>
<body>
<s:url id="ajaxTest" value="ajax1"/>
<sj:div href="%{ajaxTest}">Initial Content</sj:div>
</body>
</html>
(二).Action的写法:
package com.anchorajax;
import com.opensymphony.xwork2.ActionSupport;
public class AjaxAnchor extends ActionSupport
{
public String execute() throws Exception {
return SUCCESS;
}
}
(三).struts.xml下的配置:
<action name="ajax1" class="com.anchorajax.AjaxAnchor">
<result name="success">/ajax1.jsp</result>
</action>
(四)ajax1.jsp的写法:
Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut
neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc.
Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur
malesuada. Vestibulum a velit eu ante scelerisque vulputate.
(五)显示界面:
(六)、加入一点特效:
<sj:div
href="%{ajaxTest}"
indicator="indicator"
effect="pulsate"
effectDuration="1500">
<img
id="indicator"
src="images/indicator.gif"
style="display: none" />
Initial Content</sj:div>
- 大小: 11.8 KB
分享到:
相关推荐
struts2-jquery-plugin-3.1.0.jar
<description>The protoc plugin for gRPC Java</description> <url>https://github.com/grpc/grpc-java</url> <licenses> <license> <name>Apache 2.0</name> <url>...
在网上搜索一堆文章没找到解决方法,只找到了... <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> </plugin> 并没有找到tomcat8-maven-plugin的plugin,在Maven的中央仓库中根本就没有这个插件: ...
maven打包,指定入口类的jar包,具体的pom配置为:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.1.0</version> <executions> <execution> ...
1、先在pom.xml文件中加入<build></build>标签 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.3.1</version> ...
使用Maven POM editor打开项目中的pom.xml文件,选择Dependencies,在Dependencies栏目点击Add进行,首先弹出一个搜索按钮,例如输入spring-web,就会自动搜索关于spring-web相关的jar包,我们选择3.0.5版本的spring...
手动实现springboot 2.2.5 启动自动装配演示代码 <?xml version="1.0" encoding="UTF-8"?... <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>
</modules> packaging节点只能指定为pom,modules节点说明由几个模块组合,上面是把我们经常使用的架构分层模式分成一个个组件进行开发dao->service->web层。此pom文档经常还被用来进行一些依赖管理和插件管理,...
<project xmlns:xsi=... <artifactId>tomcat7-maven-plugin</artifactId> <configuration> <port>8080</port> <path>/</path> </configuration> </plugin> </plugins> </build> </project>
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.5</version> <executions> <execution> <id>add-source</id> ...
<plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.7</version> <dependencies> <dependency> <groupId>org.postgresql</groupId> ...
<artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> <properties> <elasticsearch.version>...
使用 Pentaho Kettle 9.1 源码编译的kettle,可直接运行,kettle9.1编译后2020年6月份最新版本分3卷,实际上自己下载打包也很简单就是费时间,太大了,【图省事的就下载我这个编译后的】,很多人用maven下载出错,...
struts2-jquery-plugin-2.0.0 struts2-jquery-plugin-2.0.0 struts2-jquery-plugin-2.0.0
使用 Pentaho Kettle 9.1 源码编译的kettle,可直接运行,kettle9.1编译后2020年6月份最新版本分3卷,实际上自己下载打包也很简单就是费时间,太大了,【图省事的就下载我这个编译后的】,很多人用maven下载出错,...
使用 Pentaho Kettle 9.1 源码编译的kettle,可直接运行,kettle9.1编译后2020年6月份最新版本分3卷,实际上自己下载打包也很简单就是费时间,太大了,【图省事的就下载我这个编译后的】,很多人用maven下载出错,...
<artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.2</version> <configuration> <verbose>true</verbose> <overwrite>true</overwrite> </configuration> </plugin> </plugins> 注意:...
<groupId>org.zeroturnaround</groupId> <artifactId>javarebel-maven-plugin</artifactId> <executions> <execution> <id>generate-rebel-xml</id> <phase>process-resources</phase> <goals> ...
由于近期有不少同学在问我关于这个帖子中介绍到的openstack-java-sdk 编译的问题,从全年开始的sdk 的pom文件中添加了 gpg 这个插件,因此很多同学在编译的时候都是卡在这里 -<plugin> <groupId>org.apache.maven....
<artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.6</version> <configuration> <!--配置文件的位置--> <configurationFile>GeneratorMapper.xml</configurationFile> <verbose>true</...