Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!