|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ibisph.mvc.view.ErrorJSP
public class ErrorJSP
Simple JSP view used to display error messages and exceptions.
| Constructor Summary | |
|---|---|
ErrorJSP()
|
|
ErrorJSP(java.lang.String jspName)
Constructor which sets the JSP name property. |
|
| Method Summary | |
|---|---|
boolean |
getAddContextPathPrefix()
|
java.lang.String |
getContentType()
Spring View required method. |
void |
render(java.util.Map modelMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Spring framework MVC View Render method for JSP error view request. |
void |
setAddContextPathPrefix(boolean addContextPathPrefix)
Controls if the jsp filename should include the application context path as a prefix to the jsp path and filename property. |
void |
setJSP(java.lang.String jspPathAndFilename)
Sets error JSP path (or partial path) and filename. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorJSP()
public ErrorJSP(java.lang.String jspName)
| Method Detail |
|---|
public java.lang.String getContentType()
getContentType in interface org.springframework.web.servlet.Viewpublic void setJSP(java.lang.String jspPathAndFilename)
jspPathAndFilename - Filename and full/partial path of the error
jsp to be used.public void setAddContextPathPrefix(boolean addContextPathPrefix)
addContextPathPrefix - true tells the view to add the
application context path as a prefix to the
jspPathAndFilename property to determine the complete
JSP path and filename. If set to false the
jspPathAndFilename property is considered complete and
used as specified.public boolean getAddContextPathPrefix()
public void render(java.util.Map modelMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
addContextPathPrefix property is set to true
, then the application context path is added as a prefix to the
jspPathAndFilename, otherwise the filename and path are
used as is. The user's request is then redirected to the error JSP.
The error JSP then pulls the session attributes error messages to be
displayed to the user.
render in interface org.springframework.web.servlet.ViewmodelMap - Spring framework MVC model map which contains the error
messages and any exceptions.request - HTTP request used to set the session attribute and to get
the application context path.response - HTTP response passed from Spring MVC framework used to
send an HTTP redirect to the error JSP.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||