Re: The breadcrumbs have been served!

2007-10-14 Thread Antonio Petrelli
2007/10/13, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Greetings --
>
> I finished the S2 breadcrumb plug-in and you are welcome to it and the
> source code at www.strutsschool.com.



What is the license?

Antonio

P.S.: The Tiles link is wrong, point it to:
http://tiles.apache.org/


OGNLException on passing request parameters in redirect-action type

2007-10-14 Thread Tuyen Dinh Van
Hi,

I am configuring the struts.xml for my simple example like this:




/WEB-INF/jsp/dashboard.jsp

login
/accounts
http://www.example.com/dashboard.html





deploy and run application: http://example.com/dashboard.action, there is an
exception throwed, log details is below:

Oct 14, 2007 4:23:18 PM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
Oct 14, 2007 4:23:18 PM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-plugin.xml]
Oct 14, 2007 4:23:18 PM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts.xml]
Oct 14, 2007 4:23:18 PM org.apache.struts2.config.Settings getLocale
WARNING: Settings: Could not parse struts.locale setting, substituting
default VM locale
Oct 14, 2007 4:23:19 PM
com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory 
INFO: Setting DefaultObjectTypeDeterminer as default ...
Oct 14, 2007 4:23:26 PM com.opensymphony.xwork2.util.OgnlUtilinternalSetProperty
WARNING: Caught OgnlException while setting property 'nextUrl' on type '
org.apache.struts2.dispatcher.ServletActionRedirectResult'.
ognl.NoSuchPropertyException:
org.apache.struts2.dispatcher.ServletActionRedirectResult.nextUrl
at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java
:132)
at
com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(
OgnlValueStack.java:68)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1670)
at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
at com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(
OgnlUtil.java:360)
at com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76)
at com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49)
at org.apache.struts2.impl.StrutsObjectFactory.buildResult(
StrutsObjectFactory.java:95)
at com.opensymphony.xwork2.DefaultActionInvocation.createResult(
DefaultActionInvocation.java:195)
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
DefaultActionInvocation.java:342)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(
DefaultActionInvocation.java:253)
at org.apache.struts2.impl.StrutsActionProxy.execute(
StrutsActionProxy.java:50)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(
Dispatcher.java:504)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(
FilterDispatcher.java:419)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(
PageFilter.java:119)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
PageFilter.java:55)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(
ActionContextCleanUp.java:99)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java
:447)
at java.lang.Thread.run(Thread.java:619)
Oct 14, 2007 4:23:26 PM
com.opensymphony.xwork2.validator.ActionValidatorManagerFactory 
INFO: Detected AnnotationActionValidatorManager, initializing it...


Has anyone met this problem? If had some solutions for this, please help me.

Regards.


Re: OGNLException on passing request parameters in redirect-action type

2007-10-14 Thread Jeromy Evans
Are you using Struts 2.0.7 or below?  That warning's present in those 
versions when you pass a literal string as a parameter.


https://issues.apache.org/struts/browse/WW-1714

It will go away if you upgrade to 2.0.9.  If you can't upgrade, you can 
turn off warn logging to hide it.


Tuyen Dinh Van wrote:

Hi,

I am configuring the struts.xml for my simple example like this:




/WEB-INF/jsp/dashboard.jsp

login
/accounts
http://www.example.com/dashboard.html





deploy and run application: http://example.com/dashboard.action, there is an
exception throwed, log details is below:

Oct 14, 2007 4:23:18 PM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
Oct 14, 2007 4:23:18 PM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-plugin.xml]
Oct 14, 2007 4:23:18 PM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts.xml]
Oct 14, 2007 4:23:18 PM org.apache.struts2.config.Settings getLocale
WARNING: Settings: Could not parse struts.locale setting, substituting
default VM locale
Oct 14, 2007 4:23:19 PM
com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory 
INFO: Setting DefaultObjectTypeDeterminer as default ...
Oct 14, 2007 4:23:26 PM com.opensymphony.xwork2.util.OgnlUtilinternalSetProperty
WARNING: Caught OgnlException while setting property 'nextUrl' on type '
org.apache.struts2.dispatcher.ServletActionRedirectResult'.
ognl.NoSuchPropertyException:
org.apache.struts2.dispatcher.ServletActionRedirectResult.nextUrl
at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java
:132)
at
com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(
OgnlValueStack.java:68)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1670)
at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
at com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(
OgnlUtil.java:360)
at com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76)
at com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49)
at org.apache.struts2.impl.StrutsObjectFactory.buildResult(
StrutsObjectFactory.java:95)
at com.opensymphony.xwork2.DefaultActionInvocation.createResult(
DefaultActionInvocation.java:195)
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
DefaultActionInvocation.java:342)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(
DefaultActionInvocation.java:253)
at org.apache.struts2.impl.StrutsActionProxy.execute(
StrutsActionProxy.java:50)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(
Dispatcher.java:504)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(
FilterDispatcher.java:419)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(
PageFilter.java:119)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
PageFilter.java:55)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(
ActionContextCleanUp.java:99)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java
:447)
at java.lang.Thread.run(Thread.java:619)
Oct 14, 2007 4:23:26 PM
com.opensymphony.xwork2.validator.ActionValidatorManage

Re: OGNLException on passing request parameters in redirect-action type

2007-10-14 Thread Martin Gainty
please quote "http://www.example.com/dashboard.html";

Also-
can you display your interceptor-stack for authnz?
can you display struts.locale property from your struts.properties?

Thanks/
M--
- Original Message -
From: "Jeromy Evans" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Sunday, October 14, 2007 7:02 AM
Subject: Re: OGNLException on passing request parameters in redirect-action
type


> Are you using Struts 2.0.7 or below?  That warning's present in those
> versions when you pass a literal string as a parameter.
>
> https://issues.apache.org/struts/browse/WW-1714
>
> It will go away if you upgrade to 2.0.9.  If you can't upgrade, you can
> turn off warn logging to hide it.
>
> Tuyen Dinh Van wrote:
> > Hi,
> >
> > I am configuring the struts.xml for my simple example like this:
> >
> > 
> > 
> > 
> > /WEB-INF/jsp/dashboard.jsp
> > 
> > login
> > /accounts
> > http://www.example.com/dashboard.html
> > 
> > 
> > 
> > 
> >
> > deploy and run application: http://example.com/dashboard.action, there
is an
> > exception throwed, log details is below:
> >
> > Oct 14, 2007 4:23:18 PM
> > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
register
> > INFO: Parsing configuration file [struts-default.xml]
> > Oct 14, 2007 4:23:18 PM
> > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
register
> > INFO: Parsing configuration file [struts-plugin.xml]
> > Oct 14, 2007 4:23:18 PM
> > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
register
> > INFO: Parsing configuration file [struts.xml]
> > Oct 14, 2007 4:23:18 PM org.apache.struts2.config.Settings getLocale
> > WARNING: Settings: Could not parse struts.locale setting, substituting
> > default VM locale
> > Oct 14, 2007 4:23:19 PM
> > com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory 
> > INFO: Setting DefaultObjectTypeDeterminer as default ...
> > Oct 14, 2007 4:23:26 PM
com.opensymphony.xwork2.util.OgnlUtilinternalSetProperty
> > WARNING: Caught OgnlException while setting property 'nextUrl' on type '
> > org.apache.struts2.dispatcher.ServletActionRedirectResult'.
> > ognl.NoSuchPropertyException:
> > org.apache.struts2.dispatcher.ServletActionRedirectResult.nextUrl
> > at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java
> > :132)
> > at
> > com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(
> > OgnlValueStack.java:68)
> > at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1670)
> > at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
> > at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
> > at ognl.SimpleNode.setValue(SimpleNode.java:246)
> > at ognl.Ognl.setValue(Ognl.java:476)
> > at com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
> > at com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(
> > OgnlUtil.java:360)
> > at
com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76)
> > at
com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49)
> > at org.apache.struts2.impl.StrutsObjectFactory.buildResult(
> > StrutsObjectFactory.java:95)
> > at com.opensymphony.xwork2.DefaultActionInvocation.createResult(
> > DefaultActionInvocation.java:195)
> > at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
> > DefaultActionInvocation.java:342)
> > at com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> > DefaultActionInvocation.java:253)
> > at org.apache.struts2.impl.StrutsActionProxy.execute(
> > StrutsActionProxy.java:50)
> > at org.apache.struts2.dispatcher.Dispatcher.serviceAction(
> > Dispatcher.java:504)
> > at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(
> > FilterDispatcher.java:419)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:235)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:206)
> > at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(
> > PageFilter.java:119)
> > at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
> > PageFilter.java:55)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:235)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:206)
> > at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(
> > ActionContextCleanUp.java:99)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:235)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:206)
> > at org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:233)
> > at org.apache.catalina.core.StandardContex

Re: The breadcrumbs have been served!

2007-10-14 Thread Mark McLaren

Good stuff.  Here is some feedback for you, free of charge. :)

There is a slight issue with www.strutsschool.com (demo site for the 
breadcrumb plugin?).  I think flipCoin should probably appear in your 
excludeMethods as accessing flipCoin through the breadcrumb link throws 
an exception.  (the flipCoin breadcrumb is created by clicking on submit 
on the samples.action page).


Also, I think you need to make it clear that this provides "breadcrumb 
navigation as transcript/history" rather than the "Homeward Path" style 
of breadcrumbs that is more prevalent.  (Breadcrumbs is a most ambiguous 
term!).





My personal preference would be to display breadcrumbs in an unordered 
list with appropriate CSS styling. e.g.:




I was also thinking that a homeward path breadcrumb navigation 
implementation would be a good demonstrator for the S2 XSLTResult type.


HTH

Mark

[EMAIL PROTECTED] wrote:

Greetings --

I finished the S2 breadcrumb plug-in and you are welcome to it and the
source code at www.strutsschool.com.  I plan to cover the plug-in process in
a chapter of the Struts 2 in Action   book
which is soon to be released.  Until then, a few folks have asked if they
could get it sooner.  Once you download the plug-in, be sure to see the
README.txt file contained inside the jar.  This explains how to add and
configure the plug-in to your liking and sample HTML code for displaying the
crumbs on your site.

Please let me know of any issues that you encounter and I will accept
feature requests at $100.00 each or three for $250.00! :)
  



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



Re: OGNLException on passing request parameters in redirect-action type

2007-10-14 Thread Dave Newton
There's a parameter named "nextUrl" being passed in;
AFAIK that isn't one of the parameters for the
redirect acton result, leading to the msg:

> WARNING: Caught OgnlException while setting property
'nextUrl' on 
> type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'.
> ognl.NoSuchPropertyException:

Maybe I'm missing what the OP's issue was, though.

d.

--- Jeromy Evans <[EMAIL PROTECTED]>
wrote:

> Are you using Struts 2.0.7 or below?  That warning's
> present in those 
> versions when you pass a literal string as a
> parameter.
> 
> https://issues.apache.org/struts/browse/WW-1714
> 
> It will go away if you upgrade to 2.0.9.  If you
> can't upgrade, you can 
> turn off warn logging to hide it.
> 
> Tuyen Dinh Van wrote:
> > Hi,
> >
> > I am configuring the struts.xml for my simple
> example like this:
> >
> >  extends="application">
> >  class="com.example.web.action.Dashboard">
> >  name="authnz">
> >  name="success">/WEB-INF/jsp/dashboard.jsp
> >  type="redirect-action">
> >  name="actionName">login
> >  name="namespace">/accounts
> >  name="nextUrl">http://www.example.com/dashboard.html
> > 
> > 
> > 
> > 
> >
> > deploy and run application:
> http://example.com/dashboard.action, there is an
> > exception throwed, log details is below:
> >
> > Oct 14, 2007 4:23:18 PM
> >
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> register
> > INFO: Parsing configuration file
> [struts-default.xml]
> > Oct 14, 2007 4:23:18 PM
> >
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> register
> > INFO: Parsing configuration file
> [struts-plugin.xml]
> > Oct 14, 2007 4:23:18 PM
> >
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> register
> > INFO: Parsing configuration file [struts.xml]
> > Oct 14, 2007 4:23:18 PM
> org.apache.struts2.config.Settings getLocale
> > WARNING: Settings: Could not parse struts.locale
> setting, substituting
> > default VM locale
> > Oct 14, 2007 4:23:19 PM
> >
>
com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory
> 
> > INFO: Setting DefaultObjectTypeDeterminer as
> default ...
> > Oct 14, 2007 4:23:26 PM
>
com.opensymphony.xwork2.util.OgnlUtilinternalSetProperty
> > WARNING: Caught OgnlException while setting
> property 'nextUrl' on type '
> >
>
org.apache.struts2.dispatcher.ServletActionRedirectResult'.
> > ognl.NoSuchPropertyException:
> >
>
org.apache.struts2.dispatcher.ServletActionRedirectResult.nextUrl
> > at
>
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java
> > :132)
> > at
> >
>
com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(
> > OgnlValueStack.java:68)
> > at
> ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1670)
> > at
> ognl.ASTProperty.setValueBody(ASTProperty.java:101)
> > at
>
ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
> > at
> ognl.SimpleNode.setValue(SimpleNode.java:246)
> > at ognl.Ognl.setValue(Ognl.java:476)
> > at
>
com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
> > at
>
com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(
> > OgnlUtil.java:360)
> > at
>
com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76)
> > at
>
com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49)
> > at
>
org.apache.struts2.impl.StrutsObjectFactory.buildResult(
> > StrutsObjectFactory.java:95)
> > at
>
com.opensymphony.xwork2.DefaultActionInvocation.createResult(
> > DefaultActionInvocation.java:195)
> > at
>
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
> > DefaultActionInvocation.java:342)
> > at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> > DefaultActionInvocation.java:253)
> > at
> org.apache.struts2.impl.StrutsActionProxy.execute(
> > StrutsActionProxy.java:50)
> > at
>
org.apache.struts2.dispatcher.Dispatcher.serviceAction(
> > Dispatcher.java:504)
> > at
>
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(
> > FilterDispatcher.java:419)
> > at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:235)
> > at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:206)
> > at
>
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(
> > PageFilter.java:119)
> > at
>
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
> > PageFilter.java:55)
> > at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:235)
> > at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:206)
> > at
>
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(
> > ActionContextCleanUp.java:99)
> > at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterCha

Re: The breadcrumbs have been served!

2007-10-14 Thread Adam Hardy
The motive website article is almost comprehensive, but they miss 2 points about 
breadcrumb history menu:


firstly it's not redundant just because of the browser's history functionality - 
when you go back in the browser and then choose a new link, you lose your 
ability to go forward in the browser history again. A breadcrumb menu keeps your 
history even if you retrace your steps.


secondly for that reason, there is no need to try to work out whether a page is 
in the history already or not. Just let it appear twice or 3 times or however 
many times.


But their point that breadcrumb history menus only having use in certain 
situations is very true. I always wish that javadocs had it built in.


Mark McLaren on 14/10/07 16:05, wrote:

Good stuff.  Here is some feedback for you, free of charge. :)

There is a slight issue with www.strutsschool.com (demo site for the 
breadcrumb plugin?).  I think flipCoin should probably appear in your 
excludeMethods as accessing flipCoin through the breadcrumb link throws 
an exception.  (the flipCoin breadcrumb is created by clicking on submit 
on the samples.action page).


Also, I think you need to make it clear that this provides "breadcrumb 
navigation as transcript/history" rather than the "Homeward Path" style 
of breadcrumbs that is more prevalent.  (Breadcrumbs is a most ambiguous 
term!).





My personal preference would be to display breadcrumbs in an unordered 
list with appropriate CSS styling. e.g.:




I was also thinking that a homeward path breadcrumb navigation 
implementation would be a good demonstrator for the S2 XSLTResult type.


HTH

Mark

[EMAIL PROTECTED] wrote:

Greetings --

I finished the S2 breadcrumb plug-in and you are welcome to it and the
source code at www.strutsschool.com.  I plan to cover the plug-in 
process in
a chapter of the Struts 2 in Action   
book

which is soon to be released.  Until then, a few folks have asked if they
could get it sooner.  Once you download the plug-in, be sure to see the
README.txt file contained inside the jar.  This explains how to add and
configure the plug-in to your liking and sample HTML code for 
displaying the

crumbs on your site.

Please let me know of any issues that you encounter and I will accept
feature requests at $100.00 each or three for $250.00! :)



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



Re: problem laying out element of ordered list using logic iterate

2007-10-14 Thread Dolphin06

I found one solution if someone has better please post the code : 

<%
ArrayList list = new ArrayList(8);
for(int i = 1; i <= 8; i++)
{
list.add(i);
}
pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE);
%>










<%= num %>










<%= num %>











Dolphin06 wrote:
> 
> Hello, i have a list of 8 String in session and i would like to have it
> display using logic iterate tag in this manner :
> 
> String1String5
> 
> 
> String2String6
> 
> 
> String3String7
> 
> 
> String4String8
> 
> Hope someone helps, thank you.
> 

-- 
View this message in context: 
http://www.nabble.com/problem-laying-out-element-of-ordered-list-using-logic-iterate-tf4620724.html#a13200788
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Exception Logging

2007-10-14 Thread Richard Sayre
Thank you.  That worked perfect.

On 10/13/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
> In addition to configuring log4j to use a FileAppender to write logs to
> a file, here's a very simple way to log exceptions manually from the
> exception page:
>
> Within your jsp include the following code:
>
>  
> <%
>   String stackTrace = (String)
> pageContext.getAttribute("stackTrace");
>   new ExceptionLogger().logException(stackTrace);
> %>
>
> where ExceptionLogger is a class you write to log the stackStrace or
> other information to a file.
>
> I use a similar fragment in the JSP to email a copy of the stacktrace to
> the administrator if the exception page is ever displayed.
>
> Hope that helps,
> Jeromy Evans
>
> Richard Sayre wrote:
> > I am trying to log the exception that get cought by the struts
> > exception handler.
> >
> > So far I have .jsp page that shows the exception:
> >
> > An Exception Has occured!
> > 
> >
> >
> > 
> > 
> > =
> >
> > 
> >
> >
> > I am going to change this page to display a generic error message.  I
> > want to write the value of exception and exceptionStack to a file.
> > How can I do this?  I can't figure out a way to write those values to
> > a file on the JSP page.
> >
> >
> > I tried to pass the values it to an Action but I couldn't pass in the
> > exceptionStack.  exception and exceptionStack are both Strings in my
> > Action class.
> >
> > 
> > /SystemError
> > true
> > ${exception}
> > ${exceptionStack}
> > 
> >
> > When an exception occues the result does not get executed and I get
> > the following Stack Trace.  I truncated most of the trace.
> >
> > java.lang.ArrayIndexOutOfBoundsException: 8192
> > at 
> > org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:720)
> > at 
> > org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:627)
> > at 
> > org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:500)
> > at 
> > org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1615)
> > at 
> > org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:962)
> > at org.apache.coyote.Response.action(Response.java:182)
> > at org.apache.coyote.Response.sendHeaders(Response.java:378)
> > at 
> > org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:317)
> > at 
> > org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:278)
> > at 
> > org.apache.catalina.connector.Response.finishResponse(Response.java:476)
> > at 
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> > 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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> > at 
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> > at java.lang.Thread.run(Thread.java:619)
> >
> >
> > Any suggestion on where I am going wrong would be appreciated.
> >
> > Thanks
> >
> > Rich
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: The breadcrumbs have been served!

2007-10-14 Thread Mark McLaren
I have been thinking a little more about the BreadCrumbInterceptor.  It 
may be a blunt instrument but I was thinking it would be a fair 
assumption to only include actions invoked via the GET method in the 
bookmarks trail.  This could be achieved in the interceptor with code a 
bit like:


ActionContext context = invocation.getInvocationContext ();
HttpServletRequest request = (HttpServletRequest)context.get(HTTP_REQUEST);
if ("GET".equals(request.getMethod()){
   // Do the magic stuff
}

I also thought that breadcrumbs of this nature would be really useful in 
an application that stores the most recent searches (imagine a S2 app 
using Lucene).  In this scenario it would be good to additionally 
include the querystring in the breadcrumb URL.


The only problem with these suggestions is that it makes it a far less 
simple example (and I don't plan on paying for my feature requests - do 
I qualify for the 3 for $250 yet?).


Mark


Adam Hardy wrote:
The motive website article is almost comprehensive, but they miss 2 
points about breadcrumb history menu:


firstly it's not redundant just because of the browser's history 
functionality - when you go back in the browser and then choose a new 
link, you lose your ability to go forward in the browser history 
again. A breadcrumb menu keeps your history even if you retrace your 
steps.


secondly for that reason, there is no need to try to work out whether 
a page is in the history already or not. Just let it appear twice or 3 
times or however many times.


But their point that breadcrumb history menus only having use in 
certain situations is very true. I always wish that javadocs had it 
built in.


Mark McLaren on 14/10/07 16:05, wrote:

Good stuff.  Here is some feedback for you, free of charge. :)

There is a slight issue with www.strutsschool.com (demo site for the 
breadcrumb plugin?).  I think flipCoin should probably appear in your 
excludeMethods as accessing flipCoin through the breadcrumb link 
throws an exception.  (the flipCoin breadcrumb is created by clicking 
on submit on the samples.action page).


Also, I think you need to make it clear that this provides 
"breadcrumb navigation as transcript/history" rather than the 
"Homeward Path" style of breadcrumbs that is more prevalent.  
(Breadcrumbs is a most ambiguous term!).





My personal preference would be to display breadcrumbs in an 
unordered list with appropriate CSS styling. e.g.:




I was also thinking that a homeward path breadcrumb navigation 
implementation would be a good demonstrator for the S2 XSLTResult type.


HTH

Mark

[EMAIL PROTECTED] wrote:

Greetings --

I finished the S2 breadcrumb plug-in and you are welcome to it and the
source code at www.strutsschool.com.  I plan to cover the plug-in 
process in
a chapter of the Struts 2 in Action 
  book
which is soon to be released.  Until then, a few folks have asked if 
they

could get it sooner.  Once you download the plug-in, be sure to see the
README.txt file contained inside the jar.  This explains how to add and
configure the plug-in to your liking and sample HTML code for 
displaying the

crumbs on your site.

Please let me know of any issues that you encounter and I will accept
feature requests at $100.00 each or three for $250.00! :)



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



Re: The breadcrumbs have been served!

2007-10-14 Thread Wendy Smoak
On 10/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Greetings --
>
> I finished the S2 breadcrumb plug-in and you are welcome to it and the
> source code at www.strutsschool.com.

Struts Classic?  We only called it that briefly during one of the svn
reorgs, it didn't stick.  It's just Struts, or Struts 1 if you're
trying to differentiate.  http://struts.apache.org/1.x/

-- 
Wendy

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



Re: The breadcrumbs have been served!

2007-10-14 Thread Dave Newton
http://www.strutsschool.com:80//about/about.action

Something is odd about the URL generation; I got to
the above link via the home page.

Too many exclamation points, and the second paragraph
reads "When" without anything else. First reference to
db4o has either a capital "O" or a "0" (zero).

When I "samples" link from left nav while on the
samples page it blows up rather spectacularly and the
URL in the browser nav is
"http://www.strutsschool.com:80//www.strutsschool.com/samples/samples.action";.

On the links page the Tomcat link goes directly to
download while the rest goes to a project hom(-ish)
page.

d.

--- [EMAIL PROTECTED] wrote:

> Greetings --
> 
> I finished the S2 breadcrumb plug-in and you are
> welcome to it and the
> source code at www.strutsschool.com.  I plan to
> cover the plug-in process in
> a chapter of the Struts 2 in Action
>   book
> which is soon to be released.  Until then, a few
> folks have asked if they
> could get it sooner.  Once you download the plug-in,
> be sure to see the
> README.txt file contained inside the jar.  This
> explains how to add and
> configure the plug-in to your liking and sample HTML
> code for displaying the
> crumbs on your site.
> 
> Please let me know of any issues that you encounter
> and I will accept
> feature requests at $100.00 each or three for
> $250.00! :)
> 
> -- 
> Scott
> [EMAIL PROTECTED]
> 


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



Re: The breadcrumbs have been served!

2007-10-14 Thread stanlick
Did the site also cause your CPU to spike?  The SS site was built by a
couple of us who wanted to see how different S2 was from S1.  I pushed it to
the other side of the DMZ and thought I'd tidy it up later.  Later becomes
around the clock work on this Struts 2 book and reading your emails at all
hours of the morning.  Would you like to help spruce it up?

