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)

  1. 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.
  2. 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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -