struts path problem

Category: Java EE
2009-08-28 03:43:13

Sponsored Links
In the action: return mapping.findForward ("viewOwnerInfo");
. Xml in: <forward name = "viewOwnerInfo" path = "/ ownerinfo_view.jsp" ; />

this page you can find ownerinfo_view.jsp

But my ownerinfo_view.jsp is in a folder infoinit next, so you can?

Why not write this:

<forward name = "viewOwnerInfo" path = "/ infoinit / ownerinfo_view.jsp" ; />

Sponsored Links

2009-08-28 04:00:11
relative path, attention is relative.
think about who?
to carefully pondering it
2009-08-28 04:06:25
if that is a relative path, the more important Oh
2009-08-28 04:12:08
infoinit folder under the path in the project do?
2009-08-28 04:26:59
relatively Road King Road King is very simple if you are a / a / ownerinfo_view.jsp ; then your a / a / infoinit / ownerinfo_view.jsp
path can be written as are in the same directory
2009-08-28 04:35:09
not the existence of this problem, right

lz you clear the cache under redistribute it under?
2009-08-28 04:44:47
this should not be possible right from the code point of view, jsp should be placed on the project to catalog
2009-08-28 04:51:24
Compare this path problem on the line, no need to be too depth understanding of absolute and relative paths difference on the line
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.