Author Login
Post Reply
user Digest 6 Jun 2008 06:15:25 -0000 Issue 8074
Topics (messages 187307 through 187319):
Re: Single user Login
187307 by: Prashant Saraf
187309 by: Jim Kiley
187310 by: Prashant Saraf
[Struts 2] Focusing to a component (textfield)
187308 by: Milan Milanovic
Re: detached object cannot be persisted exception again
187311 by: Martin
Parameter question
187312 by: Stanley, Eric
187314 by: Dave Newton
Re: Display tag and AJAX
187313 by: Lalchandra Rampersaud
187316 by: Arunkumar Balasubramanian
Struts2 java script issue/bug with tabbed panel
187315 by: tom tom
Re: [Struts 2] webapp on internet, clients behind a proxy --> session clash
187317 by: Julien ROTT
Move query to interceptor
187318 by: Frans Thamura
187319 by: Frans Thamura
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_187307.ezm (zipped)Does anyone know how to do it?
-----Original Message-----
From: Prashant Saraf [mailto:psaraf@(protected)]
Sent: Thursday, June 05, 2008 7:14 PM
To: Struts Users Mailing List
Subject: RE: Single user Login
Hi ,
I am managing it by DB check. My Helper class is checking either user
is valid or not with DB.
Regards
PS.
-----Original Message-----
From: Jim Kiley [mailto:jhkiley@(protected)]
Sent: Thursday, June 05, 2008 7:10 PM
To: Struts Users Mailing List
Subject: Re: Single user Login
This really depends on how you are currently managing authentication.
How
are you currently managing authentication?
On Thu, Jun 5, 2008 at 9:33 AM, Prashant Saraf <psaraf@(protected):
> Hi,
>
> I want to know how to do single user login, that is user should not
> login form multiple location at the same time.
>
> Regards,
>
> Prashant Saraf
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_187309.ezm (zipped)If you want to implement a full-blown security scheme like Spring Security,
there are ways to do it. If you don't (and that is understandable), you're
going to need to track whether or not a given user is already logged in, at
the application level.
One solution, which is absolutely quick-and-dirty, and undoubtedly NOT a
best practice, would be to stash a Set of userids in the application scope,
using the ApplicationAware interface, and then compare the user who's trying
to log in to that set of userids. The complexity you'll get there is
removing the userid from the application scope when the user's session times
out or he logs out.
jk
On Thu, Jun 5, 2008 at 12:58 PM, Prashant Saraf <psaraf@(protected):
> Does anyone know how to do it?
>
> -----Original Message-----
> From: Prashant Saraf [mailto:psaraf@(protected)]
> Sent: Thursday, June 05, 2008 7:14 PM
> To: Struts Users Mailing List
> Subject: RE: Single user Login
>
> Hi ,
> I am managing it by DB check. My Helper class is checking either user
> is valid or not with DB.
>
> Regards
> PS.
>
>
> -----Original Message-----
> From: Jim Kiley [mailto:jhkiley@(protected)]
> Sent: Thursday, June 05, 2008 7:10 PM
> To: Struts Users Mailing List
> Subject: Re: Single user Login
>
> This really depends on how you are currently managing authentication.
> How
> are you currently managing authentication?
>
> On Thu, Jun 5, 2008 at 9:33 AM, Prashant Saraf <psaraf@(protected):
>
> > Hi,
> >
> > I want to know how to do single user login, that is user should not
> > login form multiple location at the same time.
> >
> > Regards,
> >
> > Prashant Saraf
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.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)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187310.ezm (zipped)Hi Jim,
Thanks for the help.. I did try it before what u said, but things are
going worst when user is login off with session time out or close the
browser,
If user login again after browser crash or browser close then they have
to wait till session timeout is not done.
-----Original Message-----
From: Jim Kiley [mailto:jhkiley@(protected)]
Sent: Thursday, June 05, 2008 10:37 PM
To: Struts Users Mailing List
Subject: Re: Single user Login
If you want to implement a full-blown security scheme like Spring
Security,
there are ways to do it. If you don't (and that is understandable),
you're
going to need to track whether or not a given user is already logged in,
at
the application level.
One solution, which is absolutely quick-and-dirty, and undoubtedly NOT a
best practice, would be to stash a Set of userids in the application
scope,
using the ApplicationAware interface, and then compare the user who's
trying
to log in to that set of userids. The complexity you'll get there is
removing the userid from the application scope when the user's session
times
out or he logs out.
jk
On Thu, Jun 5, 2008 at 12:58 PM, Prashant Saraf <psaraf@(protected):
> Does anyone know how to do it?
>
> -----Original Message-----
> From: Prashant Saraf [mailto:psaraf@(protected)]
> Sent: Thursday, June 05, 2008 7:14 PM
> To: Struts Users Mailing List
> Subject: RE: Single user Login
>
> Hi ,
> I am managing it by DB check. My Helper class is checking either user
> is valid or not with DB.
>
> Regards
> PS.
>
>
> -----Original Message-----
> From: Jim Kiley [mailto:jhkiley@(protected)]
> Sent: Thursday, June 05, 2008 7:10 PM
> To: Struts Users Mailing List
> Subject: Re: Single user Login
>
> This really depends on how you are currently managing authentication.
> How
> are you currently managing authentication?
>
> On Thu, Jun 5, 2008 at 9:33 AM, Prashant Saraf <psaraf@(protected)>
wrote:
>
> > Hi,
> >
> > I want to know how to do single user login, that is user should not
> > login form multiple location at the same time.
> >
> > Regards,
> >
> > Prashant Saraf
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.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)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187308.ezm (zipped)Hi,
I have a form where user enter something and then table below the form is populated. I want to focus on one particular textfield in my form, so when user click on submit button:
<s:submit theme="ajax" value="Save" targets="samples" notifyTopics="/save"/>
the page is located at that textfield and he just need to enter value.
It seems like simple thing, but is it possible to do in Struts 2.0.11.1 and Dojo ?
--
Thx in advance, Milan Milanovic

Attachment:
user_187311.ezm (zipped)Arun-
did you disable the optimistic_lock code..?
// OPTIMISTIC LOCK MODE (dont use this as this causes OptimisticLockMode
Exceptions)
// Attribute olNode = node.attribute( "optimistic-lock" );
//return Versioning.OPTIMISTIC_LOCK_VERSION;
// entity.setOptimisticLockMode( getOptimisticLockMode( olNode ) );
//try a dirty lock..
Attribute dirtyNode = node.attribute( "optimistic-lock-dirty");
entity.setOptimisticLockMode( getOptimisticLockMode(dirtyNode) );
//or lock all
Attribute lockAllNode = node.attribute( "optimistic-lock-all");
entity.setOptimisticLockMode( getOptimisticLockMode(lockAllNode) );
//or No lock
Attribute lockNoneNode = node.attribute( "optimistic-lock-none");
entity.setOptimisticLockMode( getOptimisticLockMode(lockNoneNode) );
HTH,
Martin
----- Original Message -----
From: "Arun" <arun.george.1981@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Thursday, June 05, 2008 12:11 PM
Subject: detached object cannot be persisted exception again
> Hi,
>
> I am using JPA and ehcache.
> My entity is this.
>
> @Entity
> @Table(name = "holiday_calendar")
> @Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
> public class HolidaysCalendar
> {
> @Id
> @Column(name = "HOLIDAY_CALENDAR_ID", nullable = false, unique = true)
> private int holidayCalendarId;
>
> @Column(name = "DATE", nullable = false)
> private Date date;
>
> @Column(name = "TYPE", nullable = false)
> private String type;
>
> @Column(name = "DESCRIPTION", nullable = true)
> private String description;
>
> ---
>
>
> }
>
>
> when I try to do an entityManager.merge(holidaycalendarobj)
> First call I am succesful, next tine I get the exception
> persistenceexception: detached object cannot be persisted.
> I am using openSessionInViewFilter and spring.
> I have tried using saveOrUpdate() of hibernate.
> I got another exception then.
>
> My log told me this by which I am confused. Please help
>
javax.persistence.RollbackException: Error while commiting the transaction
> at
org.hibernate.ejb.TransactionImpl.commit (
TransactionImpl.java:71)
> at
>
org.springframework.orm.jpa.JpaTransactionManager.doCommit (
JpaTransactionManager.java:433)
> at
>
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit (
AbstractPlatformTransactionManager.java:651)
> at
>
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit (
AbstractPlatformTransactionManager.java:621)
> at
>
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning (
TransactionAspectSupport.java:311)
> at
>
org.springframework.transaction.interceptor.TransactionInterceptor.invoke (
TransactionInterceptor.java:117)
> at
>
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (
ReflectiveMethodInvocation.java:161)
> at
>
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
> at
> com.slingmedia.emp.facade.employee.LeaveManager$$EnhancerByCGLIB$$5a2b3b92.createHoliday(<generated>)
> at
> com.slingmedia.emp.web.actions.employee.LeaveManagerAction.addHolidays(LeaveManagerAction.java:568)
> at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke (
NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke (
DelegatingMethodAccessorImpl.java:25)
> at
java.lang.reflect.Method.invoke (
Method.java:585)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction (
DefaultActionInvocation.java:404)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly (
DefaultActionInvocation.java:267)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:229)
> at
>
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept (
DefaultWorkflowInterceptor.java:221)
> at
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:86)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept (
ValidationInterceptor.java:150)
> at
>
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept (
AnnotationValidationInterceptor.java:48)
> at
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:86)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept (
ConversionErrorInterceptor.java:123)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (
ParametersInterceptor.java:167)
> at
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:86)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept (
StaticParametersInterceptor.java:105)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
org.apache.struts2.interceptor.CheckboxInterceptor.intercept (
CheckboxInterceptor.java:83)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
org.apache.struts2.interceptor.FileUploadInterceptor.intercept (
FileUploadInterceptor.java:207)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept (
ModelDrivenInterceptor.java:74)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept (
ScopedModelDrivenInterceptor.java:127)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept (
ProfilingActivationInterceptor.java:107)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept (
DebuggingInterceptor.java:206)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept (
ChainingInterceptor.java:115)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept (
I18nInterceptor.java:143)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept (
PrepareInterceptor.java:121)
> at
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (
MethodFilterInterceptor.java:86)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept (
ServletConfigInterceptor.java:170)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept (
AliasInterceptor.java:123)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept (
ExceptionMappingInterceptor.java:176)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile (
UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke (
DefaultActionInvocation.java:221)
> 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:202)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
> at
>
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal (
OpenEntityManagerInViewFilter.java:111)
> at
>
org.springframework.web.filter.OncePerRequestFilter.doFilter (
OncePerRequestFilter.java:75)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:202)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:173)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke (
StandardWrapperValve.java:213)
> at
>
org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:178)
> at
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke (
AuthenticatorBase.java:524)
> at
>
org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:126)
> at
>
org.apache.catalina.cluster.tcp.ReplicationValve.invoke (
ReplicationValve.java:346)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:105)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:107)
> at
>
org.apache.catalina.connector.CoyoteAdapter.service (
CoyoteAdapter.java:148)
> at
>
org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:869)
> at
>
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> at
>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (
PoolTcpEndpoint.java:527)
> at
>
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (
LeaderFollowerWorkerThread.java:80)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at
java.lang.Thread.run (
Thread.java:595)
> Caused by:
javax.persistence.OptimisticLockException:
>
org.hibernate.StaleStateException: Batch update returned unexpected row
> count from update [0]; actual row count: 0; expected: 1
> at
>
org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException (
AbstractEntityManagerImpl.java:654)
> at
org.hibernate.ejb.TransactionImpl.commit (
TransactionImpl.java:59)
> ... 129 more
> Caused by:
org.hibernate.StaleStateException: Batch update returned
> unexpected row count from update [0]; actual row count: 0; expected: 1
> at
>
org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:61)
> at
>
org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:46)
> at
>
org.hibernate.jdbc.BatchingBatcher.checkRowCounts (
BatchingBatcher.java:68)
> at
>
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch (
BatchingBatcher.java:48)
> at
>
org.hibernate.jdbc.AbstractBatcher.executeBatch (
AbstractBatcher.java:246)
> at
org.hibernate.engine.ActionQueue.executeActions (
ActionQueue.java:266)
> at
org.hibernate.engine.ActionQueue.executeActions (
ActionQueue.java:168)
> at
>
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions (
AbstractFlushingEventListener.java:298)
> at
>
org.hibernate.event.def.DefaultFlushEventListener.onFlush (
DefaultFlushEventListener.java:27)
> at
org.hibernate.impl.SessionImpl.flush (
SessionImpl.java:1000)
> at
org.hibernate.impl.SessionImpl.managedFlush (
SessionImpl.java:338)
> at
>
org.hibernate.transaction.JDBCTransaction.commit (
JDBCTransaction.java:106)
> at
org.hibernate.ejb.TransactionImpl.commit (
TransactionImpl.java:54)
> ... 129 more
>
>
>
> Does any body has a soultion.I know this is becuase I use persist and
> secondlevel cache together.
> I am checking if the entity already exists in db. So the argument that I
> am
> trying to persist an already existing entity itself is wrong.
> My guess is the cache is not synching with db or something of that sort.
> I have enabled query caching and is using that.
> Is it becuase of that?
>
> public List<HolidaysCalendar> getHolidaysCalendarForYear(int year, String
> type)
> {
> Query query = null;
>
> if ( "-1".equals(type) )
> {
> query = entityManager.createQuery("select hcal from HolidaysCalendar hcal
> where YEAR(hcal.date) = :year ");
> }
> else
> query = entityManager.createQuery("select hcal from HolidaysCalendar hcal
> where YEAR(hcal.date) = :year and hcal.type= :type");
>
> query.setHint("org.hibernate.cacheable", true);
> //query.setHint("org.hibernate.timeout", 24 * 60 * 60);// 1 day cache.
> query.setParameter("year", year);
> if ( !"-1".equals(type) )
> query.setParameter("type", type);
> return query.getResultList();
> }
>
>
>
>Is query level caching affecting this or some sort of things like that?
> Please help!!!
>
>
> --
> Thanks
> Arun George
>

Attachment:
user_187312.ezm (zipped)All,
In my app, I have this package/action defined:
<package name="data" extends="struts-default" namespace="/data">
<default-interceptor-ref name="paramsPrepareParamsStack" />
<action name="displayData" class="fm.gui.action.DataAction">
<result name="success">/pages/data/viewData.jsp</result>
<result name="error">/pages/error.jsp</result>
</action>
</package>
The problem is that as soon as its called, every subsequent action has a
bunch of parameters appended to it. This causes any other action to
fail. They fail because there is no object for the parameters to be
applied to, and rightfully so. I still dont completely grasp this
interceptor, and I think fixing this will help a lot as far as that
goes. Please let me know.
E. Ryan Stanley
Phone: 720.578.3703
Pager: 801.482.0172
<mailto:exstanl@(protected)>
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.

Attachment:
user_187314.ezm (zipped)Are you talking about links to actions having parameters appended?
If so, are you either excluding parameters at each <s:url...> or, alternatively, setting a default excludeParams via config?
Dave
--- On Thu, 6/5/08, Stanley, Eric <Eric.R.Stanley@(protected):
> In my app, I have this package/action defined:
>
> <package name="data"
> extends="struts-default"
> namespace="/data">
>
> <default-interceptor-ref
> name="paramsPrepareParamsStack" />
>
> <action name="displayData"
> class="fm.gui.action.DataAction">
>
> <result
> name="success">/pages/data/viewData.jsp</result>
>
> <result
> name="error">/pages/error.jsp</result>
>
> </action>
>
> </package>
>
>
>
> The problem is that as soon as its called, every subsequent
> action has a
> bunch of parameters appended to it. This causes any other
> action to
> fail. They fail because there is no object for the
> parameters to be
> applied to, and rightfully so. I still dont completely
> grasp this
> interceptor, and I think fixing this will help a lot as far
> as that
> goes. Please let me know.
>
>
> E. Ryan Stanley
> Phone: 720.578.3703
> Pager: 801.482.0172
> <mailto:exstanl@(protected)>
>
>
>
> This communication is the property of Qwest and may contain
> confidential or
> privileged information. Unauthorized use of this
> communication is strictly
> prohibited and may be unlawful. If you have received this
> communication
> in error, please immediately notify the sender by reply
> e-mail and destroy
> all copies of the communication and any attachments.

Attachment:
user_187313.ezm (zipped)yes, you can update a display table alone with an ajax call.
this is one done with ajaxanywhere:
<aa:zone name="bossTechnicalCompetitions">
<display:table name="workers"
decorator="displaytagClasses.DisplayRadio"
class="displaytag">
<display:column property="projWorker" title=""
style="width: 10px" />
<display:column property="lastName"
title="Primer Apellido" />
<display:column property="surName"
title="Segundo Apellido" />
<display:column property="workerName"
title="Nombre(s)" />
<display:column property="lester" title="Detalles" />
<display:footer>
<tr class="row_color">
<td style="width: 10px">
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="4" class="headerTable" align="center">
<DIV align="center" />
<c:out
value="${sessionScope.projWorkerPaginator.pageIndexText}" />
</DIV>
</td>
</tr>
</display:footer>
</display:table>
</aa:zone>
Saludos
Lalchandra Rampersaud
------------
Carpe diem
----- Original Message -----
From: "Arunkumar Balasubramanian" <arun-82@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Wednesday, June 04, 2008 6:41 PM
Subject: Display tag and AJAX
Can we update the display:table with an ajax call? Here is what I was expecting to do.
- There are different radio buttons (each will have different status of results) - Depending on the selection, the display:table has to update the rows. - There display:table headers dosen't change and the values inside the display:rable changes based on the selections.
I was trying to do the following.
- Make an AJAX call when the user clicks on radio buttons, so that only the display:table gets refreshed and not the entire page. - Based on the selections, the display:table will update the results.
If someone was able to provide the reference for how to perform the above task it would be great.
Thanks in advance.
_________________________________________________________________
It’s easy to add contacts from Facebook and other social sites through Windows Live™ Messenger. Learn how.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow

Attachment:
user_187316.ezm (zipped)
Thanks for your reply.
Can you give the reference of javascript functions used for the display:table used with in AjaxAnywhere tag? If you have an working example, it would be great, if you could provide the reference with other classes involved with display:table.
> From: lrampersaud@(protected)
_________________________________________________________________
Instantly invite friends from Facebook and other social networks to join you on Windows Live™ Messenger.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends

Attachment:
user_187315.ezm (zipped)Hi,
We use struts2 2.0.6 and
we have the following, when the user click one of the
tabs (div s), I want to know which div id is focussed
or clicked, so I went I head and had javascippts
functions(onClick, onFocuss) within <s:div but they
are not getting called,
Is this a bug, How can know the focussed tab (div) by
the user,
I want to update a hidden variable based on the
focussed tab by the user,
Thanks
<s:tabbedPanel id="testPanel" ........
<s:div id="tab1" label="......
<s:div id="academicTeaching" label="....
......

Attachment:
user_187317.ezm (zipped)So there is no solution to avoid the sessions clash in this situation ?
2008/6/5 Dave Newton <newton.dave@(protected)>:
> --- On Thu, 6/5/08, Julien ROTT <julien.rott@(protected):
> > I guess the server is a bit confused because the clients
> > have the same IP address (I tried jboss and jetty).
>
> Session management isn't really handled by Struts, it's handled via the app
> server and browser (by sending the session id cookie).
>
> AFAIK the requesting IP address doesn't (shouldn't?) have anything to do
> with it, it's all about what the browser sends to identify the session.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187318.ezm (zipped)hi all
we want to move the repeated query on our apps to become a interceptor, this is our file
anyone can give the experience to me about this mode?
NB: the repeated query is a security purpose query, that validate every user/role to access certain package in struts.xml
F

Attachment:
CimandeInterceptor.java (zipped)
Attachment:
user_187319.ezm (zipped)hi all
we want to move the repeated query on our apps to become a interceptor, this is our file
anyone can give the experience to me about this mode?
NB: the repeated query is a security purpose query, that validate every user/role to access certain package in struts.xml
F

Attachment:
CimandeInterceptor.java (zipped)