I'm working on a new Java EE application that uses Struts2 in eclipse. I want to keep the jsp files in the source folder (src/main/jsp) and not in WebContent. When deployed, the all source files get copied over to WebContent/WEB-INF/classes. This also has the bonus effect of making the jsp files inaccessible directly (I want everything to require action intervention). This means that to make results display, I have to do this:
<result name="SUCCESS">WEB-INF/classes/index.jsp</result>
Is it possible to set the default location of the jsp files so that just index.jsp is sufficient to reference them? Ideally the files would also sit in WEB-INF/jsp and not get mixed with the classes.
I saw that spring has this feature. I'm hoping for the same thing for Struts2.
Aucun commentaire:
Enregistrer un commentaire