using html:rewrite ensures that things will still work when you change your context path...
Your last example wont work because you can't nest tags. If you can use the html-el tags, this should work: <html-el:rewrite page="${component.type}.do"/>?action=main although this does seem to demonstrate perhaps too tight a coupling between your back-end and web tier... -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. > -----Original Message----- > From: Ray Madigan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 1:31 PM > To: Struts Users Mailing List > Subject: RE: JavaScript > > > Thanks for the reply. > > What does <html:rewrite do that inserting the context path > myself doesn't > do? > > In my application the action.do is calculated from an ADO > that I am getting > from my EJB application server. Every object comes back with > a type field > and the handler is an action with the name of the EJB > component reference. > > if I use something like: > > top.Frame.location.href = '/MyApp/<c:out > value='${component.type}'/>.do?action=main'; > > it seems to work fine. > > top.Frame.location.href = > '<html:rewrite page='/COMPONENT.do'/>?action=main'; > > also works fine, BUT > > top.Frame.location.href = > '<html:rewrite page='<c:out > value='${component.type}'/>.do'/>?action=main'; > > I can't figure out how to get the quites to match up > correctly. Clearly Im > not thinking about this right. > -----Original Message----- > From: Jarnot Voytek Contr AU HQ/SC > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 10:13 AM > To: 'Struts Users Mailing List' > Subject: RE: JavaScript > > > You should probably use something like > > top.Frame.location.href = '<html:rewrite > page="/action.do"/>?action=main'; > > -- > Voytek Jarnot > Quidquid latine dictum sit, altum viditur. > > > > -----Original Message----- > > From: Ray Madigan [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 20, 2003 11:49 AM > > To: Struts Users Mailing List > > Subject: RE: JavaScript > > > > > > Adding the context path is the answer. Thanks! > > > > -----Original Message----- > > From: Raible, Matt [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 20, 2003 9:43 AM > > To: 'Struts Users Mailing List' > > Subject: RE: JavaScript > > > > > > try including your contextPath in the value for the href, > > unless of course, > > you have your app installed as the root app. > > > > > -----Original Message----- > > > From: Ray Madigan [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, February 20, 2003 10:35 AM > > > To: Struts Users Mailing List > > > Subject: JavaScript > > > > > > > > > I am using in my application, if you can't tell this from my > > > previous posts > > > ;-), does anyone else. > > > > > > I also want to be able to load a frame with a page with > > > javascript like: > > > > > > top.Frame.location.href = '/action.do?action=main'; > > > > > > when i do this i get an error = MAPPING configuration error > > > for request URI > > > > > > Any suggestions? > > > > > > Thanks > > > Ray Madigan > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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] > > > --------------------------------------------------------------------- > 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]