Look at the bottom of the original message.

-----Original Message-----
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 12:02 PM
To: 'Struts Users Mailing List'
Subject: RE: Tiles question

Can you explain what you want to do in english, rather than pseudocode?


-----Original Message-----
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:54 AM
To: [EMAIL PROTECTED]
Subject: Tiles question


 

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.

 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to