I think every conceivable feature of S2 is somehow or another worked into
the SS site.  The Samples page use a couple versions of tokenWaitStacks
(because there were two) and I think we should have stopped messing with it
after the first twelve pack!

P.S. Did the download work?  I had no idea contributing software could be so
rewarding :)

s.



On 10/14/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> http://www.strutsschool.com:80//about/about.action
>
> Something is odd about the URL generation; I got to
> the above link via the home page.
>
> Too many exclamation points, and the second paragraph
> reads "When" without anything else. First reference to
> db4o has either a capital "O" or a "0" (zero).
>
> When I "samples" link from left nav while on the
> samples page it blows up rather spectacularly and the
> URL in the browser nav is
> "
> http://www.strutsschool.com:80//www.strutsschool.com/samples/samples.action
> ".
>
> On the links page the Tomcat link goes directly to
> download while the rest goes to a project hom(-ish)
> page.
>
> d.
>
> --- [EMAIL PROTECTED] wrote:
>
> > Greetings --
> >
> > I finished the S2 breadcrumb plug-in and you are
> > welcome to it and the
> > source code at www.strutsschool.com.  I plan to
> > cover the plug-in process in
> > a chapter of the Struts 2 in Action
> >   book
> > which is soon to be released.  Until then, a few
> > folks have asked if they
> > could get it sooner.  Once you download the plug-in,
> > be sure to see the
> > README.txt file contained inside the jar.  This
> > explains how to add and
> > configure the plug-in to your liking and sample HTML
> > code for displaying the
> > crumbs on your site.
> >
> > Please let me know of any issues that you encounter
> > and I will accept
> > feature requests at $100.00 each or three for
> > $250.00! :)
> >
> > --
> > Scott
> > [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Scott
[EMAIL PROTECTED]


Re: The breadcrumbs have been served!

2007-10-14 Thread stanlick
So is it Struts or Struts 1?  And what if I am using Struts 1.3 :)  And if I
am using Strus 1 with Spring, is this Spruts or String?

Scott

On 10/14/07, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> On 10/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Greetings --
> >
> > I finished the S2 breadcrumb plug-in and you are welcome to it and the
> > source code at www.strutsschool.com.
>
> Struts Classic?  We only called it that briefly during one of the svn
> reorgs, it didn't stick.  It's just Struts, or Struts 1 if you're
> trying to differentiate.  http://struts.apache.org/1.x/
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Scott
[EMAIL PROTECTED]


Re: The breadcrumbs have been served!

2007-10-14 Thread Wes Wannemacher
Hey Scott,

I'll volunteer to clean it up for you. I can tell that you seem more
of a Tiles fan than Sitemesh, but I think if you give it a spin you'll
probably enjoy it. Email me off-list (you know where) and we can work
out the details.

-W

On 10/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Did the site also cause your CPU to spike?  The SS site was built by a
> couple of us who wanted to see how different S2 was from S1.  I pushed it to
> the other side of the DMZ and thought I'd tidy it up later.  Later becomes
> around the clock work on this Struts 2 book and reading your emails at all
> hours of the morning.  Would you like to help spruce it up?
>
> I think every conceivable feature of S2 is somehow or another worked into
> the SS site.  The Samples page use a couple versions of tokenWaitStacks
> (because there were two) and I think we should have stopped messing with it
> after the first twelve pack!
>
> P.S. Did the download work?  I had no idea contributing software could be so
> rewarding :)
>
> s.
>
>
>
> On 10/14/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> >
> > http://www.strutsschool.com:80//about/about.action
> >
> > Something is odd about the URL generation; I got to
> > the above link via the home page.
> >
> > Too many exclamation points, and the second paragraph
> > reads "When" without anything else. First reference to
> > db4o has either a capital "O" or a "0" (zero).
> >
> > When I "samples" link from left nav while on the
> > samples page it blows up rather spectacularly and the
> > URL in the browser nav is
> > "
> > http://www.strutsschool.com:80//www.strutsschool.com/samples/samples.action
> > ".
> >
> > On the links page the Tomcat link goes directly to
> > download while the rest goes to a project hom(-ish)
> > page.
> >
> > d.
> >
> > --- [EMAIL PROTECTED] wrote:
> >
> > > Greetings --
> > >
> > > I finished the S2 breadcrumb plug-in and you are
> > > welcome to it and the
> > > source code at www.strutsschool.com.  I plan to
> > > cover the plug-in process in
> > > a chapter of the Struts 2 in Action
> > >   book
> > > which is soon to be released.  Until then, a few
> > > folks have asked if they
> > > could get it sooner.  Once you download the plug-in,
> > > be sure to see the
> > > README.txt file contained inside the jar.  This
> > > explains how to add and
> > > configure the plug-in to your liking and sample HTML
> > > code for displaying the
> > > crumbs on your site.
> > >
> > > Please let me know of any issues that you encounter
> > > and I will accept
> > > feature requests at $100.00 each or three for
> > > $250.00! :)
> > >
> > > --
> > > Scott
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Scott
> [EMAIL PROTECTED]
>


-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

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



[OT] Blogging Website information

2007-10-14 Thread Ashish Kulkarni
Hi
I was wondering if any one knows or uses blogging website where we can put
Java, HTML, Javascript code and it will be formatted differently, for
example if you have used http://forum.java.sun.com you can specify
[code][/code] and it formats it differently

What i need to do is, write some template programs and description on these
blog sites so can refer them in future,
or some notes etc


Ashish


Re: [OT] Blogging Website information

2007-10-14 Thread Wes Wannemacher
On wantii.com, I use wordpress with the 'Code Auto Escape' plugin. It
works pretty well.

-W

On 10/14/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> Hi
> I was wondering if any one knows or uses blogging website where we can put
> Java, HTML, Javascript code and it will be formatted differently, for
> example if you have used http://forum.java.sun.com you can specify
> [code][/code] and it formats it differently
>
> What i need to do is, write some template programs and description on these
> blog sites so can refer them in future,
> or some notes etc
>
>
> Ashish
>


-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

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



Re: how to make ActionForm in session scope in Struts2

2007-10-14 Thread Jose4u

thanks for the reply.
My intention is , i have a list in my action class and adding values to the
list(for e.g. Company) from the DB and forwarding to the .jsp after the user
enter the values ->moving to the action and saving the values in db and
again forwardig to the .jsp at that time the (company)values is not in the
list now it makes me again to fetch it from the db. What i felt here is its
a performance issue by again hitting the db to get the values to add it in
the list. Is there any way to retain the values in the list other than
session because i have so may drop down like for e.g. country? Is there any
way to achieve this task?
thanks in advance
Joseph

nuwan chandrasoma-2 wrote:
> 
> Hi,
> 
> what you mean by ActionForm? in struts2 there is no such as ActionForm, 
> you can access the session from your action class and add any object to 
> the session as an attribute.
> 
> http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html
> http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html
> 
> Thanks,
> 
> Nuwan
> 
> Jose4u wrote:
>> hi All
>>
>> how to make Action Form and a form in session scope in strut 2
>>
>> help needed.
>> Thanks in advance
>> Joseph
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-make-ActionForm-in-session-scope-in-Struts2-tf4604877.html#a13206773
Sent from the Struts - User mailing list archive at Nabble.com.


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



DateTimePicker "time" type not working in 2.0.11

2007-10-14 Thread Jon Wilmoth
I've tried using the datetimepicker with the type attribute set to "time" 
(), but 
nothing shows up.  There was a email thread this past spring on this subject, 
but it appears the tag was broken and to be fixed in 2.1.  Is the tag still 
broken in 2.0.11?

Thanks,
Jon

ExecuteAndWait interceptor position?

2007-10-14 Thread Igor Vlasov

Hello.

In Struts Documentation i found that 
"Because of the nature of this interceptor, it must be the last interceptor
in the stack."

and in struts-default.xml i found 


  
  input,back,cancel
   
   
   
  input,back,cancel
   


Why it appears twice?  Before all interceptors and after all interceptors.

In other parts of documentation  i see than i must use:



-  an execAndWait interceptor as last interceptor.

Why we need configured executeAndWaitStack?



-- 
View this message in context: 
http://www.nabble.com/ExecuteAndWait-interceptor-position--tf4624600.html#a13207107
Sent from the Struts - User mailing list archive at Nabble.com.


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