D
DBoy001
Hi!
I have a custom jsp tag inside wich I want to open an xml file (using
JDOM) to retreive some information. The xml file is located in the
same folder as the jsp using it.
Here's an example:
public int doEndTag() throws JspException {
JspWriter out = this.pageContext.getOut();
SAXBuilder sxb = new SAXBuilder();
Document xmlDoc = sxb.build(new File("params.xml"));
...
If I do it like that, it will search for the file in the application
server's "bin" directory... is there a way to retreive the file in the
right place (using pageContext I guess)?
Thanks
I have a custom jsp tag inside wich I want to open an xml file (using
JDOM) to retreive some information. The xml file is located in the
same folder as the jsp using it.
Here's an example:
public int doEndTag() throws JspException {
JspWriter out = this.pageContext.getOut();
SAXBuilder sxb = new SAXBuilder();
Document xmlDoc = sxb.build(new File("params.xml"));
...
If I do it like that, it will search for the file in the application
server's "bin" directory... is there a way to retreive the file in the
right place (using pageContext I guess)?
Thanks