Andrew Gabriel wrote:I ran into this thread i find very helpful. Spring and EJB can be used interchangeably. It depends on the project at hand.
https://coderanch.com/t/320460/EJB-JEE/java/Advantages-EJB-JPA-over-spring
Yatish Sonkeshariya wrote:Hello Tim,
Why we should not to write java-code in jsp and wht dou you mean by "Java code has no place in JPSs" ?
Rob Spoor wrote:With java.io.File you can't get all the shares, because the share is the lowest part that's still a directory; the server itself (\\server) isn't.
Perhaps JCIFS does not have this limitation, and you can use SmbFile and its listFiles methods to find the shares themselves. I haven't used JCIFS myself so I couldn't tell you.
Rob Spoor wrote:If the current user has access to the share, you can just use java.io.File to work with the files. Just note that the file path must start with \\. When using that in a String you get \\\\. Alternatively, java.io.File is smart enough to convert any / into \ if needed, so you can also use only // (and then / to separate paths in the remainder of the path).