Re: HTML labels and Struts

2005-08-03 Thread Konrad Billewicz
> Ironically, the original code that I was using had getParameter() as well :) > > You are very welcome! FYI, I posted this on the Wiki on the Struts > Solutions page... it might be worth noting that getParameter() can be used > when doing redirects... feel like doing the edit Konrad? :) ;-) Th

Re: HTML labels and Struts

2005-08-03 Thread Frank W. Zammetti
On Wed, August 3, 2005 4:22 am, Konrad Billewicz said: > It works very nice. I have only changed getAttribute() to getParameter() > in > order to use redirects. Thank you very kindly. Ironically, the original code that I was using had getParameter() as well :) You are very welcome! FYI, I posted

Re: HTML labels and Struts

2005-08-03 Thread Konrad Billewicz
Frank W. Zammetti wrote: > The "typical" solution to this is a little bit of scripting on your page > like so: > > > > function jumpToAnchor() { > <% if (request.getAttribute("hash") != null) { %> > location.hash = "<%=request.getAttribute("hash")%>"; > <% } %> > } > > > I

Re: HTML labels and Struts

2005-08-02 Thread Frank W. Zammetti
I posted a message to the dev list a few hours ago discussing what I thought needs to be done... if you have a chance to review it, a second opinion before I create a patch would be nice... just ot be sure I'm not missing anything obvious or going nuts in general :) Frank Laurie Harper wrote:

Re: HTML labels and Struts

2005-08-02 Thread Laurie Harper
I've been meaning to put together a patch to make modules work with URL prefix mapping. This would fit in naturally with that. But I don't know when I'll find time to get to that so if you have a chance to look at this first, feel free ;-) L. Frank W. Zammetti wrote: Not sure :) I personal

RE: HTML labels and Struts

2005-08-02 Thread Frank W. Zammetti
other.do and uses the anchor as > expected. > > Daniel. > >> -Original Message- >> From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] >> Sent: 02 August 2005 13:41 >> To: Struts Users Mailing List >> Subject: Re: HTML labels and Struts >> >> &

RE: HTML labels and Struts

2005-08-02 Thread Daniel Perry
essage- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: 02 August 2005 13:41 > To: Struts Users Mailing List > Subject: Re: HTML labels and Struts > > > Not sure :) I personally would consider it a bug :) > > I made a Wiki entry for this yesterday by the wa

Re: HTML labels and Struts

2005-08-02 Thread Frank W. Zammetti
Not sure :) I personally would consider it a bug :) I made a Wiki entry for this yesterday by the way, so at least there is documentation of it now. I agree though that it shouldn't be a big change and would be nice to "fix" it (or, alter the feature, depending on what it is!). Want to thr

Re: HTML labels and Struts

2005-08-02 Thread Laurie Harper
Ouch, is that considered a feature or a bug? :-) It probably wouldn't be hard to change Struts to ignore the anchor if such a change were acceptable. L. Frank W. Zammetti wrote: This is probably ripe for a Wiki entry :) As you found out, Struts can't find an Action mapping with an anchor add

Re: HTML labels and Struts

2005-08-01 Thread Frank W. Zammetti
This is probably ripe for a Wiki entry :) As you found out, Struts can't find an Action mapping with an anchor added to it... it's trying to find, literally, an ActionMapping named "someAction.do#someLabel". You might, I suppose, be able to make that literally your mapping path, I've never tried