Make my decorator dynamic

View: New views
1 Messages — Rating Filter:   Alert me  

Make my decorator dynamic

by vartika vaish :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi i have two pages to be added to my decorator.. one is simply in <decorator:body/> part this is the page which gets called....

There is another part to this decorator which i have added as <page:applyDecorator page="/MenuBar.jsp" name="panel" />
Now the issue is that this page = "/MenuBar.jsp" i wanna make this dynamic according to the page which calls this decorator...

For example, if i call login.jsp and this goes in decorator:body then i want my applied decorator page to be menubar.jsp
but if
i call second.jsp and this goes in decorator:body then i want my applied decorator page to be menusecond.jsp

please help me as soon as possible... this is urgent...