Hi

I tried to change the location attribute to forward or Action, its not
supporting because the struts version we are using is 1.1 and as you have
mentioned to use struts 2.0 and above.

How do I make change, so struts 1.1 should support URL Rewriting.

Regards
Parag

-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 17, 2004 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts-Menu (Support URL Re-writing)


Change the "location" attribute to a "action" attribute, where the value
of "action" matches the "path" of your action mapping.  For example:

<Menu  name="CsrAccountInformation"  title="" action="/accountinfoview">

If you are using 2.0, this should work.  If it doesn't, let me know what
displayer you're using and I'll fix it.

Matt

> -----Original Message-----
> From: Parag Pattewar [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 17, 2004 12:05 AM
> To: Matt Raible; 'Struts Users Mailing List'
> Subject: RE: Struts-Menu (Support URL Re-writing)
>
>
>
> Hi
> I am having previous implementation of struts-menu as below
>
>         <Menu  name="CsrAccountInformation"  title=""
> location="accountinfoview.do" >
>             <Item   name="act"  title="Con"
> location="personaldtd.do?expMenu=AcctInfo"/>
>             <Item   name="cas"  title="Clo Acct"
> location="clsRouter.do?expMenu=AcctInfo"/>
>         </Menu>
>
> I have changed it as below, is it the correct way of using
> action and forward attributes in struts-menu.
>
>         <Menu  name="CsrAccountInformation"  title=""
> location="accountinfoview.do" >
>             <Item   name="act"  title="Con"
> action="personaldtd.do?expMenu=AcctInfo"/>
>             <Item   name="cas"  title="Clo Acct"
> forward="clsRouter.do?expMenu=AcctInfo"/>
>         </Menu>
>
>
>
> -----Original Message-----
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 16, 2004 8:44 PM
> To: 'Struts Users Mailing List'; 'Parag Pattewar'
> Subject: RE: Struts-Menu (Support URL Re-writing)
>
>
> Struts Menu makes use of Struts classes to support "forward"
> and "action" attributes.  If you use those, you'll likely get
> the re-writing you're looking for.  I did this on a previous
> project and did find that the "forward" attribute worked, but
> not the "action" attribute.  I believe this is a bug in
> Struts since it should do rewriting when looking up an Action's path.
>
> The one issue with re-writing is that if you're using a menu
> that matches URLs (i.e. tabbed-menu) - they probably won't
> get matched up. At a previous project, we were using URLs to
> highlight the current page we were on and we found that we
> had to use the "action" attribute or the "page" attribute so
> that the jsessionid wasn't appended.  Of course, we could've
> stripped this off in our Velocity template, but we wen't with
> the quick, less-logic, way.
>
> To see this project, go to http://telluride.resortquest.com
> and drill down a bit.  The menu with highlight is on the
> right.  BTW, this site uses the Velocity displayer for both
> the top menu and the side menu.
>
> If you're not familiar with struts-menu, checkout the demo at
> http://raibledesigns.com/struts-menu.
>
> Matt
>
> > -----Original Message-----
> > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 16, 2004 7:54 AM
> > To: 'Parag Pattewar'; [EMAIL PROTECTED]
> > Subject: RE: Struts-Menu (Support URL Re-writing)
> >
> >
> > You have the source to struts and the source to
> struts-menu, grab the
> > code from struts and plug it into struts-menu and submit a
> patch.  You
> > might need a menu-config.xml option to indicate that you
> will be url
> > rewriting.
> >
> > Edgar
> >
> > -----Original Message-----
> > From: Parag Pattewar [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 16, 2004 7:21 AM
> > To: [EMAIL PROTECTED]
> > Subject: Struts-Menu (Support URL Re-writing)
> >
> >
> > Hi all
> >
> > How do I change Struts-Menu implemention, so it can support URL
> > ReWriting for session tracking?
> >
> > Thanks and Regards
> > Parag Pattewar
> > Persistent Systems Private Limited
> > "Bhageerath"
> > 402, Senapati Bapat Road
> > Pune 411016
> > India
> >
> > Tel: +91 (20) 2567 8900 extn. 2640
> > Fax: +91 (20) 2567 8901
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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


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

Reply via email to