• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

about xml files use

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
filename = "WEB-INF/something.xml"
 
Nitin Trivedi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic