Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 14 May 2008 13:00:54 -0000 Issue 8028

user-digest-help

2008-05-14


Author LoginPost Reply

user Digest 14 May 2008 13:00:54 -0000 Issue 8028

Topics (messages 186434 through 186440):

Re: [struts 2] Two forms for one action
 186434 by: Milan Milanovic
 186435 by: Milan Milanovic

Struts2 with Turbine
 186436 by: JKrishna

Re: File upload issue
 186437 by: Zoran Avtarovski
 186439 by: Zoran Avtarovski

Re: struts2 access session Id
 186438 by: Jakub Milkiewicz

interceptors
 186440 by: krishna chary

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_186434.ezm (zipped)
Hi,

but how my action class is storing objects which are shown in jsp and also
it store objects inserted through jsp ? This mean that it have state information ?

--
Thx, Milan



----- Original Message ----
From: Jukka Välimaa <valimaa.jukka@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 14, 2008 7:53:13 AM
Subject: Re: [struts 2] Two forms for one action

Both forms don't call the same *instance* of the action class. Neither does
one form, actually.
For each request, Struts 2 uses a different instance of the same class. Once
the result is
rendered, the action object is no longer used. If you want to retain action
state information, you
must store it somehow-through hidden fields in form or in session, for
example.

On Tue, May 13, 2008 at 6:13 PM, Milan Milanovic <milanmilanovich@(protected)>
wrote:

