Both allow the page to access the data without hard coding in the page where the data comes from
At 09:21 AM 11/6/2004, you wrote:
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, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]