I did not find anything internal for this. I did write a separate class
for this which automates navigation based on Struts actions. I am
thinking about releasing this Open Source. I call it NavObjects and it
allows you to create button navigation displays. I am still working on
JSP tags for this but you can implement the rendering of links with in a
JSP using a scriptlet.
xml navigation file looks something like this:
roles="owner,store,engineer"/>
roles="owner,engineer"/>
path="/GroupMaintenance" roles="owner"/>
roles="owner,store,engineer"/>
path="/AdminUsers" roles="admin"/>
path="/AdminOwners" roles="admin"/>
path="/AdminUserEditSubmit" roles="admin" display="0"/>
path="/AdminUserEdit" roles="admin"/>
path="/SwitchCityAction" roles="owner,engineer" display="0"/>
path="/Devices" roles="owner"/>
roles="owner" display="0"/>
path="/DeviceEditSubmit" roles="owner" display="0"/>
path="/DeviceEditAttribute" roles="owner" display="0"/>
path="/DeviceEditAttributeSubmit" roles="owner" display="0"/>
path="/DeviceAttributes" roles="owner" display="0"/>
path="/DeviceAddAttributeAction" roles="owner" display="0"/>
path="/DeviceRemoveAttributeAction" roles="owner" display="0"/>
path="/InventoryStatus" roles="owner,store,engineer"/>
path="/InventoryAdd" roles="owner,store,engineer"/>
path="/InventoryEdit" roles="owner,store,engineer"/>
path="/InventoryAddDetails" roles="owner,store,engineer" display="0"/>
path="/InventoryAddSubmit" roles="owner,store,engineer" display="0"/>
Scriptlet:
<%
Navobjs navo = new Navobjs();
ArrayList buttons = navo.button_set(0, (String)
session.getAttribute("app_path"), false, (String)
session.getAttribute("role"));
%>
<%
Iterator iter = buttons.iterator();
while (iter.hasNext())
{
DynaBean bean = (DynaBean)iter.next();
%>
<%
if (bean.get(Navobjs.BD_HOT).equals("1"))
{
out.print("!");
}
if (bean.get(Navobjs.BD_WARM).equals("1"))
{
out.print("*");
}
%>
.do >
<%=bean.get(Navobjs.BD_NAME)%>
<%
}
%>
Internally the system tracks the complete path taken to get to a
position within the site. It then also the highlighting of selected
buttons, and a warm state for buttons that were clicked to get to the
current position.
If you are looking for something like this I'd be happy to release the
jars so that you could see if it met your needs.
HFC
Archer wrote:
Hi.
I am using struts 1.3.8 along with struts menu 2.4.3. I want to show
the navigation to the user where he is in for the present page like
mainpage>review>edit... or thing of that sort that can show the user
where
he is in. I want to know whether there is any struts inbulit thing for
this. Can any one please help me regarding this.
--
Henry F. Camacho Jr.
Unplugged Cities, LLC
800 Washington Ave No
Suite 501
Minneapolis, MN 55401
Fridley, MN 55432
763-235-3005 (Office)
763-257-6898 (Cell)
tknightowl (Skype)
[EMAIL PROTECTED] (email)
www.unpluggedcities.com (www)
KC0KUS (Amateur Radio)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]