OK. I got around the errors by including the requestURI="/search.do" in my
display:table tag. Apparently this matches with the URL on my address bar
for the display tag page. Is this the right way? Also when I did this and
try exporting using any media links, instead of giving me an option to
Open/Save it displays the results again on the browser. This happens for all
media types. I thoguht the ResponseOverrideFilter should be able to fix
that. I configured it as follows in my web.xml
<filter>
<filter-name>ResponseOverrideFilter</filter-name>
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
Am I missing anything else? Sorry for the multiple posts, Please advise.
TIA
Gnan
-----Original Message-----
From: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 6:01 PM
To: '[EMAIL PROTECTED]'
Subject: [displaytag-user] RE: Displaytag with Struts/Tiles
In addition, I have two forms pointing to two different actions (one on left
menu page and other on the right frame where my display tag is). Not sure if
this matters?
Please help
Thanks
Gnan
-----Original Message-----
From: Shabada, Gnaneshwer
Sent: Wednesday, October 27, 2004 5:48 PM
To: '[EMAIL PROTECTED]'
Subject: Displaytag with Struts/Tiles
Hello,
My Struts JSP works fine with Display tag without Tiles. The moment I
implement Tiles for that JSP, none of the column sorting/exporting work. It
gives me the following error when I click on column header or try export for
any media type. I have ResponseOverrideFilter configured in my web.xml and
also made sure all my HTML TABLE tags in my JSP have unique ids. Not sure
what else am missing?
I am getting the following exception when I use
<tiles:getAsString name="title"/> in my Layout JSP with tiles.
[10/27/04 17:37:55:179 EDT] 39cfba26 WebGroup E SRVE0026E: [Servlet
Error]-[Error - tag.getAsString : component context is not defined. Check
tag syntax]: javax.servlet.jsp.JspException: Error - tag.getAsString :
component context is not defined. Check tag syntax
at
org.apache.struts.taglib.tiles.GetAttributeTag.doEndTag(GetAttributeTag.java
:198)
at org.apache.jsp._Layout._jspService(_Layout.java:120)
at
com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(Jsp
Servlet.java:357)
at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.jav
a:675)
And if I remove the above line of code from my Layout JSP, I get the
following exception.
[10/27/04 17:45:53:797 EDT] 6616fb29 WebGroup E SRVE0026E: [Servlet
Error]-[]: java.lang.NullPointerException
at
org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java:726
)
at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:517
)
at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:477)
at org.apache.jsp._Layout._jspService(_Layout.java:115)
Either way I can't get rid of this error. I went through the archives and
couldnt find anything except Fabrizio's unique table id solution which I
already implemented..
Would appreciate if someone could give some insight on this one..
TIA
Gnan
========================================================================
This email message is for the sole use of the intended recipient (s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. To reply to our email administrator directly, send
an email to [EMAIL PROTECTED]
Toys "R" Us, Inc.
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
========================================================================
This email message is for the sole use of the intended recipient (s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. To reply to our email administrator directly, send
an email to [EMAIL PROTECTED]
Toys "R" Us, Inc.
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user