I think this will do what you want:
<html-el:rewrite page="" />

I use it to put the context name in front of links, like this:
   <link rel=stylesheet href="<html-el:rewrite page="" /><tiles:getAsString
name='stylesheet'/>" type="text/css">

Which produces:
   <link rel=stylesheet href="/bendev/css/style.css" type="text/css">
in the HTML source on the client.

HTH,

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

-----Original Message-----
From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 11:00 AM
To: 'Struts Users Mailing List'
Subject: RE: pageContext beans


Along the same lines, I have a custom tag that I am writing which opens a
popup window to describe Glossary Items.  However, the popup does not get
the application root in the URL automatically.  

For example, if my application root is foo, when I pass in the url
/secure/Glossary.do, instead of opening up /foo/secure/Glossary.do it tries
to go to /secure/Glossary.do.  

I have been going through JavaDocs related to the BaseTagSupport but to no
avail.  I think getting the servletContext() and appending it in front of
the URL so that I don't have to add it to the URL path would be the desired
solution.  Does anyone have any ideas as to how I can go about doing that?
I am ready to face the RTFM inquisition if necessary.  :)

Reply via email to