• Post Reply Bookmark Topic Watch Topic
  • New Topic

about xml files use  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using wsad 5.1 ,i have made a tld hich i have stored in the WEB-INF , and a xml file which i m using in the project but ideally can not use when store in the project , ie when stored at c:\ then it may be used other wise not so what is the configuration setting for this can you please help .........
thanks in advance
 
Ranch Hand
Posts: 449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nitin Trivedi

Can you elaborate on how you are trying to access the XML file currently in your project?
 
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose you try to read a xml file from web application, try this

getServletContext().getRealPath(filename);
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
filename = "WEB-INF/something.xml"
 
Nitin Trivedi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to make dynamic menu for my project ,based on the data on xml file the menu and the java script will be generated depending upon the user type .having a menu.tld file containing the custom tags(RenderMenuFromXml ), another menu.xml coontaining the data for menu and there atributes(url,name, id),
sparate java classes for menu processing logic and generating menu a java script file this is all in my dynamic web project in wsad , things work fine when the menu.xml is in c:\ other wiseif in the webcontent , web-inf then it says file not there on its console while running the jsp file using these custom tags
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you are missing this in the web.xml

<taglib>
<taglib-uri>/WEB-INF/tlds/your.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/your.tld</taglib-location>
</taglib>

[ August 18, 2004: Message edited by: David Ulicny ]
[ August 18, 2004: Message edited by: David Ulicny ]
 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!