I have a custom taglib with a hard coded URL.  I've added a
'context-param' entry to move it the web.xml file.  Is
'getServletConfig().getInitParameter' the corect thing to use here or is
there a better alternative?

Original line:
// out.println("<A
HREF='http://www.domainname.com/util/viewDate.jsp?id="; + id + "&date=" +
year + fmtMonth + fmtDate + "'>" + i + "</A>");

Modified line:
out.println("<A HREF=" +
getServletConfig().getInitParameter("baseJbossUrl") +
"/viewDate.jsp?id=" + id + "&date=" + year + fmtMonth + fmtDate + "'>" +
i + "</A>");

Thanks,

Jack

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

Reply via email to