Re: How to add dynamicaly a parameter to a menu entry location ?

Matt Raible <lists-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.