I am looking to do something like what is listed below, is it possible or a
way to do similar:

 

----------------------------------------------------------------------------
--------------------------------------------------------

tiles-defs.xml:

  <definition name="doc.errorPage">

              <put name="title"  value="ACINT21 Contact Screening Status
Viewer" />

              <put name="body"   value="/WEB-INF/view/main/error_page.jsp"
/>

  </definition>

 

  <definition name="doc.userNotFound"  extends="doc.errorPage">

              <put name="title"  value="User Not Found" />

 

              <!-Here is where the problem is on how to do this so I am
making it pseudo code -->

              <use name="body" />

                   <put name="longFormattedDisplayString">

                            This is an error: <br>

                            Blah blah blah<br><br>

                            If this persists contact blah blah

                   </put>

              </use>

              <!-above here is where I don't know how to do this-->

  </definition>

 

----------------------------------------------------------------------------
--------------------------------------------------------

error_page.jsp:

...

<tiles:getAsString name="longFormattedDisplayString" />

 

<!--

Message: <%= exception.getMessage() %><br>

<p>With the following stack trace:

 

<pre>

<% exception.printStackTrace(new PrintWriter(out)); %>

</pre>

-->

 

 

Basically, I want to have a reusable error page that has a configurable (&
HTML formattable) message to the user.

 

Reply via email to