java - JSF - loading a xhtml from outside -
Hey, I'm starting my journey with JSF and Java, I have a question about this topic.
Question:
Is it possible to load and use XHTML, which is not actually inside a war file, but is it somewhere out? I want to store it in a database or eventually on an FTP server. Can I register it as a resource in JSF?
I'm not sure about the database part, but some interesting approaches to connecting to a NAS drive (Which can also work as an FTP location)
- If you are deployed as an open war, then using the links in the built-in OS, you can get the mapped drive (NAS place) allows you to map a location, where you can use your XHTML form John can FTP.
- If you are posted on Weblogic (I'm sure other people have the same characteristics) you can use all the requests in web.xml to redirect to an underlying NAS location.
I have successfully used JSP and HTML in both the above methods so there are no challenges with XHTML.
Comments
Post a Comment