If you're using the regular tag library - you can use ${variableName} in the location, page, action or forward attribute of your menu item. This will look in all scopes (including request parameters) for a variable with that name. If you're using the EL version of the taglib, you can use JSTL's syntax - i.e. ${param.paramName}, ${requestScope.myVariable}.

HTH,

Matt

On Aug 5, 2004, at 10:40 AM, Sebastien Brunot wrote:

Hi,

 

And sorry if it is a newby question :

 

I’m using struts menu 2.2 with Struts 1.1 to display a tabbed menu on a page that displays a business object : under the first tab is diaplayed a first group of information about the business object, under the second tab is displayed another group of informations, etc…

 

When the user clicks on a tab, the action on the other side need to know which business object is concerned…

 

Here is my question : how can i add a dynamicaly valued parameter to the URL of each tab ?

(When the page is displaying the business object which id is « 12345 », i want the URL associated with my (for example) first tab to be « myaction.do?id=12345 ». When the page is dislpaying the business object which id is « 9999 », i want the URL associated with my (for example) first tab to be « myaction.do?id=9999 ». =>  What is the standard way of doing this with Struts menu ?

 

Thanks for your help,

 

Sebastien



------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to