Renaming struts.xml file

2010-03-15 Thread aum strut
Hi Friends, Is it possible to rename and change the position of struts.xml configuration file in a simple web application. If yes, then please also mention the steps. Thanks, aum

Re: Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-15 Thread abhishek jain
Hi friends, I am still having the problem, here is the config in my struts-config.xml data-sources data-source type=*org.apache.commons.dbcp.BasicDataSource* set-property property=*driverClassName* value=*com.mysql.jdbc.Driver* / set-property property=*url*

Request Encoding

2010-03-15 Thread Ulf Liedén
Hi all, when my struts application receives form entries containing french character (i.e. é è) they are converted to something else, like é è. This has probably something to do with how the request is encoded. I've tried to add ServletActionContext.getRequest().setCharacterEncoding(UTF-8);

Re: Request Encoding

2010-03-15 Thread Lukasz Lenart
2010/3/15 Ulf Liedén u...@lieden.net: to the JSP, but this doesn't help. Any suggestions? Add encoding filter to web.xml Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To

Re: Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-15 Thread abhishek jain
Hi friends, Additional to the config file i also realized that the connection with my server never ends when viewed on browser, i mean the status bar always says that Waiting for URL., Pl. help on the Error: Cannot get a connection, pool error Timeout waiting for idle object, thanks

Re: legend don't work under s:form of struts2

2010-03-15 Thread Alex Rodriguez Lopez
Hi! This might be related to the theme the form is using, http://struts.apache.org/2.1.8.1/docs/themes-and-templates.html This happened to me too, the default s2 theme adds table elements to forms for layout, and trying to use fieldsets results in them being rendered apart from the form

Re: Request Encoding

2010-03-15 Thread Manos Batsis
Ulf Liedén wrote: when my struts application receives form entries containing french character (i.e. é è) they are converted to something else, like é è. This has probably something to do with how the request is encoded. I've tried to add

Re: Request Encoding

2010-03-15 Thread Ulf Liedén
Hi Manos, Lukasz, and thanks for the replies. Setting the URIEncoding=UTF-8 in the server.xml didn't do the trick for me, but so did an UTF8Filter in the web.xml. Best regards, Ulf On Mon, Mar 15, 2010 at 11:20 AM, Manos Batsis manos_li...@geekologue.comwrote: Ulf Liedén wrote: when my

Freemarker error on form submit with checkboxlist

2010-03-15 Thread Alex Rodriguez Lopez
Hi all, I ran into a strange error when using a checkboxlist, backed by a list of usergroups (roles) objects. The error shows not when the form is displayed (it all works as expected) but when submitting the form with the checkboxes on it. Using 2.1.8.1 Could somebody please tell me if this

Cancel-Redirect Action not working on Portlet

2010-03-15 Thread Kofford, C Todd
I am using Struts 2.1.8.1 with the portlet plug-in, and my webapp, a simple album database, is deployed on a tomcat 6 container. When running this webapp stand-alone the cancel button action correctly fires and calls the cancelAlbum action, but when running the same webapp as a portlet in uPortal

Re: Freemarker error on form submit with checkboxlist

2010-03-15 Thread Alex Rodriguez Lopez
Solved, the list and name atributes of checkboxlist cannot have the same name: name=roles list=roles this is what caused the problem. Em 15-03-2010 13:16, Alex Rodriguez Lopez escreveu: Hi all, I ran into a strange error when using a checkboxlist, backed by a list of usergroups (roles)

Struts2 + Sitemesh + Freemarker doesn't work

2010-03-15 Thread jonathan doklovic
I've been working for a week now trying to get Struts2 + Sitemesh + Freemarker to work. I've followed many tutorials and read docs but I still can't get it to work. Basically the decorator runs, but none of the variables get put into scope and so I get literal ${body}, ${title} and ${head}

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-15 Thread Wes Wannemacher
We'll probably need a little more info. In particular, I'd like to know is which versions of struts, sitemesh and freemarker you are using. Also, how do you have the various filters configured in your struts.xml. Also, are you decorating freemarker results with freemarker decorators? -Wes On

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-15 Thread jonathan doklovic
All of the code is listed in the stackoverflow question. I'm using: Struts 2.1.8.1 Struts-Sitemesh Plugin 2.1.8.1 Sitemesh 2.4.2 Freemarker 2.3.15 Currently, I just have a single index.action that returns index.jsp which is decorated with a single main.ftl file. The jsp just has the

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-15 Thread Wes Wannemacher
I am not decorating JSP with freemarker decorators, I am decorating JSP with JSP, but I use the following filter - filter filter-namesitemesh/filter-name filter-classcom.opensymphony.sitemesh.webapp.SiteMeshFilter/filter-class /filter The filter you are using might be

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-15 Thread jonathan doklovic
It seems that the patch mentioned in WW-3296 would fix my problem, however it lists: servlet servlet-namesitemesh-freemarker/servlet-name servlet-classorg.apache.struts2.sitemesh.FreemarkerDecoratorServlet/servlet-class init-param

Re: Parameter in If tag

2010-03-15 Thread Kusuma Haranath Atmakuri
By the way, I am using Struts 2.1.8.1. Actually it was a WebWork app and converting that into Struts2. Referring a parameter was so easy in ww with just '$paramName'. It's weird that I am stuck at such a simple thing. Any light on this would be of great help. Thank you!

Re: Parameter in If tag

2010-03-15 Thread Wes Wannemacher
Parameters that aren't bound to an action property can be tricky... I would try some of the following to see if you can figure out what's going on - s:if test=%{#parameters.paramName.0 =='paramValue'} s:if test=%{#parameters['paramName'] =='paramValue'} s:if test=%{#parameters['paramName'][0]

Can a collection property have its changes saved back to the ActionForm?

2010-03-15 Thread Andrew Sharpe
Hello all, I have a ListString collection that I am displaying in an html:select and it is working great. The problem is that my jsp page makes changes to that html:select control via javascript (adds new options, removes, etc). I would like these changes to be saved back to the ActionForm,