> Thank you Randy.
> >They could, if it were me I would have different methods on the action
> class
> >to handle the different forms if I were to do it this way. Personally I
> >would create an action class for each form.
>
> No, I cannot do this, because both forms need to work with the same
> objects in
> a action class. First form works with some header data, and the second
> with list
> of data and show table also of such data.
> I asked this, because I wasn't sure if both forms would call the same
> instance of
> action class.
> --
> Thx, Milan Milanovic
> ----- Original Message ----
> From: Randy Burgess <RBurgess@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Tuesday, May 13, 2008 5:09:19 PM
> Subject: Re: [struts 2] Two forms for one action
>
> They could, if it were me I would have different methods on the action
> class
> to handle the different forms if I were to do it this way. Personally I
> would create an action class for each form.
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
> > From: Milan Milanovic <milanmilanovich@(protected)>
> > Reply-To: Struts Users Mailing List <user@(protected)>
> > Date: Tue, 13 May 2008 07:58:29 -0700 (PDT)
> > To: Struts Users Mailing List <user@(protected)>
> > Subject: Re: [struts 2] Two forms for one action
> >
> > I have one more question about this, if I define two <s:forms> in one
> page
> > would
> > they work with the same action class ?
> >
> > --
> > Thx, Milan Milanovic
> > ----- Original Message ----
> > From: Jim Kiley <jhkiley@(protected)>
> > To: Struts Users Mailing List <user@(protected)>
> > Sent: Monday, May 12, 2008 6:15:07 PM
> > Subject: Re: [struts 2] Two forms for one action
> >
> > Milan,
> >
> > I'm not a Struts 1 guy, so this advice might not be useful to you
> (because
> > you didn't say whether this was a Struts 1 or 2 situation). But in my
> Struts
> > 2 app I have plenty of places where I have multiple <s:submit> buttons
> each
> > triggering different action methods on the same action class.
> >
> > jk
> >
> >
> > On Mon, May 12, 2008 at 12:10 PM, Milan Milanovic <
> milanmilanovich@(protected)>
> > wrote:
> >
> >> Or maybe I should define two submit buttons for the same form and
> action
> >> class ?
> >> --
> >> Regards, Milan
> >>
> >>
> >> ----- Original Message ----
> >> From: Milan Milanovic <milanmilanovich@(protected)>
> >> To: Struts Users Mailing List <user@(protected)>
> >> Sent: Monday, May 12, 2008 5:57:50 PM
> >> Subject: [struts 2] Two forms for one action
> >>
> >> Hi,
> >> I need to have classic master/detail jsp page, so I need actually two
> >> forms in a jsp page to works with one action class,
> >> one main form that works with main elements of my object (e.g. User
> name,
> >> surname,...) for header and another one which works
> >> with some list that belongs to my main object (e.g., User.privileges)
> >> below such header part. How can I define this ?
> >> --
> >> Thx, Milan Milanovic
> >>
> >>
> >>
> >>
> _____________________________________________________________________________
> >> _______
> >> Be a better friend, newshound, and
> >> know-it-all with Yahoo! Mobile. Try it now.
> >> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >>
> >>
> >>
> >>
> >>
> _____________________________________________________________________________
> >> _______
> >> Be a better friend, newshound, and
> >> know-it-all with Yahoo! Mobile. Try it now.
> >> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >>
> >
> >
> >
> > --
> > Jim Kiley
> > Technical Consultant | Summa
> > [p] 412.258.3346 [m] 412.445.1729
> > http://www.summa-tech.com
> >
> >
> >
>
>
>
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information. If you are not the addressee, or if this
> Message has been addressed to you in error, you are not authorized to read,
> copy, or distribute it, and we ask that you please delete it (including all
> copies) and notify the sender by return email. Delivery of this Message to
> any person other than the intended recipient(s) shall not be deemed a waiver
> of confidentiality and/or a privilege.
>
>
>
>
>




Attachment: user_186435.ezm (zipped)
Actually my question is next, if my form store information to attribs of my action class,
would another form for the same class store information to attribs of the same class (but another
attribs) ?

--
Thx, Milan


----- Original Message ----
From: Milan Milanovic <milanmilanovich@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 14, 2008 12:05:06 PM
Subject: Re: [struts 2] Two forms for one action

Hi,

but how my action class is storing objects which are shown in jsp and also
it store objects inserted through jsp ? This mean that it have state information ?

--
Thx, Milan



----- Original Message ----
From: Jukka Välimaa <valimaa.jukka@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 14, 2008 7:53:13 AM
Subject: Re: [struts 2] Two forms for one action

Both forms don't call the same *instance* of the action class. Neither does
one form, actually.
For each request, Struts 2 uses a different instance of the same class. Once
the result is
rendered, the action object is no longer used. If you want to retain action
state information, you
must store it somehow-through hidden fields in form or in session, for
example.

On Tue, May 13, 2008 at 6:13 PM, Milan Milanovic <milanmilanovich@(protected)>
wrote:

> Thank you Randy.
> >They could, if it were me I would have different methods on the action
> class
> >to handle the different forms if I were to do it this way. Personally I
> >would create an action class for each form.
>
> No, I cannot do this, because both forms need to work with the same
> objects in
> a action class. First form works with some header data, and the second
> with list
> of data and show table also of such data.
> I asked this, because I wasn't sure if both forms would call the same
> instance of
> action class.
> --
> Thx, Milan Milanovic
> ----- Original Message ----
> From: Randy Burgess <RBurgess@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Tuesday, May 13, 2008 5:09:19 PM
> Subject: Re: [struts 2] Two forms for one action
>
> They could, if it were me I would have different methods on the action
> class
> to handle the different forms if I were to do it this way. Personally I
> would create an action class for each form.
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
> > From: Milan Milanovic <milanmilanovich@(protected)>
> > Reply-To: Struts Users Mailing List <user@(protected)>
> > Date: Tue, 13 May 2008 07:58:29 -0700 (PDT)
> > To: Struts Users Mailing List <user@(protected)>
> > Subject: Re: [struts 2] Two forms for one action
> >
> > I have one more question about this, if I define two <s:forms> in one
> page
> > would
> > they work with the same action class ?
> >
> > --
> > Thx, Milan Milanovic
> > ----- Original Message ----
> > From: Jim Kiley <jhkiley@(protected)>
> > To: Struts Users Mailing List <user@(protected)>
> > Sent: Monday, May 12, 2008 6:15:07 PM
> > Subject: Re: [struts 2] Two forms for one action
> >
> > Milan,
> >
> > I'm not a Struts 1 guy, so this advice might not be useful to you
> (because
> > you didn't say whether this was a Struts 1 or 2 situation). But in my
> Struts
> > 2 app I have plenty of places where I have multiple <s:submit> buttons
> each
> > triggering different action methods on the same action class.
> >
> > jk
> >
> >
> > On Mon, May 12, 2008 at 12:10 PM, Milan Milanovic <
> milanmilanovich@(protected)>
> > wrote:
> >
> >> Or maybe I should define two submit buttons for the same form and
> action
> >> class ?
> >> --
> >> Regards, Milan
> >>
> >>
> >> ----- Original Message ----
> >> From: Milan Milanovic <milanmilanovich@(protected)>
> >> To: Struts Users Mailing List <user@(protected)>
> >> Sent: Monday, May 12, 2008 5:57:50 PM
> >> Subject: [struts 2] Two forms for one action
> >>
> >> Hi,
> >> I need to have classic master/detail jsp page, so I need actually two
> >> forms in a jsp page to works with one action class,
> >> one main form that works with main elements of my object (e.g. User
> name,
> >> surname,...) for header and another one which works
> >> with some list that belongs to my main object (e.g., User.privileges)
> >> below such header part. How can I define this ?
> >> --
> >> Thx, Milan Milanovic
> >>
> >>
> >>
> >>
> _____________________________________________________________________________
> >> _______
> >> Be a better friend, newshound, and
> >> know-it-all with Yahoo! Mobile. Try it now.
> >> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >>
> >>
> >>
> >>
> >>
> _____________________________________________________________________________
> >> _______
> >> Be a better friend, newshound, and
> >> know-it-all with Yahoo! Mobile. Try it now.
> >> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >>
> >
> >
> >
> > --
> > Jim Kiley
> > Technical Consultant | Summa
> > [p] 412.258.3346 [m] 412.445.1729
> > http://www.summa-tech.com
> >
> >
> >
>
>
>
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information. If you are not the addressee, or if this
> Message has been addressed to you in error, you are not authorized to read,
> copy, or distribute it, and we ask that you please delete it (including all
> copies) and notify the sender by return email. Delivery of this Message to
> any person other than the intended recipient(s) shall not be deemed a waiver
> of confidentiality and/or a privilege.
>
>
>
>
>




Attachment: user_186436.ezm (zipped)

Hi,

We have a turbine web application. We want to add new features using
Struts2.
As struts2 uses servlet filters to serve the requests and the turbine
servlet serves the turbine requests, theortically this should work.

But tomcat gives "startup failed due to previous errors" without any error
messages

Can we use struts2 and turbine in the same application?

thanks in advance,
Krishna


--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_186437.ezm (zipped)
Arrrrgh.

Sorry I had to get that out. Thanks for the reply Laurie. You assumed right
­ no ajax and the error ws thrown on the redirect. I took your advice and
tried using firebug to get a look at the headers and to my surprise, it
works. So I tried IE, no problems again. It¹s only Safari that causes me
grief.

The problem I have is that the client is all Mac.

Has any body experienced anything similar. Clearly Safari is screwing
something up in the redirect that¹s causing struts to throw an exception.

Short of suggesting the client use Camino I¹m not sure where to go.

Here¹s the stack trace if it¹s any help.


  at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionI
nvocation.java:350)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:253)
  at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Validati
