(I have not been following this thread) Are you using JSTL?
The intent of that debug script is for you to include it in whatever pages you like (or in your layout if using tiles). Did you remember to add the necessary taglib directives? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx ----- Original Message ----- From: "lixin chu" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, September 11, 2004 2:44 AM Subject: Re: Help - struggling this for days ! > thanks. > it dislpays a nice table but no actual items. am i > suppose to modify anything in this file ? > > > --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: > > > You might try using the following JSP fragment > > (compliments of James > > Mitchell) on your page -- it will show you objects > > in the request, etc. > > > > -------------------------------------------- > > <hr width="3px"> > > Debug Information:<br> > > <table border="1" width="50%" class="debug"> > > <tr> > > <th colspan="2" > > style="background:aqua"><b>Specific JSTL > > values</b></th> > > </tr> > > <tr> > > <td>param.pageSize</td> > > <td><c:out value="${param.pageSize}"/></td> > > </tr> > > <tr> > > <td>pageSize</td> > > <td><c:out value="${pageSize}"/></td> > > </tr> > > <tr> > > <td>param.begin</td> > > <td><c:out value="${param.begin}"/></td> > > </tr> > > <tr> > > <td>begin</td> > > <td><c:out value="${begin}"/></td> > > </tr> > > <tr> > > <td>testLink</td> > > <td><c:out value="${testLink}"/></td> > > </tr> > > > > > > <tr> > > <th colspan="2" style="background:aqua"><b>Request > > Parameters</b></th> > > </tr> > > <c:forEach items="${paramValues}" var="parameter"> > > <tr> > > <td><c:out value="${parameter.key}"/></td> > > <td> > > <c:forEach var="value" items="${parameter.value}"> > > <c:out value="${value}"/> > > </c:forEach> > > </td> > > </tr> > > </c:forEach> > > > > <tr> > > <th colspan="2" style="background:aqua"><b>Header > > Values</b></th> > > </tr> > > <c:forEach items="${header}" var="h"> > > <tr> > > <td><c:out value="${h.key}"/></td> > > <td> > > <c:out value="${h.value}"/> > > </td> > > </tr> > > </c:forEach> > > > > <tr> > > <th colspan="2" > > style="background:aqua"><b>Initialization > > Parameters</b></th> > > </tr> > > <c:forEach items="${initParam}" var="parameter"> > > <tr> > > <td><c:out value="${parameter.key}"/></td> > > <td><c:out value="${parameter.value}"/></td> > > </tr> > > </c:forEach> > > > > <tr> > > <th colspan="2" > > style="background:aqua"><b>Cookies</b></th> > > </tr> > > <c:forEach items="${cookie}" var="mapEntry"> > > <tr> > > <td><c:out value="${mapEntry.key}"/></td> > > <td><c:out value="${mapEntry.value}"/></td> > > </tr> > > </c:forEach> > > > > > > <tr> > > <th colspan="2" > > style="background:aqua"><b>page</b></th> > > </tr> > > <c:forEach items="${pageScope}" var="itm"> > > <c:if test="${itm.key != > > 'javax.servlet.jsp.jspResponse'}"> > > <tr> > > <td><c:out value="${itm.key}"/></td> > > <td><c:out value="${itm.value}"/></td> > > </tr> > > </c:if> > > </c:forEach> > > > > > > <tr> > > <th colspan="2" > > style="background:aqua"><b>request</b></th> > > </tr> > > <c:forEach items="${requestScope}" var="itm"> > > <tr> > > <td><c:out value="${itm.key}"/></td> > > <td><c:out value="${itm.value}"/></td> > > </tr> > > </c:forEach> > > > > > > <tr> > > <th colspan="2" > > style="background:aqua"><b>session</b></th> > > </tr> > > <c:forEach items="${sessionScope}" var="itm"> > > <tr> > > <td><c:out value="${itm.key}"/></td> > > <td><c:out value="${itm.value}"/></td> > > </tr> > > </c:forEach> > > > > > > <tr> > > <th colspan="2" > > style="background:aqua"><b>application</b></th> > > </tr> > > <c:forEach items="${applicationScope}" var="itm"> > > <tr> > > <td><c:out value="${itm.key}"/></td> > > <td><textarea rows="5" cols="50"><c:out > > value="${itm.value}"/></textarea></td> > > </tr> > > </c:forEach> > > </table> > > ----------------------- > > > > lixin chu wrote: > > > > > Here is how I prepare action messages in Action: > > > > > > ActionMessages messages = new ActionMessages(); > > > messages.add(ActionMessages.GLOBAL_MESSAGE, new > > > ActionMaessage ("something here")); > > > saveMessages(request, messages); > > > > > > anything wrong ? > > > > > > > > > > > > --- lixin chu <[EMAIL PROTECTED]> wrote: > > > > > > > > >>Hi, > > >>Appreciate your help, I have been trying to find > > out > > >>why for days. > > >> > > >>Here is my JSP: > > >>---------------- > > >><b>Search Templates</b> > > >><font color="red" size=2> > > >><logic:messagesPresent> > > >><ul> > > >><html:messages id="error"> > > >><li><bean:write name="error"/></li> > > >></html:messages><br> > > >></ul> > > >></logic:messagesPresent> > > >></font> > > >> > > >><font color="blue" size=2> > > >><logic:messagesPresent message="true"> > > >><ul> > > >><html:messages id="messages" message="true"> > > >><li><bean:write name="messages"/></li> > > >></html:messages><br> > > >></ul> > > >></logic:messagesPresent> > > >></font> > > >> > > >><table border=0 cellspacing=0 cellpadding=1> > > >> > > >> <html:form action="/admin/SearchTemplate"> > > >> > > >> <tr> > > >> <td><font size=2 > > color=#0000FF>Name*:</font></td> > > >> <td colspan=2><input type=text name=name > > >>size=20/></td> > > >> </tr> > > >> > > >> <tr> > > >> <td><font size=2 color=#FF0000>Category* > > >>:</font></td> > > >> <td> > > >> <html:select property="categorySelected"> > > > === message truncated === > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > 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]