摘要: As you learnt from the Struts 2 architecture, when you click on a hyperlink or submit an HTML form in a Struts 2 web application, the input is collect... 阅读全文
posted @ 2015-08-28 16:47 wuhn 阅读(410) 评论(0) 推荐(0)
摘要: From a high level, Struts2 is a pull-MVC (or MVC2) framework. The Model-View-Controller pattern in Struts2 is realized with following five core compon... 阅读全文
posted @ 2015-08-28 16:33 wuhn 阅读(430) 评论(0) 推荐(0)
摘要: Our first task is to get a minimal Struts 2 application running. This chapter will guide you on how to prepare a development environment to start your... 阅读全文
posted @ 2015-08-28 16:23 wuhn 阅读(300) 评论(0) 推荐(0)
摘要: Struts2 is popular and mature web application framework based on the MVC design pattern. Struts2 is not just the next version of Struts 1, but it is a... 阅读全文
posted @ 2015-08-28 16:14 wuhn 阅读(205) 评论(0) 推荐(0)
摘要: Model View Controller or MVC as it is popularly called, is a software design pattern for developing web applications. A Model View Controller pattern ... 阅读全文
posted @ 2015-08-28 16:08 wuhn 阅读(243) 评论(0) 推荐(0)
摘要: Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the f... 阅读全文
posted @ 2015-08-28 15:36 wuhn 阅读(241) 评论(0) 推荐(0)
摘要: The Struts `DynaActionForm` class is an interesting feature to let you create a form bean dynamically and declaratively. It enables you to create a “v... 阅读全文
posted @ 2015-08-28 15:34 wuhn 阅读(287) 评论(0) 推荐(0)
摘要: Struts `MappingDispatchAction` class is used to group similar functionality into a single action class, and execute the function depends on `parameter... 阅读全文
posted @ 2015-08-28 13:41 wuhn 阅读(331) 评论(0) 推荐(0)
摘要: The `DispatchActio`n class (`org.apache.struts.actions.DispatchAction`) provides a way to group all related functions into a single action class. It’s... 阅读全文
posted @ 2015-08-28 13:35 wuhn 阅读(252) 评论(0) 推荐(0)
摘要: 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 p... 阅读全文
posted @ 2015-08-28 13:33 wuhn 阅读(211) 评论(0) 推荐(0)
摘要: Struts wildcards can helps to reduce the repetition in your `struts-config.xml` file, as long as your Struts project is following some regular file st... 阅读全文
posted @ 2015-08-28 13:29 wuhn 阅读(200) 评论(0) 推荐(0)
摘要: Many developers like to put all Struts related stuff (action, form) into a single Struts configuration file. It’s fast for the initial development but... 阅读全文
posted @ 2015-08-28 13:26 wuhn 阅读(263) 评论(0) 推荐(0)
摘要: 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 ... 阅读全文
posted @ 2015-08-28 13:20 wuhn 阅读(342) 评论(0) 推荐(0)
摘要: 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 i... 阅读全文
posted @ 2015-08-28 13:18 wuhn 阅读(190) 评论(0) 推荐(0)
摘要: 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... 阅读全文
posted @ 2015-08-28 13:02 wuhn 阅读(338) 评论(0) 推荐(0)
摘要: Wicket examples is a good place to learn Apache Wicket by examples, and a must reference site for new or experienced Wicket’s developers. In this Wick... 阅读全文
posted @ 2015-08-28 08:02 wuhn 阅读(542) 评论(0) 推荐(0)
摘要: A simple hello world example in Wicket, show the basic structure of Wicket web application.Tools and technologies used in this article- Apache Wicket ... 阅读全文
posted @ 2015-08-28 07:58 wuhn 阅读(391) 评论(0) 推荐(0)
摘要: In JSF , “`h:panelGrid`” tag is used to generate HTML table tags to place JSF components in rows and columns layout, from left to right, top to bottom... 阅读全文
posted @ 2015-08-28 07:51 wuhn 阅读(300) 评论(0) 推荐(0)
摘要: In JSF, ``, `` and `` tags are used to render a HTML “`a`” anchor element, see below examples to understand the different among them.> Note> In below ... 阅读全文
posted @ 2015-08-28 07:47 wuhn 阅读(469) 评论(0) 推荐(0)
摘要: In JSF 2.0, both `` and `` tags are used to render HTML input element of type button, with different mechanism to handle the navigation.##1. JSF `h:co... 阅读全文
posted @ 2015-08-28 07:37 wuhn 阅读(319) 评论(0) 推荐(0)
摘要: In JSF 2.0, you can use `` tag to render a HTML “script” element, and link it to a js file.For example,``````It will generate following HTML output…``... 阅读全文
posted @ 2015-08-28 07:33 wuhn 阅读(256) 评论(0) 推荐(0)
摘要: In JSF 2.0, you can use `` output a css file.For example,``````It will generate following HTML output…``````##JSF outputStylesheet exampleAn example t... 阅读全文
posted @ 2015-08-28 07:31 wuhn 阅读(302) 评论(0) 推荐(0)
摘要: In JSF, you can use `` tag to render a HTML “`img`” element. For example, an image named “`sofa.png`” in a resources folder, see figure below :![jsf2-... 阅读全文
posted @ 2015-08-28 07:29 wuhn 阅读(303) 评论(0) 推荐(0)
摘要: In JSF 2.0 web application, “`h:outputText`” tag is the most common used tag to display plain text, and it doesn’t generate any extra HTML elements. S... 阅读全文
posted @ 2015-08-28 07:28 wuhn 阅读(230) 评论(0) 推荐(0)
摘要: In JSF, `` tag is used to render a multiple select dropdown box – HTML select element with “`multiple`” and “`size=1`” attribute.```//JSF... ... 阅读全文
posted @ 2015-08-28 07:24 wuhn 阅读(290) 评论(0) 推荐(0)
摘要: In JSF, `` tag is used to render a dropdown box – HTML select element with “`size=1`” attribute.```//JSF... ``````//HTML output... ```##`h:... 阅读全文
posted @ 2015-08-28 07:21 wuhn 阅读(324) 评论(0) 推荐(0)
摘要: In JSF, `` tag is used to render a multiple `select` listbox – HTML `select` element with “`multiple`” and “`size`” attribute.```//JSF... `... 阅读全文
posted @ 2015-08-28 07:17 wuhn 阅读(549) 评论(0) 推荐(0)
摘要: In JSF, `` tag is used to render a single select listbox – HTML select element with “size” attribute.```//JSF... ``````//HTML output... `... 阅读全文
posted @ 2015-08-28 07:12 wuhn 阅读(443) 评论(0) 推荐(0)
摘要: In JSF, “`h:selectOneRadio`” tag is used to render a set of HTML input element of type “`radio`“, and format it with HTML table and label tag.```//JSF... 阅读全文
posted @ 2015-08-28 07:08 wuhn 阅读(365) 评论(0) 推荐(0)