onInterceptor.java:150)
  at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.do
Intercept(AnnotationValidationInterceptor.java:48)
  at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:86)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(Con
versionErrorInterceptor.java:123)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Parame
tersInterceptor.java:167)
  at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:86)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(St
aticParametersInterceptor.java:105)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterce
ptor.java:83)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInt
erceptor.java:268)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDr
ivenInterceptor.java:74)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingIn
terceptor.java:115)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nIntercepto
r.java:143)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareIn
terceptor.java:121)
  at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:86)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletCon
figInterceptor.java:170)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Parame
tersInterceptor.java:167)
  at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:86)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasIntercep
tor.java:123)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(Ex
ceptionMappingInterceptor.java:176)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at com.sparecreative.AuthInterceptor.intercept(AuthInterceptor.java:101)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
  at
com.sparecreative.SpareCmsInterceptor.intercept(SpareCmsInterceptor.java:75)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
  at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
  at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
  at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.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.jav
a:419)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
  at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java
:118)
  at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter (PageFilter.java:
52)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
  at
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCle
anUp.java:99)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:175)
  at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:525)
  at
org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:568)
  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:286)
  at
org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:844)
  at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:583)
  at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  at java.lang.Thread.run (Thread.java:595)

>
> Zoran Avtarovski wrote:
>> > I¹m getting an error after uploading a file. Which manifests itself in my
>> > redirect action.
>> >
>> > I¹m using a simple post redirect pattern, where the file upload action
>> > redirects to a separate fileList action.
>> >
>> > After successfully uploading the file the browser is redirected to the
>> > appropriate action, but Tomcat throws a
>> > ³ the request was rejected because its size is unknown ³ exception. If I
>> > call the offending action from the browser it works fine.
>> >
>> > Here¹s the relevant snippet from my struts.xml file:
>> >
>> >      <action name="uploadFile" class="uploadFile">
>> >         <result name="input">/WEB-INF/cms/formFile.jsp</result>
>> >         <result name="success" type="redirect-action">
>> >           <param name="actionName">getFile</param>
>> >           <param name="namespace">/cms</param>
>> >         </result>
>> >      </action>
>> >
>> >
>> > Any ideas would be appreciated.
>
>
> Where is the exception thrown? During the first request before the
> redirect is sent? Or during the request resulting from the redirect? Is
> there any Ajax involved in handling the redirect? Assuming the exception
> happens in the redirected request and there's no Ajax, I'd suggest using
> LiveHeaders or Firebug in Firefox to examine the headers/body of the
> failing request to see if there's something quirky there.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>



