Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading resource file

 
sudharshan tettu
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i read a file in my action class. I have an xslt file i want to read it in my action class and parse an xml.Is there anyway i can do it?
I can keep the xslt in the same folder as that of action class or in web-inf .

Regads
Sudharshan Tettu
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean your controller right? Not sure what a Spring action is.

This doesn't sound specific to Spring. You parse XML through your code. See this chapter.
 
sudharshan tettu
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
my query is nothing to do with xml parsing , but in general, how can i read a resource file from a bean?i put the bean and the file in the same package .... i want to read content from it and display it on the jsf page...
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a Spring Framework question. We aren't seeing the Spring part in this question. It looks completely unrelated. This is the JavaRanch forum for Spring framework questions.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic