Author Login
Post Reply
user Digest 19 May 2008 06:46:41 -0000 Issue 8034
Topics (messages 186535 through 186543):
Re: How to change automatic type conversion error message
186535 by: Arpan Debroy
Spring MVC or JSF? where is S2?
186536 by: Frans Thamura
[Struts2] Table pagination (paging)?
186537 by: sol myr
186539 by: David Canos
186541 by: Felipe Lorenz
[Struts 2] Many-to-many form-interface
186538 by: David Canos
186542 by: Laurie Harper
[S2] Hot Deployment in Tomcat?
186540 by: Rubens
Re: No JavaScript in s:div
186543 by: Håken Stark
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_186535.ezm (zipped)It looks nice..thanks for the help..
On Fri, May 16, 2008 at 5:07 PM, Alberto A. Flores <aaflores@(protected)>
wrote:
> Read the section "Type Conversion Error Handling" in:
>
> http://struts.apache.org/2.x/docs/type-conversion.html
>
> You need to define an "invalid.fieldvalue.<your property>" to do custom
> type conversion error.
>
> Arpan Debroy wrote:
>
>> In my application "id" attribute is int type of "Group" bean.
>>
>> In my JSP I have written like that :-
>>
>> <s:textfield name="group.id" value="%{group.id}"/>
>>
>> Now if user puts a string into this text field, then error message come
>> like
>> that
>>
>> *invalid value for the field group.id
>>
>> But I want to show the error message with only "id" not "group.id".
>>
>> Is there anybody, who can show me any example how to do that.
>> *
>>
>>
> --
>
> Alberto A. Flores
> http://www.linkedin.com/in/aflores
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_186536.ezm (zipped)anyone have read this
http://theosophe74.blogspot.com/2008/05/spring-mvc-or-jsf.html
and this
http://raibledesigns.com/rd/entry/spring_mvc_vs_jsf_and
, why people dont compare with S2?
F

Attachment:
user_186537.ezm (zipped)Hi,
What's the Strut2 recommendation for Table Pagination (AKA Paging)?
We're showing a large table (say, 500 records) and need to break it down to 25 pages (20 records per page).
So we need a widget where users can select a page:
page: << 1 2 3 4 5 .. 24 25 >>
And then a table showing this page - e.g. page 2 is records 26-50:
| record No. | Date | price
------------------------------------
26. ....
27. ...
... ...
50. ...
Does struts2 have tags (or design recommendations) for this, either simple or ajax-based?
Note we know how to page on the Model side (oracle ROWNUM), we're just not sure how to integrate it with *Struts* UI.
Thanks very much,
Sollie.

Attachment:
user_186539.ezm (zipped)I have never used it, but I have heard good opinions about "display tag"
project.
http://displaytag.sourceforge.net/
Take a look at it.
2008/5/18 sol myr <solmyr72@(protected)>:
> Hi,
>
> What's the Strut2 recommendation for Table Pagination (AKA Paging)?
> We're showing a large table (say, 500 records) and need to break it down
> to 25 pages (20 records per page).
>
> So we need a widget where users can select a page:
> page: << 1 2 3 4 5 .. 24 25 >>
>
> And then a table showing this page - e.g. page 2 is records 26-50:
> | record No. | Date | price
> ------------------------------------
> 26. ....
> 27. ...
> ... ...
> 50. ...
>
> Does struts2 have tags (or design recommendations) for this, either simple
> or ajax-based?
> Note we know how to page on the Model side (oracle ROWNUM), we're just not
> sure how to integrate it with *Struts* UI.
>
> Thanks very much,
> Sollie.
>
>

Attachment:
user_186541.ezm (zipped)Yes, displaytag is simple and easy to use....
On Sun, May 18, 2008 at 6:40 AM, David Canos <davidcanos@(protected):
> I have never used it, but I have heard good opinions about "display tag"
> project.
> http://displaytag.sourceforge.net/
>
> Take a look at it.
>
> 2008/5/18 sol myr <solmyr72@(protected)>:
>
> > Hi,
> >
> > What's the Strut2 recommendation for Table Pagination (AKA Paging)?
> > We're showing a large table (say, 500 records) and need to break it down
> > to 25 pages (20 records per page).
> >
> > So we need a widget where users can select a page:
> > page: << 1 2 3 4 5 .. 24 25 >>
> >
> > And then a table showing this page - e.g. page 2 is records 26-50:
> > | record No. | Date | price
> > ------------------------------------
> > 26. ....
> > 27. ...
> > ... ...
> > 50. ...
> >
> > Does struts2 have tags (or design recommendations) for this, either
> simple
> > or ajax-based?
> > Note we know how to page on the Model side (oracle ROWNUM), we're just
> not
> > sure how to integrate it with *Struts* UI.
> >
> > Thanks very much,
> > Sollie.
> >
> >
>

Attachment:
user_186538.ezm (zipped)I want to build a generic form-interface to cover a simple many-to-many
relation.
Like a Writer and Books relation where a Writer could write some books and a
book could be written by some writers.
I was thinking in a concrete Struts tag but I find nothing.
Could you show me how to solve this issue in a generic way?
Thanks in advance.
David Canós

Attachment:
user_186542.ezm (zipped)David Canos wrote:
> I want to build a generic form-interface to cover a simple many-to-many
> relation.
> Like a Writer and Books relation where a Writer could write some books and a
> book could be written by some writers.
>
> I was thinking in a concrete Struts tag but I find nothing.
>
> Could you show me how to solve this issue in a generic way?
It's a bit difficult to offer advice when the requirements are this
vague... What do you want this form to do? Allow you to edit a book's
authors? Allow you to edit an authors books? Some combination of both?
(how would that work?)
L.

Attachment:
user_186540.ezm (zipped)Does anyone know how to get Hot deployment to work with Tomcat?
I am using Struts2, Spring, Hibernate, and MySQL
Tomcat Version: 6.0.16
Java version: JDK 1.6.0_06
Eclipse version: 3.4.0
Tomcat Sysdeo Plugin version: 3.2.1
Struts version: 2.0.11.1
Spring Framework version: 2.5.1
Hibernate version: 3.2.6.ga
MySQL JDBC driver: 5.1.5
C3P0 connection pool: 0.9.1.2
I started tomcat outside eclipse using a remote JPDA debugging connection
(catalina jpda start). And I started tomcat from within Eclipse using the
SYSDEO tomcat pluggin. In both instances, I get the following message right
after I change a line of code and save it when debug stepping. I have also
tried to use JDK 1.5 and had the same error.
"Obsolete Methods on the Stack"
Reason:
The virtual machine was unable to remove all the stack frames running old
code from the call stack.
The virtual machine is not supplying the debugger with valid data for those
frames...
I see the following exception on the logs when the above error is displayed:
May 18, 2008 10:55:30 AM
org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
May 18, 2008 10:55:30 AM
org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
May 18, 2008 10:55:31 AM
org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
May 18, 2008 10:55:32 AM
org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
May 18, 2008 10:55:32 AM
org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
May 18, 2008 10:55:32 AM
org.apache.catalina.loader.WebappClassLoaderloadClass
INFO: Illegal access: this web application instance has been stopped
already. Could not load com.mysql.jdbc.profiler.ProfileEventSink. The
eventual following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
java.lang.IllegalStateException at
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1246)
at
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1206)
at
java.lang.ClassLoader.loadClassInternal (
ClassLoader.java:319)
at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4235)
at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1453)
at
com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:549)
at
com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:234)
at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
at
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
at
com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:989)
at
com.mchange.v2.resourcepool.BasicResourcePool.access$100(BasicResourcePool.java:32)
at
com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:1174)
Exception in thread "Resource Destroyer in BasicResourcePool.close()"
java.lang.NoClassDefFoundError: com/mysql/jdbc/profiler/ProfileEventSink
at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4235)
at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1453)
at
com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:549)
at
com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:234)
at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
at
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
at
com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:989)
at
com.mchange.v2.resourcepool.BasicResourcePool.access$100(BasicResourcePool.java:32)
at
com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:1174)
Caused by:
java.lang.ClassNotFoundException:
com.mysql.jdbc.profiler.ProfileEventSink
at
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1360)
at
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1206)
at
java.lang.ClassLoader.loadClassInternal (
ClassLoader.java:319)
... 9 more
May 18, 2008 10:55:34 AM
org.apache.catalina.core.StandardContextaddApplicationListener
INFO: The listener "
org.acegisecurity.ui.session.HttpSessionEventPublisher"
is already configured for this context. The duplicate definition has been
ignored.
May 18, 2008 10:55:34 AM
org.apache.catalina.core.StandardContextaddApplicationListener
INFO: The listener "com.softlagos.web.listener.WebAppHttpSessionListener" is
already configured for this context. The duplicate definition has been
ignored.
May 18, 2008 10:55:34 AM
org.apache.catalina.core.StandardContextaddApplicationListener
INFO: The listener "com.softlagos.web.common.SpringBeanFactory" is already
configured for this context. The duplicate definition has been ignored.
May 18, 2008 10:55:35 AM
org.apache.catalina.loader.WebappClassLoaderloadClass
INFO: Illegal access: this web application instance has been stopped
already. Could not load com.mysql.jdbc.SQLError. The eventual following
stack trace is caused by an error thrown for debugging purposes as well as
to attempt to terminate the thread which caused the illegal access, and has
no functional impact.
java.lang.IllegalStateException at
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1246)
at
org.apache.catalina.loader.WebappClassLoader.loadClass (
WebappClassLoader.java:1206)
at
java.lang.ClassLoader.loadClassInternal (
ClassLoader.java:319)
at
com.mysql.jdbc.MysqlIO.send (
MysqlIO.java:3134)
at
com.mysql.jdbc.MysqlIO.quit (
MysqlIO.java:1616)
at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4223)
at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1257)
at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2663)
at
java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at
java.lang.ref.Finalizer.runFinalizer (
Finalizer.java:83)
at
java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
May 18, 2008 10:55:36 AM
org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
May 18, 2008 10:55:56 AM
org.apache.catalina.core.StandardContextfilterStart
SEVERE: Exception starting filter struts2Filter
Caught exception while loading file struts-default.xml - [unknown location]
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:839)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (
XmlConfigurationProvider.java:131)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init (
XmlConfigurationProvider.java:100)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload (
DefaultConfiguration.java:130)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (
Dispatcher.java:395)
at
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:452)
at
org.apache.struts2.dispatcher.FilterDispatcher.init (
FilterDispatcher.java:201)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter (
ApplicationFilterConfig.java:275)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (
ApplicationFilterConfig.java:397)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at
org.apache.catalina.core.StandardContext.filterStart (
StandardContext.java:3709)
at
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4356)
at
org.apache.catalina.core.StandardContext.reload (
StandardContext.java:3099)
at
org.apache.catalina.loader.WebappLoader.backgroundProcess (
WebappLoader.java:404)
at
org.apache.catalina.core.ContainerBase.backgroundProcess (
ContainerBase.java:1309)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at
java.lang.Thread.run (
Thread.java:619)
Caused by:
java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration cannot be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:69)
at
com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler (
TransletOutputHandlerFactory.java:187)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler (
TransformerImpl.java:392)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult (
TransformerHandlerImpl.java:137)
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:213)
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:198)
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:189)
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:175)
at
com.opensymphony.xwork2.util.DomHelper.parse (
DomHelper.java:115)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:830)
... 20 more
May 18, 2008 10:55:56 AM
org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
May 18, 2008 10:55:56 AM
org.apache.catalina.core.StandardContext start
SEVERE: Context [/webphone] startup failed due to previous errors
May 18, 2008 10:55:56 AM
org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
log4j:ERROR LogMananger.repositorySelector was null likely due to error in
class reloading, using NOPLoggerRepository.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186543.ezm (zipped)Thanks, but I have already tried this without any success.
-Håken
-----Original Message-----
From: Yoge [mailto:yogebabu@(protected)]
Sent: 16. mai 2008 15:26
To: Struts Users Mailing List
Subject: Re: No JavaScript in s:div
set executeScripts="true" in s:div tag.
For ex
<s:div theme="ajax" href="/myapp.do" loadingText="Loading..."
executeScripts="true"></s:div>
--Yoge
http://zoho.com
On Fri, May 16, 2008 at 12:50 PM, Håken Stark <haaken.stark@(protected)>
wrote:
> Hi,
>
> Are there any solution to these issues:
>
> http://issues.apache.org/struts/browse/WW-1766
> http://issues.apache.org/struts/browse/WW-2501
>
> I'm still not able to execute any Javascript included from remote content.
> Same issues persists in both Struts 2.0.11.1 and 2.1.2. Could someone give
> me some input on this issues, especially issue WW-2501, since the comment
> text says 'removed'?
>
> -Håken
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
--Yoge
91-9840425388