Attachment: user_186439.ezm (zipped)
Further digging found that file uploads work fine with all browsers except
Safari Mac. Safari windows is fine as is Opera, IE and the Mozilla Browsers.

Does anybody know a good debugging tool for Safari?

Z.

Attachment: user_186438.ezm (zipped)
I've found the same code on Struts2 web page.
Thanks anyway


2008/5/14 krishna chary <krishnachary.udaram@(protected)>:

> use this code you will get session id
> code is....
>
> ServletActionContext.*getRequest*().getSession().getId();
>

Attachment: user_186440.ezm (zipped)
when I use intercepters in Struts.xml in Struts2 application for
validation,I got an

Exception starting filter struts

Unable to find interceptor class referenced by ref-name staticParams -
interceptor-ref -
file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/CAMPUZZ/WEB-INF/classes/struts.xml:26:55

at
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(
*InterceptorBuilder.java:50*)

at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(
*XmlConfigurationProvider.java:864*)

at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(
*XmlConfigurationProvider.java:699*)

at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(
*XmlConfigurationProvider.java:712*)

at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(
*XmlConfigurationProvider.java:733*)

at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(
*XmlConfigurationProvider.java:365*)

at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(
*XmlConfigurationProvider.java:239*)

at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(*
StrutsXmlConfigurationProvider.java:111*)

at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(*
DefaultConfiguration.java:152*)

at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(*
ConfigurationManager.java:52*)

at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(*
Dispatcher.java:398*)

at org.apache.struts2.dispatcher.Dispatcher.init(*Dispatcher.java:455*)

at org.apache.struts2.dispatcher.FilterDispatcher.init(*
FilterDispatcher.java:201*)



please help me thanks in advance
©2008 gg3721.com - Jax Systems, LLC, U.S.A.