Tiles
Hi ! I make a definition in which i put a list of tiles to include but I can't achieve to do this eg : in my tiles-defs.xml : definition name=page1-def extends=baseDef put name=page value=1/ putList name=listQuestions add value=/Q/firstName.jsp/ add value=/Q/lastName.jsp/ /putList /definition And in my template, i don't know how to iterate in listQuestions in order to include /Q/firstName.jsp and /Q/lastName.jsp. A start : tiles:importAttribute/ c:out value=${listQuestions}/ c:forEach items=${listQuestions} var=question What to do to include question ! /c:forEach Maybe it's not possible... Thanks. Rémi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles
This is a Struts/Tiles related question, you should ask in the Struts mailing lists. Dewitte Rémi wrote: Hi ! I make a definition in which i put a list of tiles to include but I can't achieve to do this eg : in my tiles-defs.xml : definition name=page1-def extends=baseDef put name=page value=1/ putList name=listQuestions add value=/Q/firstName.jsp/ add value=/Q/lastName.jsp/ /putList /definition And in my template, i don't know how to iterate in listQuestions in order to include /Q/firstName.jsp and /Q/lastName.jsp. A start : tiles:importAttribute/ c:out value=${listQuestions}/ c:forEach items=${listQuestions} var=question What to do to include question ! /c:forEach Maybe it's not possible... Thanks. Rémi - 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]
Re: Tiles
Yes i did, i made a mistake. Sorry ! Rémi Le Lundi 11 Juillet 2005 11:24, Christoph Kutzinski a écrit : This is a Struts/Tiles related question, you should ask in the Struts mailing lists. Dewitte Rémi wrote: Hi ! I make a definition in which i put a list of tiles to include but I can't achieve to do this eg : in my tiles-defs.xml : definition name=page1-def extends=baseDef put name=page value=1/ putList name=listQuestions add value=/Q/firstName.jsp/ add value=/Q/lastName.jsp/ /putList /definition And in my template, i don't know how to iterate in listQuestions in order to include /Q/firstName.jsp and /Q/lastName.jsp. A start : tiles:importAttribute/ c:out value=${listQuestions}/ c:forEach items=${listQuestions} var=question What to do to include question ! /c:forEach Maybe it's not possible... Thanks. Rémi - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tiles and other sruts tags in Tomcat5
Hi, Where is your Struts jar? Why don't you try asking on the struts-user list? ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Geeth Narayanan [mailto:[EMAIL PROTECTED] Sent: Sunday, October 31, 2004 10:53 AM To: Tomcat Users List Subject: RE: Tiles and other sruts tags in Tomcat5 Importance: High Could someone please explain why this is happening and how to correct it ? -Original Message- From: Geeth Narayanan Sent: Thursday, October 28, 2004 11:14 AM To: Tomcat Users List Subject: Tiles and other sruts tags in Tomcat5 Importance: High I am trying to use Struts 1.2.4 on Tomcat 5.0. I seem to get errors for any of the struts tags including the tiles tag due to incompatibility with JSP2.0 or something, I guess. Here is the error: :\wqt\vcs\tis\nb\tel-web-ube\build\generated\src\org\apache\jsp\jsp\sho p \Input_jsp.java:112: _jspx_meth_html_base_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.js p .PageContext) in org.apache.jsp.jsp.shop.Input_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext) if (_jspx_meth_html_base_0(_jspx_th_html_html_0, _jspx_page_context)) ^ C:\wqt\vcs\tis\nb\tel-web-ube\build\generated\src\org\apache\jsp\jsp\sh o p\Input_jsp.java:148: _jspx_meth_html_radio_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.j s p.PageContext) in org.apache.jsp.jsp.shop.Input_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext) I am assuming others use struts tags running on tomcat 5.0 container. Is there any reason why I get this error? If so, how can it be fixed? Thanks. Geeth - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tiles and other sruts tags in Tomcat5
Yoav, The problem occurs when I run in the Tomcat 5.0 container not in Tomcat 4. That's the reason I asked in the Tomcat users list. Struts jar is in the WEB-INF/lib of the web app. Thanks. Geeth -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 01, 2004 8:06 AM To: Tomcat Users List Subject: RE: Tiles and other sruts tags in Tomcat5 Hi, Where is your Struts jar? Why don't you try asking on the struts-user list? ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Geeth Narayanan [mailto:[EMAIL PROTECTED] Sent: Sunday, October 31, 2004 10:53 AM To: Tomcat Users List Subject: RE: Tiles and other sruts tags in Tomcat5 Importance: High Could someone please explain why this is happening and how to correct it ? -Original Message- From: Geeth Narayanan Sent: Thursday, October 28, 2004 11:14 AM To: Tomcat Users List Subject: Tiles and other sruts tags in Tomcat5 Importance: High I am trying to use Struts 1.2.4 on Tomcat 5.0. I seem to get errors for any of the struts tags including the tiles tag due to incompatibility with JSP2.0 or something, I guess. Here is the error: :\wqt\vcs\tis\nb\tel-web-ube\build\generated\src\org\apache\jsp\jsp\sho p \Input_jsp.java:112: _jspx_meth_html_base_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.js p .PageContext) in org.apache.jsp.jsp.shop.Input_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext) if (_jspx_meth_html_base_0(_jspx_th_html_html_0, _jspx_page_context)) ^ C:\wqt\vcs\tis\nb\tel-web-ube\build\generated\src\org\apache\jsp\jsp\sh o p\Input_jsp.java:148: _jspx_meth_html_radio_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.j s p.PageContext) in org.apache.jsp.jsp.shop.Input_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext) I am assuming others use struts tags running on tomcat 5.0 container. Is there any reason why I get this error? If so, how can it be fixed? Thanks. Geeth - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
RE: Tiles and other sruts tags in Tomcat5
Could someone please explain why this is happening and how to correct it ? -Original Message- From: Geeth Narayanan Sent: Thursday, October 28, 2004 11:14 AM To: Tomcat Users List Subject: Tiles and other sruts tags in Tomcat5 Importance: High I am trying to use Struts 1.2.4 on Tomcat 5.0. I seem to get errors for any of the struts tags including the tiles tag due to incompatibility with JSP2.0 or something, I guess. Here is the error: :\wqt\vcs\tis\nb\tel-web-ube\build\generated\src\org\apache\jsp\jsp\shop \Input_jsp.java:112: _jspx_meth_html_base_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp .PageContext) in org.apache.jsp.jsp.shop.Input_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext) if (_jspx_meth_html_base_0(_jspx_th_html_html_0, _jspx_page_context)) ^ C:\wqt\vcs\tis\nb\tel-web-ube\build\generated\src\org\apache\jsp\jsp\sho p\Input_jsp.java:148: _jspx_meth_html_radio_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.js p.PageContext) in org.apache.jsp.jsp.shop.Input_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext) I am assuming others use struts tags running on tomcat 5.0 container. Is there any reason why I get this error? If so, how can it be fixed? Thanks. Geeth - 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]
Tiles and other sruts tags in Tomcat5
I am trying to use Struts 1.2.4 on Tomcat 5.0. I seem to get errors for any of the struts tags including the tiles tag due to incompatibility with JSP2.0 or something, I guess. Here is the error: :\wqt\vcs\tis\nb\tel-web-ube\build\generated\src\org\apache\jsp\jsp\shop \Input_jsp.java:112: _jspx_meth_html_base_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp .PageContext) in org.apache.jsp.jsp.shop.Input_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext) if (_jspx_meth_html_base_0(_jspx_th_html_html_0, _jspx_page_context)) ^ C:\wqt\vcs\tis\nb\tel-web-ube\build\generated\src\org\apache\jsp\jsp\sho p\Input_jsp.java:148: _jspx_meth_html_radio_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.js p.PageContext) in org.apache.jsp.jsp.shop.Input_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext) I am assuming others use struts tags running on tomcat 5.0 container. Is there any reason why I get this error? If so, how can it be fixed? Thanks. Geeth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Recursive stack trace with Tiles and Filter - any ideas?
Hi, As you know signal 11 crashes are internal to the JVM usually at a native level. A corrupt or incomplete JVM installation, or missing OS patches for your JVM version, are the two most common causes for this. Can you post the Java code for your error JSP? That'll make helping you a bit easier for people who don't feel like translating your Struts/Tiles directives to Java in their head ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 6:52 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Recursive stack trace with Tiles and Filter - any ideas? Sorry for the cross-post, but I'm not sure if this is more of a Tomcat or Struts issue (in addition to certainly somehow being my code issue :). Any suggestions are appreciated. The last week or so have been having our Tomcat 5.0.19 server on SuSE Linux crash with a Signal 11. We are using Struts 1.2.1. When I look in the Tomcat logs the actual cause usually varies somewhat, but several times we have seen what looks like a loop in error handling occur. I'm headed in this evening to run memtest86 on our server, but wonder if there might be something else that's the root cause. Anyway, in case there is a common cause for this that I have missed, I've enclosed snipped portions (even then its a large stacktrace) of the latest exception we received today. Obviously somethings in a loop and we either run out of memory, getting the Signal 11, or we go into a section of memory that's bad. Both my error.jsp page and another JSP page (PoStudent.jsp) are almost always involved. The error.jsp is pretty simple, I've enclose it below just before the stack trace. Thanks in advance for any ideas - Richard ERROR PAGE %@ page language=java isErrorPage=true % %@ include file=/common/taglibs.jspf % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html head titlebean:message key=errorPage.title//title link rel=stylesheet type=text/css media=all href=%=request.getContextPath()%/styles/default.css / /head body h1bean:message key=errorPage.heading//h1 p logic:messagesPresent html:messages id=error span id=errorbean:write name=error filter=false//spanbr /html:messages /logic:messagesPresent br//p h3You have reached this page because of an unanticipated software error described below./h3 h3Please /h3 br/ % if (exception != null) { exception.printStackTrace(new java.io.PrintWriter(out)); } else { % !-- only show this if no error messages present -- logic:messagesNotPresent bean:message key=errors.none/ /logic:messagesNotPresent % } % /body /html STACK TRACE FROM CATALINA.OUT 14:24:30,509 ERROR [TP-Processor33] InsertTag:? - ServletException in '/layouts/baseLayout.jsp': null javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a tionFilterChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t erChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat c her.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDis p atcher.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispa t cher.java(Compiled Code)) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.j a va(Inlined Compiled Code)) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java( C ompiled Code)) at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCon t extImpl.java:829) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte x tImpl.java:800) at org.apache.jsp.error_jsp._jspService(error_jsp.java:150) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a tionFilterChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t erChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat c her.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDis p atcher.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispa t cher.java(Compiled Code)) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.j a va(Inlined Compiled Code)) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java( C ompiled Code
RE: Recursive stack trace with Tiles and Filter - any ideas?
((javax.servlet.jsp.tagext.Tag) _jspx_th_html_messages_0); _jspx_th_bean_write_0.setName(error); _jspx_th_bean_write_0.setFilter(false); int _jspx_eval_bean_write_0 = _jspx_th_bean_write_0.doStartTag(); if (_jspx_th_bean_write_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return true; _jspx_tagPool_bean_write_name_filter.reuse(_jspx_th_bean_write_0); return false; } private boolean _jspx_meth_logic_messagesNotPresent_0(PageContext _jspx_page_context) throws Throwable { JspWriter out = _jspx_page_context.getOut(); // logic:messagesNotPresent org.apache.struts.taglib.logic.MessagesNotPresentTag _jspx_th_logic_messagesNotPresent_0 = (org.apache.struts.taglib.logic.MessagesNotPresentTag) _jspx_tagPool_logic_messagesNotPresent.get(org.apache.struts.taglib.logi c.MessagesNotPresentTag.class); _jspx_th_logic_messagesNotPresent_0.setPageContext(_jspx_page_contex t); _jspx_th_logic_messagesNotPresent_0.setParent(null); int _jspx_eval_logic_messagesNotPresent_0 = _jspx_th_logic_messagesNotPresent_0.doStartTag(); if (_jspx_eval_logic_messagesNotPresent_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write(\n); if (_jspx_meth_bean_message_2(_jspx_th_logic_messagesNotPresent_0, _jspx_page_context)) return true; out.write('\n'); int evalDoAfterBody = _jspx_th_logic_messagesNotPresent_0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_logic_messagesNotPresent_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return true; _jspx_tagPool_logic_messagesNotPresent.reuse(_jspx_th_logic_messages NotPresent_0); return false; } private boolean _jspx_meth_bean_message_2(javax.servlet.jsp.tagext.JspTag _jspx_th_logic_messagesNotPresent_0, PageContext _jspx_page_context) throws Throwable { JspWriter out = _jspx_page_context.getOut(); // bean:message org.apache.struts.taglib.bean.MessageTag _jspx_th_bean_message_2 = (org.apache.struts.taglib.bean.MessageTag) _jspx_tagPool_bean_message_key.get(org.apache.struts.taglib.bean.Message Tag.class); _jspx_th_bean_message_2.setPageContext(_jspx_page_context); _jspx_th_bean_message_2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_logic_messagesNotPresent_0); _jspx_th_bean_message_2.setKey(errors.none); int _jspx_eval_bean_message_2 = _jspx_th_bean_message_2.doStartTag(); if (_jspx_th_bean_message_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return true; _jspx_tagPool_bean_message_key.reuse(_jspx_th_bean_message_2); return false; } } Shapira, Yoav wrote: Hi, As you know signal 11 crashes are internal to the JVM usually at a native level. A corrupt or incomplete JVM installation, or missing OS patches for your JVM version, are the two most common causes for this. Can you post the Java code for your error JSP? That'll make helping you a bit easier for people who don't feel like translating your Struts/Tiles directives to Java in their head ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 6:52 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Recursive stack trace with Tiles and Filter - any ideas? Sorry for the cross-post, but I'm not sure if this is more of a Tomcat or Struts issue (in addition to certainly somehow being my code issue :). Any suggestions are appreciated. The last week or so have been having our Tomcat 5.0.19 server on SuSE Linux crash with a Signal 11. We are using Struts 1.2.1. When I look in the Tomcat logs the actual cause usually varies somewhat, but several times we have seen what looks like a loop in error handling occur. I'm headed in this evening to run memtest86 on our server, but wonder if there might be something else that's the root cause. Anyway, in case there is a common cause for this that I have missed, I've enclosed snipped portions (even then its a large stacktrace) of the latest exception we received today. Obviously somethings in a loop and we either run out of memory, getting the Signal 11, or we go into a section of memory that's bad. Both my error.jsp page and another JSP page (PoStudent.jsp) are almost always involved. The error.jsp is pretty simple, I've enclose it below just before the stack trace. Thanks in advance for any ideas - Richard ERROR PAGE %@ page language=java isErrorPage=true % %@ include file=/common/taglibs.jspf % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html head titlebean:message key=errorPage.title//title link rel=stylesheet type=text/css media=all href=%=request.getContextPath()%/styles/default.css / /head body h1bean:message key=errorPage.heading//h1 p
AW: Recursive stack trace with Tiles and Filter - any ideas?
Hi Please: http://learn.to/quote -Original Message- Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Re: Recursive stack trace with Tiles and Filter - any ideas?
On Thu, Sep 30, 2004 at 08:37:14AM -0400, Shapira, Yoav wrote: : As you know signal 11 crashes are internal to the JVM usually at a : native level. A corrupt or incomplete JVM installation, or missing OS : patches for your JVM version, are the two most common causes for this. For the archives, sig11's (at least, on x86 architecture) may also be indicative of RAM problems. (Emphasis on may) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Recursive stack trace with Tiles and Filter - any ideas?
Steffen - thank you for the reminder. Yes, I should have snipped a lot more the second time - Richard Steffen Heil wrote: Hi Please: http://learn.to/quote -Original Message- Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Recursive stack trace with Tiles and Filter - any ideas?
)) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp atcher.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat cher.java(Compiled Code)) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja va(Inlined Compiled Code)) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java(C ompiled Code)) at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont extImpl.java:829) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:800) at org.apache.jsp.layouts.baseLayout_jsp._jspService(baseLayout_jsp.java(Co mpiled Code)) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp atcher.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat cher.java(Compiled Code)) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja va(Inlined Compiled Code)) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java(C ompiled Code)) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java(Inlin ed Compiled Code)) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java(Inlined Compiled Code)) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java(Inline d Compiled Code)) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa g.java(Compiled Code)) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java(Compile d Code)) at org.apache.jsp.WEB_002dINF.pages.gen.PoStudent_jsp._jspService(PoStudent _jsp.java:509) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java(Inlined Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java(Compiled Code)) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java(Compiled Code)) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav a(Compiled Code)) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc essor.java(Compiled Code)) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr ocessor.java(Compiled Code)) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles RequestProcessor.java(Compiled Code)) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java( Compiled Code)) at org.apache.struts.action.ActionServlet.process(ActionServlet.java(Inline d Compiled Code)) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java(Compile d Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java(Compiled Code)) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingF ilter.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java(Compiled Code)) at com.ltoj.webapp.filter.BreadCrumbFilter.doFilter(BreadCrumbFilter.java(C ompiled Code)) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
Re: Problems with Tomcat, Struts/Tiles, and encoding
I have a Struts/Tiles application running on Tomcat 4.1.x and Tomcat 5.x with UTF-8 encoding (Polish Russian character sets, particularly) - I didn't have to do anything special for the response encoding, only for the request encoding. Here's what I put at the top of my JSPs: %@ page contentType=text/html; charset=UTF-8 % That seems to do the trick for me. The character encoding for the page is UTF-8 regardless if I'm requesting a JSP directly, or going through an Action. The entire www.fiskars.com site is Struts/Tiles driven, you can check out http://www.fiskars.com/ru_RU/index.do in particular to see the RU character set being used (in UTF-8 encoding). Like I said, the only special thing concerns request encoding ... a filter needed to be installed for that. How are you determining that the encoding being sent the the browser isn't UTF-8? Garbage characters alone won't be a good indication ... in Firefox, I go to the View menu pop-out the Character Encoding menu ... make sure that its set to UTF-8. If it is and you're still getting garbage characters, you may not be saving the JSP files as UTF-8 in your editor. In Eclipse, for instance, you need to specify that the file is UTF-8 in the file's properties (or globally for all files) .. if you don't, it will look like the characters are being inserted correctly, but when Eclipse saves the file, it converts all the characters to ISO-8859-1 which will look like garbage in the browser, even if the encoding is set to UTF-8. Hope some of this helps! Brice Susie Derkins wrote: Hi list, Im using Tiles with Catalina (4.1.29 on Linus and Windows). and Im having problems setting the responses encoding to UTF-8. I added: %@ page contentType=text/html;charset=UTF-8 pageEncoding-UTF-8 % to all my JSP pages tiles and layouts. It is the first line of each page. So now, all my JSPs call ApplicationHttpResponse.setContentType *before* accessing the pages writer. Here is the code for setContentType: public void setContentType(String type) { if (!included) getResponse().setContentType(type); } The problem is that the body of setContentType is never executed because each time a JSP calls it, included is true (I verified by stepping through the code with a debugger), which means we are inside a RequestDispatcher.include(). My guess is that it's Tiles or Struts that causes the request to be dispatch via RequestDispatcher.include. I tried to set the responses content type in a filter, but when I check in my custom tags, pageContext.getResponse().pageContext.getResponse() always returns ISO-8859-1, Tomcats default encoding. Setting the encoding in a JSP works fine as long as Struts/Tiles are not involved. Can somebody please shed some light on this? Do you know of another way of setting the encoding, that can occur before the JSPs are processed? I want to avoid having to build a custom version of Tomcat with UTF-8 as the default encoding. Thanks for your time, Sophia. __ Post your free ad now! http://personals.yahoo.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brice Ruth, Sr. IT Analyst Fiskars Brands Inc http://www.fiskarsbrands.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with Tomcat, Struts/Tiles, and encoding
Hi, That's an excellent response and fiskars.com is a nice-looking site. Thanks, Yoav Shapira Millennium Research Informatics -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 12:25 PM To: Tomcat Users List Subject: Re: Problems with Tomcat, Struts/Tiles, and encoding I have a Struts/Tiles application running on Tomcat 4.1.x and Tomcat 5.x with UTF-8 encoding (Polish Russian character sets, particularly) - I didn't have to do anything special for the response encoding, only for the request encoding. Here's what I put at the top of my JSPs: %@ page contentType=text/html; charset=UTF-8 % That seems to do the trick for me. The character encoding for the page is UTF-8 regardless if I'm requesting a JSP directly, or going through an Action. The entire www.fiskars.com site is Struts/Tiles driven, you can check out http://www.fiskars.com/ru_RU/index.do in particular to see the RU character set being used (in UTF-8 encoding). Like I said, the only special thing concerns request encoding ... a filter needed to be installed for that. How are you determining that the encoding being sent the the browser isn't UTF-8? Garbage characters alone won't be a good indication ... in Firefox, I go to the View menu pop-out the Character Encoding menu ... make sure that its set to UTF-8. If it is and you're still getting garbage characters, you may not be saving the JSP files as UTF-8 in your editor. In Eclipse, for instance, you need to specify that the file is UTF-8 in the file's properties (or globally for all files) .. if you don't, it will look like the characters are being inserted correctly, but when Eclipse saves the file, it converts all the characters to ISO-8859-1 which will look like garbage in the browser, even if the encoding is set to UTF-8. Hope some of this helps! Brice Susie Derkins wrote: Hi list, I'm using Tiles with Catalina (4.1.29 on Linus and Windows). and I'm having problems setting the response's encoding to UTF-8. I added: %@ page contentType=text/html;charset=UTF-8 pageEncoding-UTF-8 % to all my JSP pages - tiles and layouts. It is the first line of each page. So now, all my JSPs call ApplicationHttpResponse.setContentType *before* accessing the page's writer. Here is the code for setContentType: public void setContentType(String type) { if (!included) getResponse().setContentType(type); } The problem is that the body of setContentType is never executed because each time a JSP calls it, included is true (I verified by stepping through the code with a debugger), which means we are inside a RequestDispatcher.include(). My guess is that it's Tiles or Struts that causes the request to be dispatch via RequestDispatcher.include. I tried to set the response's content type in a filter, but when I check in my custom tags, pageContext.getResponse().pageContext.getResponse() always returns ISO-8859-1, Tomcat's default encoding. Setting the encoding in a JSP works fine as long as Struts/Tiles are not involved. Can somebody please shed some light on this? Do you know of another way of setting the encoding, that can occur before the JSPs are processed? I want to avoid having to build a custom version of Tomcat with UTF-8 as the default encoding. Thanks for your time, Sophia. __ Post your free ad now! http://personals.yahoo.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brice Ruth, Sr. IT Analyst Fiskars Brands Inc http://www.fiskarsbrands.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with Tomcat, Struts/Tiles, and encoding
Thanks Brice and Yoav. fiskars.com is very slick indeed. Brice, your response was very helpful; I verified that that all my files are saved with the proper encoding (some of them were not). But Im still having a problem: I have a custom tag that reads a file and writes its content to the JSPs writer. The file is UTF-8 encoded. I was hoping that setting the pages encoding to UTF-8 would set the writers character encoding to UTF-8, but that is not the case. More specifically, pageContext.getResponse().getCharacterEncoding() always returns 8859. From looking at the code, I think its because the JSP works with instances of ApplicationHttpResponse, which wraps a HttpServletResponse. Because the ApplicationHttpResponse is included, the call to ApplicationHttpResponse.setContentType never makes it to HttpServletResponse.setContentType. The workaround I found was to change the default encoding in org/apache/catalina/util/CharsetMapperDefault.properties and re-jar catalina.jar. So, now the responses encoding is UTF8, I have my resource as an array of bytes, but I dont have a method in JSPWriter to write bytes. Therefore, I have to convert them either to chars (which I dont really want to do), or create a UTF8 string from the bytes array, and write the string to the writer. Im fairly new to this and I apologize if it all sounds silly, but is there a better way to write UTF8 character to a JSP in a custom tag? Thank you so much, Sophia. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, That's an excellent response and fiskars.com is a nice-looking site. Thanks, Yoav Shapira Millennium Research Informatics -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 12:25 PM To: Tomcat Users List Subject: Re: Problems with Tomcat, Struts/Tiles, and encoding I have a Struts/Tiles application running on Tomcat 4.1.x and Tomcat 5.x with UTF-8 encoding (Polish Russian character sets, particularly) - I didn't have to do anything special for the response encoding, only for the request encoding. Here's what I put at the top of my JSPs: %@ page contentType=text/html; charset=UTF-8 % That seems to do the trick for me. The character encoding for the page is UTF-8 regardless if I'm requesting a JSP directly, or going through an Action. The entire www.fiskars.com site is Struts/Tiles driven, you can check out http://www.fiskars.com/ru_RU/index.do in particular to see the RU character set being used (in UTF-8 encoding). Like I said, the only special thing concerns request encoding ... a filter needed to be installed for that. How are you determining that the encoding being sent the the browser isn't UTF-8? Garbage characters alone won't be a good indication ... in Firefox, I go to the View menu pop-out the Character Encoding menu ... make sure that its set to UTF-8. If it is and you're still getting garbage characters, you may not be saving the JSP files as UTF-8 in your editor. In Eclipse, for instance, you need to specify that the file is UTF-8 in the file's properties (or globally for all files) .. if you don't, it will look like the characters are being inserted correctly, but when Eclipse saves the file, it converts all the characters to ISO-8859-1 which will look like garbage in the browser, even if the encoding is set to UTF-8. Hope some of this helps! Brice Susie Derkins wrote: Hi list, I'm using Tiles with Catalina (4.1.29 on Linus and Windows). and I'm having problems setting the response's encoding to UTF-8. I added: %@ page contentType=text/html;charset=UTF-8 pageEncoding-UTF-8 % to all my JSP pages - tiles and layouts. It is the first line of each page. So now, all my JSPs call ApplicationHttpResponse.setContentType *before* accessing the page's writer. Here is the code for setContentType: public void setContentType(String type) { if (!included) getResponse().setContentType(type); } The problem is that the body of setContentType is never executed because each time a JSP calls it, included is true (I verified by stepping through the code with a debugger), which means we are inside a RequestDispatcher.include(). My guess is that it's Tiles or Struts that causes the request to be dispatch via RequestDispatcher.include. I tried to set the response's content type in a filter, but when I check in my custom tags, pageContext.getResponse().pageContext.getResponse() always returns ISO-8859-1, Tomcat's default encoding. Setting the encoding in a JSP works fine as long as Struts/Tiles are not involved. Can somebody please shed some light on this? Do you know of another way of setting the encoding, that can occur before the JSPs are processed? I want to avoid having to build a custom version of Tomcat with UTF-8 as the default encoding. Thanks for your time, Sophia
Problems with Tomcat, Struts/Tiles, and encoding
Hi list, Im using Tiles with Catalina (4.1.29 on Linus and Windows). and Im having problems setting the responses encoding to UTF-8. I added: %@ page contentType=text/html;charset=UTF-8 pageEncoding-UTF-8 % to all my JSP pages tiles and layouts. It is the first line of each page. So now, all my JSPs call ApplicationHttpResponse.setContentType *before* accessing the pages writer. Here is the code for setContentType: public void setContentType(String type) { if (!included) getResponse().setContentType(type); } The problem is that the body of setContentType is never executed because each time a JSP calls it, included is true (I verified by stepping through the code with a debugger), which means we are inside a RequestDispatcher.include(). My guess is that it's Tiles or Struts that causes the request to be dispatch via RequestDispatcher.include. I tried to set the responses content type in a filter, but when I check in my custom tags, pageContext.getResponse().pageContext.getResponse() always returns ISO-8859-1, Tomcats default encoding. Setting the encoding in a JSP works fine as long as Struts/Tiles are not involved. Can somebody please shed some light on this? Do you know of another way of setting the encoding, that can occur before the JSPs are processed? I want to avoid having to build a custom version of Tomcat with UTF-8 as the default encoding. Thanks for your time, Sophia. __ Post your free ad now! http://personals.yahoo.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: [work] RE: tomcat 5, Tiles and encoding
Thanks Yan, But I already have that enctype in my form declarations (in a Tiles ancestor layout) and it used to work in Tomcat 4... -Mensagem original- De: Yansheng Lin [mailto:[EMAIL PROTECTED] Enviada em: terca-feira, 13 de abril de 2004 17:47 Para: 'Tomcat Users List' Assunto: [work] RE: tomcat 5, Tiles and encoding Hi, did you get this one figured out yet? If it's on a form, you might want to try method=posted and enctype=multipart/form-data. -Yan -Original Message- From: Paulo Alvim [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 9:11 AM To: [EMAIL PROTECTED] Subject: tomcat 5, Tiles and encoding Hi! I've just moved my Struts+Tiles application from TC4 to TC5 and I'm now having encoding problems when trying to post data...(portuguese special characters aren't being recognized). I've read topics about Tomcat 5+encoding issues related to included JSPs (ex: http://forum.java.sun.com/thread.jsp?forum=45thread=495792) and since I use Tiles and Tiles uses RequestDispatcher.include calls to include markup jsp components in layouts, I'm trying this way...but the labels in my page are ok - just my posted data have the problem. Is there anyone with the same issue? Thanks in advance! Paulo Alvim - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5, Tiles and encoding
Hi, did you get this one figured out yet? If it's on a form, you might want to try method=posted and enctype=multipart/form-data. -Yan -Original Message- From: Paulo Alvim [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 9:11 AM To: [EMAIL PROTECTED] Subject: tomcat 5, Tiles and encoding Hi! I've just moved my Struts+Tiles application from TC4 to TC5 and I'm now having encoding problems when trying to post data...(portuguese special characters aren't being recognized). I've read topics about Tomcat 5+encoding issues related to included JSPs (ex: http://forum.java.sun.com/thread.jsp?forum=45thread=495792) and since I use Tiles and Tiles uses RequestDispatcher.include calls to include markup jsp components in layouts, I'm trying this way...but the labels in my page are ok - just my posted data have the problem. Is there anyone with the same issue? Thanks in advance! Paulo Alvim - 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]
tomcat 5, Tiles and encoding
Hi! I've just moved my Struts+Tiles application from TC4 to TC5 and I'm now having encoding problems when trying to post data...(portuguese special characters aren't being recognized). I've read topics about Tomcat 5+encoding issues related to included JSPs (ex: http://forum.java.sun.com/thread.jsp?forum=45thread=495792) and since I use Tiles and Tiles uses RequestDispatcher.include calls to include markup jsp components in layouts, I'm trying this way...but the labels in my page are ok - just my posted data have the problem. Is there anyone with the same issue? Thanks in advance! Paulo Alvim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts-Tiles Tab
Anyone who may advice: I have created a screen with tab pane using Tiles. I would like to adopt Struts for my form action, how can I do this? Upon successful processing, how do I display the result within the same tab? Is there any good tutorial/ references on this particular need? Thanks in advance
RES: Display Tag, Tiles and Paging
Dear Mark, can you find out why doesnt this following jsp tag (bellow) work in TomCat 4.1.18? A previous servlet create a bean object and adds it to an ArrayList, which is setted as a setAttribute. At the end, it is always a failure whenever my jsp try to show the bean properties,even it makes the type casting correctly. I guess a lot of developers have the same problem. Thanks in advance, Euclides font class=Style_1a href=http://wtrjo210/ConsultaDica?pagina=pagina_atualindice=i;Bjsp:get Property name=dica property=nomeDica //B/a/font -Mensagem original- De: Mark F [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 11 de junho de 2003 20:37 Para: Tomcat Users List Assunto: Re: Display Tag, Tiles and Paging Thanks for the info but I got it fixed. I just set the requestURI parameter to a global forward which points to the tag definition name which contains results.jsp. That fixed it. Maybe it will help you. From my original post the only part that changed was: requestURI=/SearchForm.do was changed to requestURI=/results.do -Mark - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 4:02 PM Subject: RES: Display Tag, Tiles and Paging Hi, i have the same problem! I try to recover some bean properties from a collection object but, it seems that TomCat doesnt accept getproperty and setpropertys ... -Mensagem original- De: Raible, Matt [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 11 de junho de 2003 17:57 Para: 'Tomcat Users List' Assunto: RE: Display Tag, Tiles and Paging Here's what I do as a workaround for this. I'm sure you could easily enhance this to convert all your request parameters into a URL with name/value pairs. %@ include file=/common/taglibs.jsp% %@ page import=org.apache.struts.util.MessageResources, org.apache.struts.Globals% % MessageResources resources = (MessageResources) request.getAttribute(Globals.MESSAGES_KEY); String searchTerm = ; String action = request.getParameter(action); if (search.equalsIgnoreCase(action)) { if (request.getParameter(searchBy) != null) { searchTerm = amp;searchBy=+request.getParameter(searchBy); } } % %-- For linking to edit screen --% bean:struts id=thisURL forward=searchChangeRequests/ bean:struts id=editURL forward=editChangeRequest/ display:table name=userCrList cellpadding=0 cellspacing=0 requestURI='%=request.getContextPath()+thisURL.getPath()+searchTerm%' scope=request pagesize=20 styleClass=list HTH, Matt -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 1:25 PM To: Tomcat Users List Subject: Display Tag, Tiles and Paging I have an ArrayList that is a collection of JavaBeans containing three attributes id, name, ssn. It is working well with the display column like this: div display:table name=results width=45% pagesize=10 cellpadding=3 cellspacing=0 border=0 requestURI=/SearchForm.do summary=Table summary - Listing of medical records contained in docbase for the given name display:column property=name title=Name sort=true / display:column property=ssn title=SSN sort=true autolink=true paramId=rid paramProperty=id href=/GetObjectByRid / display:setProperty name=sort.behavior value=list / display:setProperty name=paging.banner.include_first_last value=true / /display:table /div The paging and sorting do not work. It seems that I need to give it a requestURI parameter, but this causes the app to loose the request scoped values (the name that was searched on). It appends on some new URI parameters (page, order and sort). I found some examples on the developers site that allowed me to get this far but nothing on what needs to be in place before-hand to make this work. Also tiles definitions do not work in the requestURI parameter. Thanks, -Mark - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Display Tag, Tiles and Paging
I have an ArrayList that is a collection of JavaBeans containing three attributes id, name, ssn. It is working well with the display column like this: div display:table name=results width=45% pagesize=10 cellpadding=3 cellspacing=0 border=0 requestURI=/SearchForm.do summary=Table summary - Listing of medical records contained in docbase for the given name display:column property=name title=Name sort=true / display:column property=ssn title=SSN sort=true autolink=true paramId=rid paramProperty=id href=/GetObjectByRid / display:setProperty name=sort.behavior value=list / display:setProperty name=paging.banner.include_first_last value=true / /display:table /div The paging and sorting do not work. It seems that I need to give it a requestURI parameter, but this causes the app to loose the request scoped values (the name that was searched on). It appends on some new URI parameters (page, order and sort). I found some examples on the developers site that allowed me to get this far but nothing on what needs to be in place before-hand to make this work. Also tiles definitions do not work in the requestURI parameter. Thanks, -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Display Tag, Tiles and Paging
Here's what I do as a workaround for this. I'm sure you could easily enhance this to convert all your request parameters into a URL with name/value pairs. %@ include file=/common/taglibs.jsp% %@ page import=org.apache.struts.util.MessageResources, org.apache.struts.Globals% % MessageResources resources = (MessageResources) request.getAttribute(Globals.MESSAGES_KEY); String searchTerm = ; String action = request.getParameter(action); if (search.equalsIgnoreCase(action)) { if (request.getParameter(searchBy) != null) { searchTerm = amp;searchBy=+request.getParameter(searchBy); } } % %-- For linking to edit screen --% bean:struts id=thisURL forward=searchChangeRequests/ bean:struts id=editURL forward=editChangeRequest/ display:table name=userCrList cellpadding=0 cellspacing=0 requestURI='%=request.getContextPath()+thisURL.getPath()+searchTerm%' scope=request pagesize=20 styleClass=list HTH, Matt -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 1:25 PM To: Tomcat Users List Subject: Display Tag, Tiles and Paging I have an ArrayList that is a collection of JavaBeans containing three attributes id, name, ssn. It is working well with the display column like this: div display:table name=results width=45% pagesize=10 cellpadding=3 cellspacing=0 border=0 requestURI=/SearchForm.do summary=Table summary - Listing of medical records contained in docbase for the given name display:column property=name title=Name sort=true / display:column property=ssn title=SSN sort=true autolink=true paramId=rid paramProperty=id href=/GetObjectByRid / display:setProperty name=sort.behavior value=list / display:setProperty name=paging.banner.include_first_last value=true / /display:table /div The paging and sorting do not work. It seems that I need to give it a requestURI parameter, but this causes the app to loose the request scoped values (the name that was searched on). It appends on some new URI parameters (page, order and sort). I found some examples on the developers site that allowed me to get this far but nothing on what needs to be in place before-hand to make this work. Also tiles definitions do not work in the requestURI parameter. Thanks, -Mark - 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]
RES: Display Tag, Tiles and Paging
Hi, i have the same problem! I try to recover some bean properties from a collection object but, it seems that TomCat doesnt accept getproperty and setpropertys ... -Mensagem original- De: Raible, Matt [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 11 de junho de 2003 17:57 Para: 'Tomcat Users List' Assunto: RE: Display Tag, Tiles and Paging Here's what I do as a workaround for this. I'm sure you could easily enhance this to convert all your request parameters into a URL with name/value pairs. %@ include file=/common/taglibs.jsp% %@ page import=org.apache.struts.util.MessageResources, org.apache.struts.Globals% % MessageResources resources = (MessageResources) request.getAttribute(Globals.MESSAGES_KEY); String searchTerm = ; String action = request.getParameter(action); if (search.equalsIgnoreCase(action)) { if (request.getParameter(searchBy) != null) { searchTerm = amp;searchBy=+request.getParameter(searchBy); } } % %-- For linking to edit screen --% bean:struts id=thisURL forward=searchChangeRequests/ bean:struts id=editURL forward=editChangeRequest/ display:table name=userCrList cellpadding=0 cellspacing=0 requestURI='%=request.getContextPath()+thisURL.getPath()+searchTerm%' scope=request pagesize=20 styleClass=list HTH, Matt -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 1:25 PM To: Tomcat Users List Subject: Display Tag, Tiles and Paging I have an ArrayList that is a collection of JavaBeans containing three attributes id, name, ssn. It is working well with the display column like this: div display:table name=results width=45% pagesize=10 cellpadding=3 cellspacing=0 border=0 requestURI=/SearchForm.do summary=Table summary - Listing of medical records contained in docbase for the given name display:column property=name title=Name sort=true / display:column property=ssn title=SSN sort=true autolink=true paramId=rid paramProperty=id href=/GetObjectByRid / display:setProperty name=sort.behavior value=list / display:setProperty name=paging.banner.include_first_last value=true / /display:table /div The paging and sorting do not work. It seems that I need to give it a requestURI parameter, but this causes the app to loose the request scoped values (the name that was searched on). It appends on some new URI parameters (page, order and sort). I found some examples on the developers site that allowed me to get this far but nothing on what needs to be in place before-hand to make this work. Also tiles definitions do not work in the requestURI parameter. Thanks, -Mark - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display Tag, Tiles and Paging
Thanks for the info but I got it fixed. I just set the requestURI parameter to a global forward which points to the tag definition name which contains results.jsp. That fixed it. Maybe it will help you. From my original post the only part that changed was: requestURI=/SearchForm.do was changed to requestURI=/results.do -Mark - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 4:02 PM Subject: RES: Display Tag, Tiles and Paging Hi, i have the same problem! I try to recover some bean properties from a collection object but, it seems that TomCat doesnt accept getproperty and setpropertys ... -Mensagem original- De: Raible, Matt [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 11 de junho de 2003 17:57 Para: 'Tomcat Users List' Assunto: RE: Display Tag, Tiles and Paging Here's what I do as a workaround for this. I'm sure you could easily enhance this to convert all your request parameters into a URL with name/value pairs. %@ include file=/common/taglibs.jsp% %@ page import=org.apache.struts.util.MessageResources, org.apache.struts.Globals% % MessageResources resources = (MessageResources) request.getAttribute(Globals.MESSAGES_KEY); String searchTerm = ; String action = request.getParameter(action); if (search.equalsIgnoreCase(action)) { if (request.getParameter(searchBy) != null) { searchTerm = amp;searchBy=+request.getParameter(searchBy); } } % %-- For linking to edit screen --% bean:struts id=thisURL forward=searchChangeRequests/ bean:struts id=editURL forward=editChangeRequest/ display:table name=userCrList cellpadding=0 cellspacing=0 requestURI='%=request.getContextPath()+thisURL.getPath()+searchTerm%' scope=request pagesize=20 styleClass=list HTH, Matt -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 1:25 PM To: Tomcat Users List Subject: Display Tag, Tiles and Paging I have an ArrayList that is a collection of JavaBeans containing three attributes id, name, ssn. It is working well with the display column like this: div display:table name=results width=45% pagesize=10 cellpadding=3 cellspacing=0 border=0 requestURI=/SearchForm.do summary=Table summary - Listing of medical records contained in docbase for the given name display:column property=name title=Name sort=true / display:column property=ssn title=SSN sort=true autolink=true paramId=rid paramProperty=id href=/GetObjectByRid / display:setProperty name=sort.behavior value=list / display:setProperty name=paging.banner.include_first_last value=true / /display:table /div The paging and sorting do not work. It seems that I need to give it a requestURI parameter, but this causes the app to loose the request scoped values (the name that was searched on). It appends on some new URI parameters (page, order and sort). I found some examples on the developers site that allowed me to get this far but nothing on what needs to be in place before-hand to make this work. Also tiles definitions do not work in the requestURI parameter. Thanks, -Mark - 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] - 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]
tiles strut
i'm using tiles struts, and i cannot add html headers to the response. ethereal shows in response the headers does not appear where should i add them? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem when running tiles-template example
Hi all, I downloaded tiles (nov 2, 2001 build) and deployed the examples in tomcat4.01. The tiles-doc and tiles-channel applications work fine. The problem is with the tiles-template, which returns a empty page. Here is the output in tomcat log for tiles-template: 2002-01-07 09:40:08 StandardHost[localhost]: Installing web application at context path /tiles-template from URL jar:file:C:\Java\apache\jakarta\jakarta-tomcat-4.0.1\webapps\tiles-template.war!/ 2002-01-07 09:40:08 WebappLoader[/tiles-template]: Deploying class repositories to work directory C:\Java\apache\jakarta\jakarta-tomcat-4.0.1\work\localhost\tiles-template 2002-01-07 09:40:08 WebappLoader[/tiles-template]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to c:\java\apache\jakarta\jakarta-tomcat-4.0.1\webapps\tiles-template\WEB-INF\lib\commons-beanutils.jar 2002-01-07 09:40:08 WebappLoader[/tiles-template]: Deploy JAR /WEB-INF/lib/commons-collections.jar to c:\java\apache\jakarta\jakarta-tomcat-4.0.1\webapps\tiles-template\WEB-INF\lib\commons-collections.jar 2002-01-07 09:40:08 WebappLoader[/tiles-template]: Deploy JAR /WEB-INF/lib/commons-digester.jar to c:\java\apache\jakarta\jakarta-tomcat-4.0.1\webapps\tiles-template\WEB-INF\lib\commons-digester.jar 2002-01-07 09:40:08 WebappLoader[/tiles-template]: Deploy JAR /WEB-INF/lib/struts.jar to c:\java\apache\jakarta\jakarta-tomcat-4.0.1\webapps\tiles-template\WEB-INF\lib\struts.jar 2002-01-07 09:40:08 WebappLoader[/tiles-template]: Deploy JAR /WEB-INF/lib/tiles.jar to c:\java\apache\jakarta\jakarta-tomcat-4.0.1\webapps\tiles-template\WEB-INF\lib\tiles.jar 2002-01-07 09:40:08 StandardManager[/tiles-template]: Seeding random number generator class java.security.SecureRandom 2002-01-07 09:40:08 StandardManager[/tiles-template]: Seeding of random number generator has been completed 2002-01-07 09:40:09 ContextConfig[/tiles-template]: Added certificates - request attribute Valve 2002-01-07 09:40:09 StandardWrapper[/tiles-template:default]: Loading container servlet default 2002-01-07 09:40:09 default: init 2002-01-07 09:40:09 StandardWrapper[/tiles-template:invoker]: Loading container servlet invoker 2002-01-07 09:40:09 invoker: init 2002-01-07 09:40:09 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:28 jsp: init 2002-01-07 09:40:29 jsp: init 2002-01-07 09:40:29 jsp: init 2002-01-07 09:40:29 jsp: init 2002-01-07 09:40:37 jsp: init Notice there are multiple jsp:init lines. Could that mean something is not right. Please help! Thanks! ct __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]