Hi,
I have been getting the same errors from the Parameter interceptor. So
far I haven't found a way around that unless you put getters and setter
for all the parameters in the action. (Which I don't want).
However, the good news is that for better or worse, when/if you change
the settings in the struts.properties file and set struts.devMode =
false for production releases the messages go away. I'm not sure if
those errors are in there for debugging reasons or not. 

-Scott
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 21, 2007 9:53 AM
To: Struts Users Mailing List
Subject: Re: properties at times not found

Hey Scott --

I am using ModelDriven and Preparable so I can pass an ID along with the
requests.  I added an id attribute to my baseaction class and things are
working with one exception.  Since the
prepare method is called before the getModel, when I post a form, and
the
prepare gets called, I am receiving multiple errors where parameters
could
not be set!

08:52:22,119 DEBUG
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept:14
8 -
Setting params created => [ 6/8/07 3:28:27 PM.000 ] dojo.effectiveDate
=> [
2007-06-20 ] action:PayrollUpdate_list => [ OK ] effectiveDate => [
6/20/07
] id => [ 2 ] version => [ 6/20/07 1:18:26 PM.000 ]
08:52:22,129 ERROR
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters:
204
- ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'created' on 'class actions.PayrollUpdateAction: Error setting
expression 'created' with value '[Ljava.lang.String;@30380'
08:52:22,139 ERROR
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters:
204
- ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'dojo.effectiveDate' on 'class actions.PayrollUpdateAction:
Error
setting expression 'dojo.effectiveDate' with value '[Ljava.lang.String
;@1dad8eb'
08:52:22,139 ERROR
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters:
204
- ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'effectiveDate' on 'class actions.PayrollUpdateAction: Error
setting
expression 'effectiveDate' with value '[Ljava.lang.String;@d73fb7'
08:52:22,169 ERROR
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters:
204
- ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'version' on 'class actions.PayrollUpdateAction: Error setting
expression 'version' with value '[Ljava.lang.String;@19829a9'



On 6/20/07, Scott Trafton <[EMAIL PROTECTED]> wrote:
>
> If you are trying to load your list by using a parameter passed in..
say
> and Id from a link or another page, you might need to use the
> paramsPrepareParamsStack interceptor and implement Preparable in you
> action.
>
> I ran into a similar problem the other day.  You would need to put
your
> code to populate the list in the Prepare() method.
>
> http://struts.apache.org/2.x/docs/crud-demo-i.html
>
> check out the "The prepare approach" in the above link.
>
> I hope this helps.
> -Scott
>
>
> -----Original Message-----
> From: Roberto Nunnari [mailto: [EMAIL PROTECTED]
> Sent: Wednesday, June 20, 2007 12:16 PM
> To: Struts Users Mailing List
> Subject: properties at times not found
>
> Hello.
>
> I have an action with a getter for a List.
> In the execute method of the action I can verify the list is not
empty.
> But in the jsp view, at times it reports an empty list.
>
>
> the action:
> public class StorySearch extends ActionSupport {
>      private List<Story> stories = null;
>      ...
>      public String execute() throws Exception {
>          ...
>          stories = dataManager.searchStories(...);
>          for (Story story : stories) {
>              System.out.println(" "+story.getId());
>          }
>          return SUCCESS;
>      }
>
>      public List getStories() {
>          return stories;
>      }
>
>
> the JSP:
> <c:url var="storyURL" value="/StoryView.action"/>
> <display:table name="${stories}" requestURI=" storySearch.action">
>      <display:column property="id" href="${storyURL}" paramId="id"/>
>      <display:column property="title"/>
>      <display:column property="text"/>
>      <display:column property="link" autolink="true"/>
>      <display:column property="accessCount" sortable="true"/>
>      <display:column property="creationDate" sortable="true"/>
>      <display:caption>This is the table caption</display:caption>
> </display:table>
>
>
> Any hints?
> Thank you.
>
> --
> Robi
>
>
> ---------------------------------------------------------------------
> 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]
>
>


-- 
Scott
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to