
struts1
文章平均质量分 83
gmemai
这个作者很懒,什么都没留下…
展开
-
Struts ForwardAction Example
In Struts MVC model, you have to go thought the Action Controller to get a new view page. In some cases, you really just need to get a specified JSP page only, it’s so stupid to create an action contro转载 2015-08-28 10:18:17 · 339 阅读 · 0 评论 -
Struts Hello World Example
In this tutorial we show you how to develop a hello world web application using classic Struts 1.3 framework.Tools and technologies used : Struts 1.3.10 Maven 2.x Eclipse 3.6 Final project structureLet转载 2015-08-28 09:38:01 · 544 阅读 · 0 评论 -
Configure the Struts Tag Libraries
In Struts framework, you always need to configure the Struts tag libraries in order to access it in view page (JSP). There are two ways to configure it.1. Strut Tag Libraries Manual ConfigurationThe ma转载 2015-08-28 09:43:44 · 398 阅读 · 0 评论 -
Configure a welcome page in Struts
Every website need a welcome or default page as an entry point. Here’s 3 ways to configure a welcome page in Struts.1. index.jspThe simplest way is create a “index.jsp” page and put it same level with转载 2015-08-28 09:47:07 · 355 阅读 · 0 评论 -
Struts2中action获取request、response、session的方式
在struts1.x,request、session是方法自带的,直接调用就可以;在struts2.x中,BaseAction等底层都是封装好的,struts2的request、response、session都被隐藏的了,struts2提供有两种方式。 第一种方式,非IoC(Spring中的控制反转)方式: package com.action; import java.util转载 2015-09-09 06:19:04 · 333 阅读 · 0 评论 -
struts2 Interceptor详解
1.在注册页面中(index.jsp)注册一下: <% session.setAttribute("user","lzw"); %> 2.在登录界面(login.jsp)登录: <form action="login.action" method="post"> <table align="center">转载 2015-09-06 13:13:12 · 498 阅读 · 0 评论 -
Struts 2的基石——拦截器(Interceptor)
Interceptor(以下译为拦截器)是Struts 2的一个强有力的工具,有许多功能(feature)都是构建于它之上,如国际化、转换器,校验等。什么是拦截器拦截器,在AOP(Aspect-Oriented Programming)中用于在某个方法或字段被访问之前,进行拦截然后在之前或之后加入某些操作。拦截是AOP的一种实现策略。拦截器是动态拦截Action调用的对象。它提供了一种机制可以让开发转载 2015-09-06 13:09:19 · 362 阅读 · 0 评论