> -----Original Message----- > From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]] > > Can anyone tell me how I can prepend the context path to the following > example: > > <html-el:button property="userAction" onclick="goLink('<%= > request.getContextPath() %>/resultsAction.do?userAction=Modify > Group&companyNumber=222')"><bean:message > key='button.modify.assoc'/></html-el:button>
First, you should use the "html:rewrite" (or "html-el") tag to build the URL. That will automatically prepend the context path. You can use it within (I think) a "c:set" element to store the result into a page-scoped attribute, called "url" for example. Then, your tag would look like this: <html-el:button property="userAction" onclick="goLink(${url})"> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]