Author Login
Post Reply
user Digest 10 Mar 2010 22:35:48 -0000 Issue 9025
Topics (messages 205342 through 205359):
Changing locale and retaining previous query url params
205342 by: Alex Rodriguez Lopez
Re: basic struts application
205343 by: Pawe³ Wielgus
205344 by: Saeed Iqbal
205358 by: tesla
Type conversion for Date in es_CL Locale
205345 by: Sundar Sankarnarayanan
205359 by: Sundar Sankar
Upgrade 2.1.6 to 2.1.8.1
205346 by: CRANFORD, CHRIS
205347 by: Lukasz Lenart
205348 by: CRANFORD, CHRIS
Problem with freemaker, basic Struts2 app in Google App Engine
205349 by: Oscar
205350 by: Lukasz Lenart
205351 by: Oscar
205352 by: Lukasz Lenart
205353 by: Oscar
205354 by: Lukasz Lenart
Struts2 tabbedpanel tab style
205355 by: Helen Shen
StrutsUtil
205356 by: CRANFORD, CHRIS
205357 by: Lukasz Lenart
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_205342.ezm (zipped)Hi!
I have the following code in a tile I use on nearly every page of my app:
<s:if test="%{#request.locale.language == 'pt'}">
<a href="<c:url value="">
<c:param name="request_locale"
value="en" />
</c:url>">
<img alt="en" src="<c:url value="/images/icon_en.png" />"
/></a>
</s:if> <s:else>
<a href="<c:url value="">
<c:param name="request_locale"
value="pt" />
</c:url>">
<img alt="pt" src="<c:url value="/images/icon_pt.png" />"
/></a>
</s:else>
So this is basically a toggle between english and portuguese. It works
well, with the value url empty on <c:url value=""> it appends the
request_locale param to the current url and the i18n interceptor changes
locale. But the "request_locale" parameter is the only parameter on the
new page, so I lost all info of parameters that where on the original
page prior to changing locale.
For example:
- The user is viewing /user/user_input.action?id=7 (editing the user
with id=7) and decides to change language, so clicks on the button to
change it.
- Rendered page: /user/user_input.action?request_locale=en
The new page is in english as espected, but because the url lost the id
param now the action thinks a new user is to be created, instead of
editing the user id=7.
So how can I keep the olod params when changing locales?
Help appreciated!
Alex

