I am using AppFuse and Struts menu 2.4.2 for the first time.
 
When the user logs in and clicks on List Users, a tabular list of users
(users.html)
is displayed. For each row there is a checkbox that the user can check for
that 
row selection. The user checks the box and clicks on "Edit - Change
Password" Menu.
Entry in menu-config.xml looks like:
       <Menu name="EditMenu" title="menu.edit" description="Edit Menu"
roles="admin"> 
            <Item name="Change Password" title="menu.edit.changePassword"
page="/cp.jsp"/>

Now I need to find out which row the user has selected and hence figure out
the username.
If I try any of the following codes in cp.jsp it doesn't work:
--------------------------------------------
var ptr = document.forms[0];
for (i = 0; i < ptr.elements.length; i++) {
alert(ptr.elements[i].name);
alert(ptr.elements[i].value);
}
---------------------------------------------
Enumeration e=request.getParameterNames();
int i=0;
while(e.hasMoreElements())
{
i++;
alert('Name of Param '+i+' : ' +(String)e.nextElement());
}
alert('Total Parameters : '+i); 
----------------------------------------------
 
So how can I pass/access complete form on menu item click?

Image of the page and the menu:

http://www.nabble.com/file/8011/cp.gif 

Any help is appreciated. 



-- 
View this message in context: 
http://www.nabble.com/How-to-pass-access-complete-form-on-menu-item-click--tf3620759s2369.html#a10110731
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to