You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Name

Breadcrumb Plugin

Publisher

Scott Stanlick

License

Open Source (ASL2)

Version

1.3

Compatibility

Struts 2.0.9+

Homepage

http://strutsschool.com

Download

http://www.strutsschool.com/downloads/downloads.action

The Struts 2 plugin is designed to capture bread crumbs. It can be configured many ways.

This Struts 2 plugin is designed to capture bread crumbs when the "breadCrumbs" interceptor is included. This plugin
can be activated by incorporating it with your registered interceptors.

  • Can be configured to suit many different requirements
  •  

The plug-in extends struts-default so you can extend the "breadcrumb" package to get these additional features.

======================
A sample configuration
======================

<struts>

 <package name="strutsSchool" extends="tiles-default,com.strutsschool.interceptors.breadcrumbs">

	<interceptors>
		<interceptor-stack name="strutsschoolStack">
			<interceptor-ref name="defaultStack"></interceptor-ref>
			<interceptor-ref name="breadCrumbs">
				<param name="wildCardSeparator">_</param>
	    		        <param name="uniqueCrumbsOnly">true</param>
	    		        <param name="getRequestsOnly">true</param>
	    		        <param name="crumbMax">2</param>
				<param name="excludeMethods">save,update,remove</param>
			</interceptor-ref>
		</interceptor-stack>
	</interceptors>

	<default-interceptor-ref name="strutsschoolStack"></default-interceptor-ref>
</package>
	...
</struts>

You could also include screenshots by attaching the images to this page:

The following settings can be customized. See the developer guide.

Setting

Description

Default

Possible Values

crumbMax

Maximum crumbs to manage before a new request begiwill pop the oldest from stack

2

int

uniqueCrumbsOnly

Determines if the same Crumb object is unique in CrumbCollection

true

boolean{}

getRequestsOnly

This will include only HTTP method=GET requests

true

boolean{}

wildCardSeparator

Wildcard separator used in action mappings.  e.g.

http://strutsschool.com/samples/MemberAction_print.action?

.. uses the (_)

{_}

String{}

includeMethods

Maximum crumbs to manage before a new request begiwill pop the oldest from stack

2

int

excludeMethods

Maximum crumbs to manage before a new request begiwill pop the oldest from stack

2

int

This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib directory. No other files need to be copied or created.

  • Links to any other documentation or related products

Version

Date

Author

Notes

1.3

Oct 27, 2007

stanlick

Initial release

  • No labels