Attachment:
user_205343.ezm (zipped)Hi,
in action-mappings there is no result defined for your action,
is it on purpose?
Best greetings,
Paweł Wielgus.
2010/3/10 tesla <fatihdurdu@(protected)>:
>
> from a few days i'm working on struts and i'm trying to develop an simple web
> application.
> i cant see the elements of my array(bookList) on jsp page when i run my
> program it returns me an empty page where am i wrong please help me i'm
> losing my mind for two days.
>
>
> Book class
>
> public class Book {
>
> private String name;
> private String description;
> private int price;
> private int id;
>
> public Book()
> {
>
> }
> public Book(String name)
> {
> this.name=name;
> }
>
> public ArrayList<Book> loadData()
> {
> ArrayList<Book> kitapListesi = new ArrayList<Book>();
> kitapListesi.add(new Book("calculus1"));
> kitapListesi.add(new Book("calculus2"));
> return kitapListesi;
> }
>
> BookForm Class
>
> public class BookForm extends
org.apache.struts.action.ActionForm {
>
> private ArrayList<Book> bookList;
>
> private String name;
>
> private int number;
>
> public ArrayList<Book> getBookList() {
> return bookList;
> }
>
> public void setBookList(ArrayList<Book> bookList) {
> this.bookList = bookList;
> }
>
> BookAction Class
>
> public class BookAction extends
org.apache.struts.action.Action {
>
> private final static String SUCCESS = "success";
>
> public ActionForward execute(ActionMapping mapping, ActionForm form,
> HttpServletRequest request, HttpServletResponse response)
> throws Exception {
>
> BookForm bookForm = (BookForm) form;
> Book book = new Book();
> bookForm.setBookList(book.loadData());
>
>
> return mapping.findForward(SUCCESS);
> }
> }
>
> struts_config.xml
>
> <form-beans>
> <form-bean name="BookForm" type="paket.BookForm"/>
> </form-beans>
>
> <action-mappings>
> <action input="/data" name="BookForm" path="/data" scope="request"
> type="paket.BookAction"/>
> </action-mappings>
>
> data.jsp
>
> <logic:present name="BookForm">
> <logic:iterate name="BookForm" property="bookList" id="book">
> <tr>
> <td><bean:write name="book" property="name" /></td>
> </tr>
> </logic:iterate>
> </logic:present>
> --
> View this message in context: http://old.nabble.com/basic-struts-application-tp27844692p27844692.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_205344.ezm (zipped)Check startsoft on google code.
On 3/10/10, Paweł Wielgus <poulwiel@(protected):
> Hi,
> in action-mappings there is no result defined for your action,
> is it on purpose?
>
> Best greetings,
> Paweł Wielgus.
>
> 2010/3/10 tesla <fatihdurdu@(protected)>:
>>
>> from a few days i'm working on struts and i'm trying to develop an simple
>> web
>> application.
>> i cant see the elements of my array(bookList) on jsp page when i run my
>> program it returns me an empty page where am i wrong please help me i'm
>> losing my mind for two days.
>>
>>
>> Book class
>>
>> public class Book {
>>
>> private String name;
>> private String description;
>> private int price;
>> private int id;
>>
>> public Book()
>> {
>>
>> }
>> public Book(String name)
>> {
>> this.name=name;
>> }
>>
>> public ArrayList<Book> loadData()
>> {
>> ArrayList<Book> kitapListesi = new ArrayList<Book>();
>> kitapListesi.add(new Book("calculus1"));
>> kitapListesi.add(new Book("calculus2"));
>> return kitapListesi;
>> }
>>
>> BookForm Class
>>
>> public class BookForm extends
org.apache.struts.action.ActionForm {
>>
>> private ArrayList<Book> bookList;
>>
>> private String name;
>>
>> private int number;
>>
>> public ArrayList<Book> getBookList() {
>> return bookList;
>> }
>>
>> public void setBookList(ArrayList<Book> bookList) {
>> this.bookList = bookList;
>> }
>>
>> BookAction Class
>>
>> public class BookAction extends
org.apache.struts.action.Action {
>>
>> private final static String SUCCESS = "success";
>>
>> public ActionForward execute(ActionMapping mapping, ActionForm form,
>> HttpServletRequest request, HttpServletResponse response)
>> throws Exception {
>>
>> BookForm bookForm = (BookForm) form;
>> Book book = new Book();
>> bookForm.setBookList(book.loadData());
>>
>>
>> return mapping.findForward(SUCCESS);
>> }
>> }
>>
>> struts_config.xml
>>
>> <form-beans>
>> <form-bean name="BookForm" type="paket.BookForm"/>
>> </form-beans>
>>
>> <action-mappings>
>> <action input="/data" name="BookForm" path="/data" scope="request"
>> type="paket.BookAction"/>
>> </action-mappings>
>>
>> data.jsp
>>
>> <logic:present name="BookForm">
>> <logic:iterate name="BookForm" property="bookList" id="book">
>> <tr>
>> <td><bean:write name="book" property="name" /></td>
>> </tr>
>> </logic:iterate>
>> </logic:present>
>> --
>> View this message in context:
>> http://old.nabble.com/basic-struts-application-tp27844692p27844692.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Attachment:
user_205358.ezm (zipped)thanks for reply
i saw this example in the website struts tutorial and there is no code in
action mappings ?
İ can't understand what am i write to the action mappings?
Paweł Wielgus wrote:
>
> Hi,
> in action-mappings there is no result defined for your action,
> is it on purpose?
>
> Best greetings,
> Paweł Wielgus.
>
> 2010/3/10 tesla <fatihdurdu@(protected)>:
>>
>> from a few days i'm working on struts and i'm trying to develop an simple
>> web
>> application.
>> i cant see the elements of my array(bookList) on jsp page when i run my
>> program it returns me an empty page where am i wrong please help me i'm
>> losing my mind for two days.
>>
>>
>> Book class
>>
>> public class Book {
>>
>> private String name;
>> private String description;
>> private int price;
>> private int id;
>>
>> public Book()
>> {
>>
>> }
>> public Book(String name)
>> {
>> this.name=name;
>> }
>>
>> public ArrayList<Book> loadData()
>> {
>> ArrayList<Book> kitapListesi = new ArrayList<Book>();
>> kitapListesi.add(new Book("calculus1"));
>> kitapListesi.add(new Book("calculus2"));
>> return kitapListesi;
>> }
>>
>> BookForm Class
>>
>> public class BookForm extends
org.apache.struts.action.ActionForm {
>>
>> private ArrayList<Book> bookList;
>>
>> private String name;
>>
>> private int number;
>>
>> public ArrayList<Book> getBookList() {
>> return bookList;
>> }
>>
>> public void setBookList(ArrayList<Book> bookList) {
>> this.bookList = bookList;
>> }
>>
>> BookAction Class
>>
>> public class BookAction extends
org.apache.struts.action.Action {
>>
>> private final static String SUCCESS = "success";
>>
>> public ActionForward execute(ActionMapping mapping, ActionForm form,
>> HttpServletRequest request, HttpServletResponse response)
>> throws Exception {
>>
>> BookForm bookForm = (BookForm) form;
>> Book book = new Book();
>> bookForm.setBookList(book.loadData());
>>
>>
>> return mapping.findForward(SUCCESS);
>> }
>> }
>>
>> struts_config.xml
>>
>> <form-beans>
>> <form-bean name="BookForm" type="paket.BookForm"/>
>> </form-beans>
>>
>> <action-mappings>
>> <action input="/data" name="BookForm" path="/data" scope="request"
>> type="paket.BookAction"/>
>> </action-mappings>
>>
>> data.jsp
>>
>> <logic:present name="BookForm">
>> <logic:iterate name="BookForm" property="bookList" id="book">
>> <tr>
>> <td><bean:write name="book" property="name" /></td>
>> </tr>
>> </logic:iterate>
>> </logic:present>
>> --
>> View this message in context:
>> http://old.nabble.com/basic-struts-application-tp27844692p27844692.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_205345.ezm (zipped)Hi
We use Struts2 in conjunction with ext-js and our home grown ajax framework. Am having this weird problem that I cant figure out and am hoping I can get some advice from the experts. I have a <input type=text> which is used for an ext-js date picker component. The date format are checked for based on locales. This field corresponds to a java.util.date property defined inside a pojo.
My problem is, when I have my locale set to en_US, the struts 2 type conversion kicks in and the setter for the particular property is invoked (which I figured by setting a debug inside the setter method) where as when the locale is es_CL, struts 2 doesn't even call the setter for the date. All other fields inside the pojo are filled but the date. The surprising part was the setter is invoked when the locale is "es" instead of "es_CL".
I checked for request params that comes in etc, nothing seems to have changed here. Am not sure what could be causing this behavior.
I would truly appreciate any help in this regards.
Thanks and Regards,
Sundar Sankarnarayanan, Software Engineer
Apollo Group
________________________________
This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.

Attachment:
user_205359.ezm (zipped)More info on this!
Looks like just for locale es_CL. OGNL is trying to find setXXX(String) and
for locale en_US and es etc, it does figure out the setXXX(Date)
Not sure why this is happening. Should i create a jira for this? Is there a
work around that I may use.. Any info on this is appreciated
Am having the latest set of jars of struts, ognl, and xwork.
Regards
Sundar
15:27:11,700 INFO [STDOUT] 2010-03-10 15:27:11,700 [OgnlValueStack:109]
WARN - Error setting expression 'programVersionExclusion.effectiveDate'
with value '[Ljava.lang.String;@(protected)'
ognl.MethodFailedException: Method "setEffectiveDate" failed for object
....model.ProgramVersionExclusion@(protected):
...model.ProgramVersionExclusion.setEffectiveDate([Ljava.lang.String;)]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1265)
at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)
at
ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
at
com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty (
ObjectAccessor.java:28)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.Ognl.setValue(Ognl.java:737)
at
com.opensymphony.xwork2.ognl.OgnlUtil.setValue (
OgnlUtil.java:198)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue (
OgnlValueStack.java:161)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue (
OgnlValueStack.java:149)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters (
ParametersInterceptor.java:276)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (
ParametersInterceptor.java:187)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (
ParametersInterceptor.java:195)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.MultiselectInterceptor.intercept (
MultiselectInterceptor.java:75)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept (
CheckboxInterceptor.java:94)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept (
PrepareInterceptor.java:138)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept (
ServletConfigInterceptor.java:164)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept (
ExceptionMappingInterceptor.java:176)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.impl.StrutsActionProxy.execute (
StrutsActionProxy.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:488)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter (
FilterDispatcher.java:395)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (
ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke (
StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke (
SecurityAssociationValve.java:175)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke (
JaccContextValve.java:74)
at
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:105)
at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service (
CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (
PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run (
MasterSlaveWorkerThread.java:112)
at
java.lang.Thread.run (
Thread.java:619)
Caused by:
java.lang.NoSuchMethodException:
....model.ProgramVersionExclusion.setEffectiveDate([Ljava.lang.String;)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1206)
... 55 more
/-- Encapsulated exception ------------\
java.lang.NoSuchMethodException:
....model.ProgramVersionExclusion.setEffectiveDate([Ljava.lang.String;)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1206)
at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)
at
ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
at
com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty (
ObjectAccessor.java:28)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.Ognl.setValue(Ognl.java:737)
at
com.opensymphony.xwork2.ognl.OgnlUtil.setValue (
OgnlUtil.java:198)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue (
OgnlValueStack.java:161)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue (
OgnlValueStack.java:149)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters (
ParametersInterceptor.java:276)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (
ParametersInterceptor.java:187)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (
ParametersInterceptor.java:195)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.MultiselectInterceptor.intercept (
MultiselectInterceptor.java:75)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept (
CheckboxInterceptor.java:94)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept (
PrepareInterceptor.java:138)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept (
ServletConfigInterceptor.java:164)
at
15:27:11,700 INFO [STDOUT]
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept (
ExceptionMappingInterceptor.java:176)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.impl.StrutsActionProxy.execute (
StrutsActionProxy.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:488)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter (
FilterDispatcher.java:395)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (
ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke (
StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke (
SecurityAssociationValve.java:175)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke (
JaccContextValve.java:74)
at
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:105)
at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service (
CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (
PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run (
MasterSlaveWorkerThread.java:112)
at
java.lang.Thread.run (
Thread.java:619)
\--------------------------------------/
15:27:11,716 INFO [STDOUT] 2010-03-10 15:27:11,716 [OgnlValueStack:109]
WARN - Error setting expression 'programVersionExclusion.expiryDate' with
value '[Ljava.lang.String;@(protected)'
ognl.MethodFailedException: Method "setExpiryDate" failed for object
....model.ProgramVersionExclusion@(protected):
....model.ProgramVersionExclusion.setExpiryDate([Ljava.lang.String;)]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1265)
at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)
at
ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
at
com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty (
ObjectAccessor.java:28)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.Ognl.setValue(Ognl.java:737)
at
com.opensymphony.xwork2.ognl.OgnlUtil.setValue (
OgnlUtil.java:198)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue (
OgnlValueStack.java:161)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue (
OgnlValueStack.java:149)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters (
ParametersInterceptor.java:276)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (
ParametersInterceptor.java:187)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (
ParametersInterceptor.java:195)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.MultiselectInterceptor.intercept (
MultiselectInterceptor.java:75)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept (
CheckboxInterceptor.java:94)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept (
PrepareInterceptor.java:138)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept (
ServletConfigInterceptor.java:164)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept (
ExceptionMappingInterceptor.java:176)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.impl.StrutsActionProxy.execute (
StrutsActionProxy.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:488)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter (
FilterDispatcher.java:395)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (
ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke (
StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke (
SecurityAssociationValve.java:175)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke (
JaccContextValve.java:74)
at
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:105)
at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service (
CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (
PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run (
MasterSlaveWorkerThread.java:112)
at
java.lang.Thread.run (
Thread.java:619)
Caused by:
java.lang.NoSuchMethodException:
....model.ProgramVersionExclusion.setExpiryDate([Ljava.lang.String;)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1206)
... 55 more
/-- Encapsulated exception ------------\
java.lang.NoSuchMethodException:
....model.ProgramVersionExclusion.setExpiryDate([Ljava.lang.String;)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1206)
at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)
at
ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
at
com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty (
ObjectAccessor.java:28)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.Ognl.setValue(Ognl.java:737)
at
com.opensymphony.xwork2.ognl.OgnlUtil.setValue (
OgnlUtil.java:198)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue (
OgnlValueStack.java:161)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue (
OgnlValueStack.java:149)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters (
ParametersInterceptor.java:276)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (
ParametersInterceptor.java:187)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (
ParametersInterceptor.java:195)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.MultiselectInterceptor.intercept (
MultiselectInterceptor.java:75)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept (
CheckboxInterceptor.java:94)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept (
PrepareInterceptor.java:138)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:87)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept (
ServletConfigInterceptor.java:164)
at com.opensympho
15:27:11,716 INFO [STDOUT]
ny.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept (
ExceptionMappingInterceptor.java:176)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:237)
at
org.apache.struts2.impl.StrutsActionProxy.execute (
StrutsActionProxy.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:488)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter (
FilterDispatcher.java:395)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (
ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke (
StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke (
SecurityAssociationValve.java:175)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke (
JaccContextValve.java:74)
at
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:105)
at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service (
CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (
PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run (
MasterSlaveWorkerThread.java:112)
at
java.lang.Thread.run (
Thread.java:619)
\--------------------------------------/
On Wed, Mar 10, 2010 at 3:28 PM, Sundar Sankarnarayanan <
Sundar.Sankarnarayanan@(protected):
>
>
>
>
> *From:* Sundar Sankarnarayanan
> *Sent:* Wednesday, March 10, 2010 9:40 AM
> *To:* 'user@(protected)'
> *Subject:* Type conversion for Date in es_CL Locale
>
>
>
> Hi
>
> We use Struts2 in conjunction with ext-js and our home grown ajax
> framework. Am having this weird problem that I cant figure out and am hoping
> I can get some advice from the experts. I have a <input type=text> which is
> used for an ext-js date picker component. The date format are checked for
> based on locales. This field corresponds to a java.util.date property
> defined inside a pojo.
>
>
>
> My problem is, when I have my locale set to en_US, the struts 2 type
> conversion kicks in and the setter for the particular property is invoked
> (which I figured by setting a debug inside the setter method) where as when
> the locale is es_CL, struts 2 doesn’t even call the setter for the date. All
> other fields inside the pojo are filled but the date. The surprising part
> was the setter is invoked when the locale is “es” instead of “es_CL”.
>
>
>
> I checked for request params that comes in etc, nothing seems to have
> changed here. Am not sure what could be causing this behavior.
>
>
>
> I would truly appreciate any help in this regards.
>
>
>
> Thanks and Regards,
>
> * *
>
> *Sundar Sankarnarayanan,** *Software Engineer
>
> Apollo Group
>
>
>
> ------------------------------
> This message is private and confidential. If you have received it in error,
> please notify the sender and remove it from your system.
>
>
--
Regards
Sundar S.

Attachment:
user_205346.ezm (zipped)When upgrading Struts from 2.1.6 to 2.1.8.1; I found that for some
reason my application isn't actually loading struts. Did anyone
experience this problem when they upgraded? Is there something specific
I should check or be aware of?
It is as if the framework just isn't being loaded via web.xml.
Thoughts?
Chris

Attachment:
user_205347.ezm (zipped)2010/3/10 CRANFORD, CHRIS <Chris.Cranford@(protected)>
>
> When upgrading Struts from 2.1.6 to 2.1.8.1; I found that for some
> reason my application isn't actually loading struts. Did anyone
> experience this problem when they upgraded? Is there something specific
> I should check or be aware of?
>
> It is as if the framework just isn't being loaded via web.xml.
Did you use a new filter? Do you have any exceptions?
Regards
--
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

Attachment:
user_205348.ezm (zipped)I did have my filters defined as:
struts2-cleanup
org.apache.struts2.dispatcher.ActionContextCleanUpstruts2-prepare
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilterstruts2-execute
org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilterI had used this before as I had a technote that this was required for another filter we had enabled a while back which is no longer used.
I changed the 2.1.8.1 upgrade copy to use
struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterWhen I did this, it all started to work.
I need to see if using the prepare/execute/cleanup classes with 2.1.8.1 were changed so that you cannot break them out like I had them prior with 2.1.6 in the event we must go back and break these out again.
Chris
> -----Original Message-----
> From: Lukasz Lenart [mailto:lukasz.lenart@(protected)]
> Sent: Wednesday, March 10, 2010 10:55 AM
> To: Struts Users Mailing List
> Subject: Re: Upgrade 2.1.6 to 2.1.8.1
>
> 2010/3/10 CRANFORD, CHRIS <Chris.Cranford@(protected)>
> >
> > When upgrading Struts from 2.1.6 to 2.1.8.1; I found that for some
> > reason my application isn't actually loading struts. Did anyone
> > experience this problem when they upgraded? Is there something specific
> > I should check or be aware of?
> >
> > It is as if the framework just isn't being loaded via web.xml.
>
> Did you use a new filter? Do you have any exceptions?
>
>
> Regards
> --
> Łukasz
> http://www.lenart.org.pl/
> Kapituła Javarsovia 2010
> http://javarsovia.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_205349.ezm (zipped)
Attachment:
user_205350.ezm (zipped)Did you specify /struts/* as a static content?
Regards
--
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

Attachment:
user_205351.ezm (zipped)Do you mean in web.xml right? Well, no. This is the web.xml as you can see:
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
* <url-pattern>/*</url-pattern>*
</filter-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
And thanks for answering.
Regards.
2010/3/10 Lukasz Lenart <lukasz.lenart@(protected)>
> Did you specify /struts/* as a static content?
>
>
> Regards
> --
> Łukasz
> http://www.lenart.org.pl/
> Kapituła Javarsovia 2010
> http://javarsovia.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Oscar

Attachment:
user_205352.ezm (zipped)2010/3/10 Oscar <oscar.kalderon@(protected)>:
> Do you mean in web.xml right? Well, no. This is the web.xml as you can see:
No, in appengine-web.xml, as below
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>gruuf-done</application>
<version>2</version>
<sessions-enabled>true</sessions-enabled>
<system-properties>
<property name="java.util.logging.config.file"
value="WEB-INF/classes/logging.properties"/>
</system-properties>
<static-files>
<include path="/struts/*" />
<include path="/js/*" />
</static-files>
</appengine-web-app>
Regards
--
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

Attachment:
user_205353.ezm (zipped)I've changed my appengine-web-app as you said but i still get the same
error. You can see it here (in a new application):
https://anicetoapp3.appspot.com/
Regards
2010/3/10 Lukasz Lenart <lukasz.lenart@(protected)>
> 2010/3/10 Oscar <oscar.kalderon@(protected)>:
> > Do you mean in web.xml right? Well, no. This is the web.xml as you can
> see:
>
> No, in appengine-web.xml, as below
>
> <?xml version="1.0" encoding="utf-8"?>
> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
>
> <application>gruuf-done</application>
> <version>2</version>
>
> <sessions-enabled>true</sessions-enabled>
>
> <system-properties>
> <property name="java.util.logging.config.file"
> value="WEB-INF/classes/logging.properties"/>
> </system-properties>
>
> <static-files>
> <include path="/struts/*" />
> <include path="/js/*" />
> </static-files>
>
> </appengine-web-app>
>
>
> Regards
> --
> Łukasz
> http://www.lenart.org.pl/
> Kapituła Javarsovia 2010
> http://javarsovia.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Oscar

Attachment:
user_205354.ezm (zipped)2010/3/10 Oscar <oscar.kalderon@(protected)>:
> I've changed my appengine-web-app as you said but i still get the same
> error. You can see it here (in a new application):
What version of Struts 2 are you using?
Regards
--
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

Attachment:
user_205355.ezm (zipped)I am using Struts2 v2.1.8 and need some help use the ajax tag tabbedpanel.
The tabbedpanel code below generates a blue rounded tabs using the images.
Is there any way to overwrite the style just to do the simple tab w/o
images or use different images since blue is not the color theme of my
site? Thanks in advance!
<s:tabbedpanel id="test" >
<s:div id="one" label="one" theme="ajax" labelposition="top" >
This is the first pane
</s:div>
<s:div id="two" label="two" theme="ajax" labelposition="top" >
This is the second pane
</s:div>
</s:tabbedpanel>
- Helen

Attachment:
user_205356.ezm (zipped)Any reason why moving from Struts 2.1.6 to 2.1.8.1 that the
/struts/utils.js javascript file isn't being returned to the browser?
Chris

Attachment:
user_205357.ezm (zipped)2010/3/10 CRANFORD, CHRIS <Chris.Cranford@(protected)>:
> Any reason why moving from Struts 2.1.6 to 2.1.8.1 that the
> /struts/utils.js javascript file isn't being returned to the browser?
Maybe it's a problem with static content for your servlet container?
Did you specify /struts as a static content?
The file is there, you can check it here
http://gruuf-done.appspot.com/struts/utils.js
Regards
--
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl