Author Login
Post Reply
user Digest 20 Jul 2008 12:08:05 -0000 Issue 8150
Topics (messages 189069 through 189096):
How can I store temporary data during user input procedure?
189069 by: holod
189071 by: Gabriel Belingueres
189077 by: Owen Berry
189078 by: holod
189079 by: Miguel
189083 by: holod
Why we need struts.action.extension property
189070 by: Igor Vlasov
189073 by: Gabriel Belingueres
189076 by: Dave Newton
Re: Scope interceptor / Practical Apache Struts 2
189072 by: tonalnagual
189074 by: tonalnagual
189087 by: Phan Le
Re: display int in JSP
189075 by: Alberto A. Flores
Error global-Forwards
189080 by: danipruebas.adw.es
189096 by: Lukasz Lenart
connext Graph documentation
189081 by: Pedro Herrera
189082 by: Dave Newton
189085 by: Pedro Herrera
189091 by: Dave Newton
<s:include> not working
189084 by: aum strut
189088 by: Chase
189095 by: aum strut
gnujaxp (jfreechart) conflicts with struts 2 filter
189086 by: Pedro Herrera
Re: JFreeChart plugin
189089 by: Pedro Herrera
189090 by: Pedro Herrera
issue with ajax submit
189092 by: matthieu martin
Re: Multiple unknown handlers?
189093 by: Paul Benedict
189094 by: Musachy Barroso
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_189069.ezm (zipped)
Please, help me with suggestion.
My logic is:
1.PrepareLawAction is invoked.
This action gets Law object from DB (if action received lawId parameter ) or
it prepares template Law object (just automatically fills some Law fields
which user can't modify).
2.Action sends user to processlaw.jsp
Here user inputs other fields of Law object or modifies them. All fields
like <s:textfield/>, <s:select/> and others are inside <s:form/>
Now, problems which I can't solve:
1.PrepareLawAction already made the Law instance. This object can be
accessed from processlaw.jsp, but the next action (StoreLawAction) after
processlaw.jsp will not "see" my Law object. Is it good practice to store
Law object in session (PrepareLawAction will do it) and then retrieve it in
StoreLawAction?
2. When user is on the processlaw.jsp he can go to other jsp page to specify
special complicated input. I want to allow user to go to this page, but I
don't want to loose user input on processlaw.jsp. How can I do it?
Please, see my drawing:
http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189071.ezm (zipped)1 and 2: You could choose store your objects in session scope.
Even it may be the only way to do it, because you say that there are
Law fields that the user can't modify, which it discards the option of
rewriting those fields as hidden fields in your form (for security
reasons)
2008/7/18 holod <serega.sheypak@(protected)>:
>
> Please, help me with suggestion.
> My logic is:
>
> 1.PrepareLawAction is invoked.
> This action gets Law object from DB (if action received lawId parameter ) or
> it prepares template Law object (just automatically fills some Law fields
> which user can't modify).
>
> 2.Action sends user to processlaw.jsp
> Here user inputs other fields of Law object or modifies them. All fields
> like <s:textfield/>, <s:select/> and others are inside <s:form/>
>
> Now, problems which I can't solve:
> 1.PrepareLawAction already made the Law instance. This object can be
> accessed from processlaw.jsp, but the next action (StoreLawAction) after
> processlaw.jsp will not "see" my Law object. Is it good practice to store
> Law object in session (PrepareLawAction will do it) and then retrieve it in
> StoreLawAction?
>
> 2. When user is on the processlaw.jsp he can go to other jsp page to specify
> special complicated input. I want to allow user to go to this page, but I
> don't want to loose user input on processlaw.jsp. How can I do it?
>
> Please, see my drawing:
>
>
>
> http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg
> --
> View this message in context: http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18523944.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_189077.ezm (zipped)Another option is to store it as a temporary record in the database
(assuming you're using one). It could either be in a temporary table,
or marked as an incomplete record in some way. An advantage of this
approach is that the record is not lost if the server is restarted
while the user is busy (unless you're storing session information in
the db anyway), or if their browser crashes. You'll have to have some
way of notifying them of these records in case they're left
incomplete.
On Fri, Jul 18, 2008 at 8:52 AM, Gabriel Belingueres
<belingueres@(protected):
> 1 and 2: You could choose store your objects in session scope.
> Even it may be the only way to do it, because you say that there are
> Law fields that the user can't modify, which it discards the option of
> rewriting those fields as hidden fields in your form (for security
> reasons)
>
> 2008/7/18 holod <serega.sheypak@(protected)>:
>>
>> Please, help me with suggestion.
>> My logic is:
>>
>> 1.PrepareLawAction is invoked.
>> This action gets Law object from DB (if action received lawId parameter ) or
>> it prepares template Law object (just automatically fills some Law fields
>> which user can't modify).
>>
>> 2.Action sends user to processlaw.jsp
>> Here user inputs other fields of Law object or modifies them. All fields
>> like <s:textfield/>, <s:select/> and others are inside <s:form/>
>>
>> Now, problems which I can't solve:
>> 1.PrepareLawAction already made the Law instance. This object can be
>> accessed from processlaw.jsp, but the next action (StoreLawAction) after
>> processlaw.jsp will not "see" my Law object. Is it good practice to store
>> Law object in session (PrepareLawAction will do it) and then retrieve it in
>> StoreLawAction?
>>
>> 2. When user is on the processlaw.jsp he can go to other jsp page to specify
>> special complicated input. I want to allow user to go to this page, but I
>> don't want to loose user input on processlaw.jsp. How can I do it?
>>
>> Please, see my drawing:
>>
>>
>>
>> http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg
>> --
>> View this message in context: http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18523944.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)
>
>

Attachment:
user_189078.ezm (zipped)
How can I do that?
Anyway, if user goes to the other page to make special input (then he comes
back to finish main process)
I have to submit his input to server. it means i can't use link to
ListLawStatusAction, I have to make submit to this action, it will store
input parameters inside Law object which is in the session.
How Can I submit the same form to different actions using struts2 tags?
Gabriel Belingueres-2 wrote:
>
> 1 and 2: You could choose store your objects in session scope.
> Even it may be the only way to do it, because you say that there are
> Law fields that the user can't modify, which it discards the option of
> rewriting those fields as hidden fields in your form (for security
> reasons)
>
> 2008/7/18 holod <serega.sheypak@(protected)>:
>>
>> Please, help me with suggestion.
>> My logic is:
>>
>> 1.PrepareLawAction is invoked.
>> This action gets Law object from DB (if action received lawId parameter )
>> or
>> it prepares template Law object (just automatically fills some Law fields
>> which user can't modify).
>>
>> 2.Action sends user to processlaw.jsp
>> Here user inputs other fields of Law object or modifies them. All fields
>> like <s:textfield/>, <s:select/> and others are inside <s:form/>
>>
>> Now, problems which I can't solve:
>> 1.PrepareLawAction already made the Law instance. This object can be
>> accessed from processlaw.jsp, but the next action (StoreLawAction) after
>> processlaw.jsp will not "see" my Law object. Is it good practice to store
>> Law object in session (PrepareLawAction will do it) and then retrieve it
>> in
>> StoreLawAction?
>>
>> 2. When user is on the processlaw.jsp he can go to other jsp page to
>> specify
>> special complicated input. I want to allow user to go to this page, but I
>> don't want to loose user input on processlaw.jsp. How can I do it?
>>
>> Please, see my drawing:
>>
>>
>>
>> http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg
>> --
>> View this message in context:
>> http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18523944.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_189079.ezm (zipped)You could use the scope interceptor to store your object in the
session or application context, and have injected directly with a
getter/setter in the configured actions that use the object, without
having to write code to push/pop from the session.
http://struts.apache.org/2.1.2/docs/scope-interceptor.html
The scope interceptor also exists and works identically in the 2.0.x family
Si quieres ser más positivo, pierde un electrón
Miguel Ruiz Velasco S.
On Fri, Jul 18, 2008 at 10:45 AM, Owen Berry <owen.berry@(protected):
> Another option is to store it as a temporary record in the database
> (assuming you're using one). It could either be in a temporary table,
> or marked as an incomplete record in some way. An advantage of this
> approach is that the record is not lost if the server is restarted
> while the user is busy (unless you're storing session information in
> the db anyway), or if their browser crashes. You'll have to have some
> way of notifying them of these records in case they're left
> incomplete.
>
> On Fri, Jul 18, 2008 at 8:52 AM, Gabriel Belingueres
> <belingueres@(protected):
>> 1 and 2: You could choose store your objects in session scope.
>> Even it may be the only way to do it, because you say that there are
>> Law fields that the user can't modify, which it discards the option of
>> rewriting those fields as hidden fields in your form (for security
>> reasons)
>>
>> 2008/7/18 holod <serega.sheypak@(protected)>:
>>>
>>> Please, help me with suggestion.
>>> My logic is:
>>>
>>> 1.PrepareLawAction is invoked.
>>> This action gets Law object from DB (if action received lawId parameter ) or
>>> it prepares template Law object (just automatically fills some Law fields
>>> which user can't modify).
>>>
>>> 2.Action sends user to processlaw.jsp
>>> Here user inputs other fields of Law object or modifies them. All fields
>>> like <s:textfield/>, <s:select/> and others are inside <s:form/>
>>>
>>> Now, problems which I can't solve:
>>> 1.PrepareLawAction already made the Law instance. This object can be
>>> accessed from processlaw.jsp, but the next action (StoreLawAction) after
>>> processlaw.jsp will not "see" my Law object. Is it good practice to store
>>> Law object in session (PrepareLawAction will do it) and then retrieve it in
>>> StoreLawAction?
>>>
>>> 2. When user is on the processlaw.jsp he can go to other jsp page to specify
>>> special complicated input. I want to allow user to go to this page, but I
>>> don't want to loose user input on processlaw.jsp. How can I do it?
>>>
>>> Please, see my drawing:
>>>
>>>
>>>
>>> http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg
>>> --
>>> View this message in context: http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18523944.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)
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189083.ezm (zipped)
Wow, that's great. Thinking in Struts2 concept means to use interceptors,
action abilities, ognl and ui-tags.
I didn't want to develop my own solution. As I can see, scope interceptor
exactly what I need.
Thank you.
Miguel-55 wrote:
>
> You could use the scope interceptor to store your object in the
> session or application context, and have injected directly with a
> getter/setter in the configured actions that use the object, without
> having to write code to push/pop from the session.
>
> http://struts.apache.org/2.1.2/docs/scope-interceptor.html
> The scope interceptor also exists and works identically in the 2.0.x
> family
>
> Si quieres ser más positivo, pierde un electrón
> Miguel Ruiz Velasco S.
>
>
> On Fri, Jul 18, 2008 at 10:45 AM, Owen Berry <owen.berry@(protected):
>> Another option is to store it as a temporary record in the database
>> (assuming you're using one). It could either be in a temporary table,
>> or marked as an incomplete record in some way. An advantage of this
>> approach is that the record is not lost if the server is restarted
>> while the user is busy (unless you're storing session information in
>> the db anyway), or if their browser crashes. You'll have to have some
>> way of notifying them of these records in case they're left
>> incomplete.
>>
>> On Fri, Jul 18, 2008 at 8:52 AM, Gabriel Belingueres
>> <belingueres@(protected):
>>> 1 and 2: You could choose store your objects in session scope.
>>> Even it may be the only way to do it, because you say that there are
>>> Law fields that the user can't modify, which it discards the option of
>>> rewriting those fields as hidden fields in your form (for security
>>> reasons)
>>>
>>> 2008/7/18 holod <serega.sheypak@(protected)>:
>>>>
>>>> Please, help me with suggestion.
>>>> My logic is:
>>>>
>>>> 1.PrepareLawAction is invoked.
>>>> This action gets Law object from DB (if action received lawId parameter
>>>> ) or
>>>> it prepares template Law object (just automatically fills some Law
>>>> fields
>>>> which user can't modify).
>>>>
>>>> 2.Action sends user to processlaw.jsp
>>>> Here user inputs other fields of Law object or modifies them. All
>>>> fields
>>>> like <s:textfield/>, <s:select/> and others are inside <s:form/>
>>>>
>>>> Now, problems which I can't solve:
>>>> 1.PrepareLawAction already made the Law instance. This object can be
>>>> accessed from processlaw.jsp, but the next action (StoreLawAction)
>>>> after
>>>> processlaw.jsp will not "see" my Law object. Is it good practice to
>>>> store
>>>> Law object in session (PrepareLawAction will do it) and then retrieve
>>>> it in
>>>> StoreLawAction?
>>>>
>>>> 2. When user is on the processlaw.jsp he can go to other jsp page to
>>>> specify
>>>> special complicated input. I want to allow user to go to this page, but
>>>> I
>>>> don't want to loose user input on processlaw.jsp. How can I do it?
>>>>
>>>> Please, see my drawing:
>>>>
>>>>
>>>>
>>>> http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18523944.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)
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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_189070.ezm (zipped)Hello. I wrote a simple s2 application.
I described a filter in web.xml
<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>*.jspa</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
but i forgot a struts.properties file and "struts.action.extension=jspa"
AND my project does not WORK
My question: why we need to write "struts.action.extension=jspa" when we
already have filter-mapping binding struts2->*.jspa
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189073.ezm (zipped)AFAIK, the Servlet API doesn't expose any standard way to know the
mapping associated to a filter. Maybe that's way.
2008/7/18 Igor Vlasov <vigor78@(protected)>:
>
> Hello. I wrote a simple s2 application.
>
> I described a filter in web.xml
>
> <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>*.jspa</url-pattern>
> <dispatcher>FORWARD</dispatcher>
> <dispatcher>REQUEST</dispatcher>
> </filter-mapping>
>
> but i forgot a struts.properties file and "struts.action.extension=jspa"
>
> AND my project does not WORK
>
>
> My question: why we need to write "struts.action.extension=jspa" when we
> already have filter-mapping binding struts2->*.jspa
> --
> View this message in context: http://www.nabble.com/Why-we-need-struts.action.extension-property-tp18527639p18527639.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_189076.ezm (zipped)--- On Fri, 7/18/08, Igor Vlasov <vigor78@(protected):
> but i forgot a struts.properties file and
> "struts.action.extension=jspa"
>
> AND my project does not WORK
>
>
> My question: why we need to write
> "struts.action.extension=jspa" when we
> already have filter-mapping binding struts2->*.jspa
So Struts 2 itself knows what extension is being used for actions.
Note that mapping the S2 filter to something other than "/*" will break a few things unless we work around it. I added a note to the web.xml documenation [1], but basically unless we do something to get the static content served (extracting the files, etc.) things will break.
Dave
[1] web.xml coniguration documentation (new note won't show up right away)
http://struts.apache.org/2.x/docs/webxml.html

Attachment:
user_189072.ezm (zipped)Selckin wrote:
>
> Hello,
>
> In Chapter 6 of "Practical Apache Struts 2 Web 2.0 Projects", It explains
> how to use the scope interceptor to create sort of wizard pages.
> I've been trying to figure these out, but cannot get this to work.
> Even the included example (downloadable from
> http://www.apress.com/book/view/1590599039 ) do not work for me.
>
> I was hoping someone could try them and tell me if they are indeed broken
> or if i am doing something wrong. And what that might be?
>
> Running the examples with no changes and when going to the second step in
> the workflow I get the following error:
>
> HTTP ERROR: 500
> Error setting expression 'model' with value
> 'com.fdar.apress.s2.domain.Event@(protected)'
>
> RequestURI=/app/event/selectLocation!input.action
> Caused by:
> Error setting expression 'model' with value
> 'com.fdar.apress.s2.domain.Event@(protected)]
> at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:171)
> at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:146)
> at
>
org.apache.struts2.interceptor.ScopeInterceptor.before (
ScopeInterceptor.java:321)
> at
>
org.apache.struts2.interceptor.ScopeInterceptor.intercept (
ScopeInterceptor.java:424)
> < cut >
> Caused by: No object in the CompoundRoot has a publicly accessible
> property named 'model' (no setter could be found). - [unknown location]
> at
> com.opensymphony.xwork2.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:68)
> at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
> at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
> at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
> < cut >
> Can provide full stack trace if needed
>
> The following is also outputted from the example.
>
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'duration' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'duration' with value '[Ljava.lang.String;@(protected)'
> 14-feb-2008 20:10:30
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'name' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'name' with value '[Ljava.lang.String;@(protected)'
> 14-feb-2008 20:10:30
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'timeZoneOffset' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'timeZoneOffset' with value '[Ljava.lang.String;@(protected)'
> 14-feb-2008 20:10:30
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
Hi try to use.
<interceptors>
<interceptor-stack name="eventStack">
<interceptor-ref name="scopedModelDriven">
model
partialEvent
</interceptor-ref>
<interceptor-ref name="paramsPrepareParamsStack"/>
</interceptor-stack>
</interceptors>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189074.ezm (zipped)Selckin wrote:
>
> Hello,
>
> In Chapter 6 of "Practical Apache Struts 2 Web 2.0 Projects", It explains
> how to use the scope interceptor to create sort of wizard pages.
> I've been trying to figure these out, but cannot get this to work.
> Even the included example (downloadable from
> http://www.apress.com/book/view/1590599039 ) do not work for me.
>
> I was hoping someone could try them and tell me if they are indeed broken
> or if i am doing something wrong. And what that might be?
>
> Running the examples with no changes and when going to the second step in
> the workflow I get the following error:
>
> HTTP ERROR: 500
> Error setting expression 'model' with value
> 'com.fdar.apress.s2.domain.Event@(protected)'
>
> RequestURI=/app/event/selectLocation!input.action
> Caused by:
> Error setting expression 'model' with value
> 'com.fdar.apress.s2.domain.Event@(protected)]
> at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:171)
> at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:146)
> at
>
org.apache.struts2.interceptor.ScopeInterceptor.before (
ScopeInterceptor.java:321)
> at
>
org.apache.struts2.interceptor.ScopeInterceptor.intercept (
ScopeInterceptor.java:424)
> < cut >
> Caused by: No object in the CompoundRoot has a publicly accessible
> property named 'model' (no setter could be found). - [unknown location]
> at
> com.opensymphony.xwork2.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:68)
> at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
> at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
> at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
> < cut >
> Can provide full stack trace if needed
>
> The following is also outputted from the example.
>
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'duration' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'duration' with value '[Ljava.lang.String;@(protected)'
> 14-feb-2008 20:10:30
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'name' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'name' with value '[Ljava.lang.String;@(protected)'
> 14-feb-2008 20:10:30
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'timeZoneOffset' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'timeZoneOffset' with value '[Ljava.lang.String;@(protected)'
> 14-feb-2008 20:10:30
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
>
> Thanks.
>
> ---------------------------------------------------------------------
> 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_189087.ezm (zipped)Hi,
I have found and used scope plugin in [1]. It seems to be quite good
and have most of the features I need.
1.http://cwiki.apache.org/S2PLUGINS/scope-plugin.html
On 18/07/2008, at 11:11 PM, tonalnagual wrote:
>
>
>
> Selckin wrote:
>>
>> Hello,
>>
>> In Chapter 6 of "Practical Apache Struts 2 Web 2.0 Projects", It
>> explains
>> how to use the scope interceptor to create sort of wizard pages.
>> I've been trying to figure these out, but cannot get this to work.
>>

Attachment:
user_189075.ezm (zipped)Please remember that because of java's autboxing, you shouldn't have
much problems (other than the cases when you are expecting zero). So
changing the type (from int to Integer) is really not a dramatic change.
Phan, Hienthuc T wrote:
> That works. Thanks. I'm migrating from Struts 1 & was hoping not have
> to change the data type.
>
>
> -----Original Message-----
> From: Jishnu Viswanath [mailto:jishnu.viswanath@(protected)]
> Sent: Thursday, July 17, 2008 2:24 PM
> To: Struts Users Mailing List
> Subject: RE: Struts2: display int in JSP
>
> Use Integer instead of int
>
> Regards,
>
> Jishnu Viswanath
>
> Software Engineer
>
> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
>
> Tavant Technologies Inc.,
>
> www.tavant.com
>
> PEOPLE :: PASSION :: EXCELLENCE
>
> -----Original Message-----
> From: Phan, Hienthuc T [mailto:hienthuc_phan@(protected)]
> Sent: Friday, July 18, 2008 2:35 AM
> To: Struts Users Mailing List
> Subject: Struts2: display int in JSP
>
>
> Hi,
>
> In my action, I have several variables of type int. When the variable
> is not initialized, it's displayed as 0 in the JSP. I would like
> un-initialized variable of type int to be display as blank/empty. What
> is the best way to accomplish this? Thanks.
>
> Public class XXAction extends ActionSupport
> {
> private int age;
> private String name = new String("xyz");
> private String email;
>
> //getters & setters
> }
>
>
> JSP page would display:
>
> Name: xyz
> Email:
> Age: 0
>
>
> Notice: This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates
> is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
> Any comments or statements made in this email are not necessarily those
> of Tavant Technologies.
> The information transmitted is intended only for the person or entity to
> which it is addressed and may
> contain confidential and/or privileged material. If you have received
> this in error, please contact the
> sender and delete the material from any computer. All e-mails sent from
> or to Tavant Technologies
> may be subject to our monitoring procedures.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
> Notice: This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Alberto A. Flores
http://www.linkedin.com/in/aflores

Attachment:
user_189080.ezm (zipped)Hi, i have a problem, let me explain. I have one globalforward as a html:link defined in a jsp page, after clicking it, it should execute the corresponding action class and display the results in another jsp page.
Page1Link (global forward to *.do -- not to .jsp) -->calls actionClass.java --> Page2 showing bean with retrieved data from actionClass (session scope)
The problem is that nothing happens , I mean nothing is displayed in the Page2 (nor data and html tags), and no System.out from ActionClass is displayed. In the navigator bar (MS internet explorer) appears: http://localhost:8080/myproject/actionClass.do
Any suggestion or ideas? I´ve been checking the struts-config.xml and do not know what could be wrong.
Thanks in advance,

Attachment:
user_189096.ezm (zipped)Hi,
Could you paste your struts-config here?
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_189081.ezm (zipped)
Hi,
I´m using connext Graph plugin. Where I find more documentation in depth
? I need to do linegraphs ..
Herrera
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189082.ezm (zipped)--- On Fri, 7/18/08, Pedro Herrera <pedro_herrera@(protected):
> I´m using connext Graph plugin. Where I find more
> documentation in depth? I need to do linegraphs ..
Did you try the connext-graphs documentation? There's a link to the project home page on the plugin page:
https://connext-graphs.dev.java.net/
Dave

Attachment:
user_189085.ezm (zipped)
I´ve seen the project home, but no doc is associate, only a (very)simple
example.
Herrera
newton.dave wrote:
>
> --- On Fri, 7/18/08, Pedro Herrera <pedro_herrera@(protected):
>> I´m using connext Graph plugin. Where I find more
>> documentation in depth? I need to do linegraphs ..
>
> Did you try the connext-graphs documentation? There's a link to the
> project home page on the plugin page:
>
> https://connext-graphs.dev.java.net/
>
> Dave
>
>
> ---------------------------------------------------------------------
> 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_189091.ezm (zipped)--- On Sat, 7/19/08, Pedro Herrera <pedro_herrera@(protected):
> I´ve seen the project home, but no doc is associate, only
> a (very) simple example.
What about the package it wraps, Open Flash Chart?
http://teethgrinder.co.uk/open-flash-chart/
In any case, I'm sure either the plugin or OFC itself would appreciate any documentation and/or examples you can provide.
Dave

Attachment:
user_189084.ezm (zipped)Hi all,
i am trying to include a jsp page using struts2 <s:include tag> but
itdosen't seems to be working in my way.
i have a menu.jsp page where i have written a code for the menu for my
application.
i have included this menu.jsp page in my index.jsp page were it is working
fine.When i click on any menu option it redirect me to another page using
the action.i tried to use the same <s:include> tage in other pages but it is
not working where as it is working fine in the index.jsp page. where as if i
include the code in the other pages instead of including the jap page the
menuy starts appearing fine.
<s:include value="IncludedMenu/menu.jsp"></s:include>
i have included the menu.jsp page in index page using this tag and working
fine here but when tried to use the same tage in others pageses i failed.Can
any one suggest me where i am doing wrong.??
Thanks in advance
-aum

Attachment:
user_189088.ezm (zipped)Why does your tag have a body? <s:include value="IncludedMenu/menu.jsp"/>
Do the other pages contain the same taglib directives? If you view the
source in your web browser and see the tag code that means you are
missing a taglib directive.
Your include is using a relative page, are all the pages at the same depth?
-Chase
On Sat, Jul 19, 2008 at 4:22 AM, aum strut <aum.struts@(protected):
> Hi all,
>
> i am trying to include a jsp page using struts2 <s:include tag> but
> itdosen't seems to be working in my way.
> i have a menu.jsp page where i have written a code for the menu for my
> application.
> i have included this menu.jsp page in my index.jsp page were it is working
> fine.When i click on any menu option it redirect me to another page using
> the action.i tried to use the same <s:include> tage in other pages but it is
> not working where as it is working fine in the index.jsp page. where as if i
> include the code in the other pages instead of including the jap page the
> menuy starts appearing fine.
>
>
> <s:include value="IncludedMenu/menu.jsp"></s:include>
>
> i have included the menu.jsp page in index page using this tag and working
> fine here but when tried to use the same tage in others pageses i failed.Can
> any one suggest me where i am doing wrong.??
>
> Thanks in advance
>
> -aum
>

Attachment:
user_189095.ezm (zipped)Hi Chase,
Is there any relation with the depth because when i put index.jsp page and
HElloWorld.jsp page in the same folder, it starts to include the other jsp
page which i unable to include when the pages were in different folders.
any suggestion in this regards will be much helpful.
yes all the pages have same tag lib directive
-Aum
On 7/19/08, Chase <chase@(protected):
>
> Why does your tag have a body? <s:include value="IncludedMenu/menu.jsp"/>
>
> Do the other pages contain the same taglib directives? If you view the
> source in your web browser and see the tag code that means you are
> missing a taglib directive.
>
> Your include is using a relative page, are all the pages at the same depth?
>
> -Chase
>
> On Sat, Jul 19, 2008 at 4:22 AM, aum strut <aum.struts@(protected):
> > Hi all,
> >
> > i am trying to include a jsp page using struts2 <s:include tag> but
> > itdosen't seems to be working in my way.
> > i have a menu.jsp page where i have written a code for the menu for my
> > application.
> > i have included this menu.jsp page in my index.jsp page were it is
> working
> > fine.When i click on any menu option it redirect me to another page using
> > the action.i tried to use the same <s:include> tage in other pages but it
> is
> > not working where as it is working fine in the index.jsp page. where as
> if i
> > include the code in the other pages instead of including the jap page the
> > menuy starts appearing fine.
> >
> >
> > <s:include value="IncludedMenu/menu.jsp"></s:include>
> >
> > i have included the menu.jsp page in index page using this tag and
> working
> > fine here but when tried to use the same tage in others pageses i
> failed.Can
> > any one suggest me where i am doing wrong.??
> >
> > Thanks in advance
> >
> > -aum
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189086.ezm (zipped)
Attachment:
user_189089.ezm (zipped)
I have the same problem. Have you discovered a workaround ?
I need to call my chart each 30 seconds to get updated data and refresh
chart :
- this way bring correcty the chart, but call my char action one time:
<sx:div updateFreq="300" >
chart.action
</sx:div>
- this way call the chart action correcty each 30 seconds, but returns ASCII
caracteres :
<s:url id="url" action="chart.action" />
<sx:div href="%{#url}" updateFreq="20000" >
</sx:div>
Thanks for a help .
Herrera
Leena Borle wrote:
>
> Hello,
> Has anyone tried out JFreeChart plugin? I am trying to run the sample
> code
> available on plugin documentation page. I see all ASCII characters getting
> printed on my browser screen instead of an image file.
> Any help is appreciated.
> Thanks,
> Leena.
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189090.ezm (zipped)
I have the same problem. Have you discovered a workaround ?
I need to call my chart each 30 seconds to get updated data and refresh
chart :
- this way bring correcty the chart, but call my char action one time:
<sx:div updateFreq="300" >
<iimg src="chart.action">
</sx:div>
- this way call the chart action correcty each 30 seconds, but returns ASCII
caracteres :
<s:url id="url" action="chart.action" />
<sx:div href="%{#url}" updateFreq="20000" >
</sx:div>
Thanks for a help .
Herrera
Leena Borle wrote:
>
> Hello,
> Has anyone tried out JFreeChart plugin? I am trying to run the sample
> code
> available on plugin documentation page. I see all ASCII characters getting
> printed on my browser screen instead of an image file.
> Any help is appreciated.
> Thanks,
> Leena.
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189092.ezm (zipped)Hello all.
I am facing a problem which has made pull my hair off for quite a while now.
I've looked everything my friend google gave me, but nothing relevant showed
up. As a last hope, I am turning myself to you.
I have a simple JSP code :
<s:form action="addFileToGallery" method="post" enctype=
"multipart/form-data">
<s:file name="uploadAFile" id="uploadAFile" accept="*" />
<s:submit theme="ajax" targets="gallery_images" notifyTopics="/addFile" />
</s:form>
<s:url action="viewFileOfGallery" id="viewFileOfGallery"/>
<s:div id="gallery_images" theme="ajax" href="%{viewFileOfGallery}"
loadingText="Loading ..." listenTopics="/refreshGalleryImages" />
My viewFileOfGallery action sets few lists and then a blank JSP is loaded.
When I submit the above form, the file is correctly uploaded, I do my thing
with it, create a line in my database and return SUCCESS. The addFile topic
empties the uploadAFile input field.
What happens is startling me. Instead of getting my blank JSP displayed in
my div as the answer of the AJAX request, I get a pretty "[object
HTMLDocument]" displayed and nothing more. My topic has been dispatched
since my input field is empty.Now, to go futher into the 4th dimension, if I
just refresh my div, it works. I mean by that, that all my data management
on the server has been correctly done. In my addFile topic, I added a
/refreshGalleryImages dispatch, and after displaying this weird message, it
reloads and displays my files. This only on Firefox, on IE it just doesn't
work, it stops on the weird message.
I can't figure out what this message means, or even where does it come from.
I have no way to know which request returns this to me ... I'm lost.
Is anyone able to help me ?
Don't hesitate to ask me for some more information (struts.xml, java code
and so on if you think it's relevant ...)
Thanks in advance.

Attachment:
user_189093.ezm (zipped)Using Struts 2.0.x, is it possible to have multiple unknown handlers? I am
using the Codebehind plugin and want to extend it. (Anyway to use the
library without having it load as a plugin?) I want to chain if the
Codebehind plugin cannot find a resource.
Paul

Attachment:
user_189094.ezm (zipped)You will need this patch: http://jira.opensymphony.com/browse/XW-640
for the unknown handlers. It still needs some review, but it works. We
are planning to get it in after the 2.1 release, so we can finally
move the convention plugin out of the sandbox.
musachy
On Sat, Jul 19, 2008 at 9:52 PM, Paul Benedict <pbenedict@(protected):
> Using Struts 2.0.x, is it possible to have multiple unknown handlers? I am
> using the Codebehind plugin and want to extend it. (Anyway to use the
> library without having it load as a plugin?) I want to chain if the
> Codebehind plugin cannot find a resource.
>
> Paul
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd