Re: execAndWait INTERCEPTOR

2007-05-19 Thread Mansour
It's really funny: If I get the waiting screen it stays there and no further thing is rendered. If I click refresh, the results I am expecting are displayed. If I click refresh again the waiting, another refresh gives the results. Between each refresh there's around 30 seconds, and the operatio

Re: S2 - for a StreamResult parameters dynamics

2007-05-19 Thread Jeromy Evans
I'm not sure if you're proposed change is an improvement or not, but in 2.06 dynamic parameters do work for contentType, contentLength, contentDisposition and the input stream name. ie. I use this: myStream ${contentType} ${contentLength} attachment; filename=${filename} where contentType

Re: How to get Exception info when I use global exception mappings?

2007-05-19 Thread kongxx
Thanks for your help, I got it. Guillaume Carré wrote: > > 2007/5/19, Kristian Duske <[EMAIL PROTECTED]>: >> See here: >> http://struts.apache.org/2.0.6/docs/exception-interceptor.html >> >> It's on the value stack, wrapped in an instance of ExceptionHolder. > > and see here too: > > http://s

execAndWait INTERCEPTOR

2007-05-19 Thread Mansour
It's not working. The only thing that is working is the execute part. lol It waits there for ever, and the page doesn't display the action results. It only shows the waiting page. Other actions just crach. /pages/wait.jsp

S2 - for a StreamResult parameters dynamics

2007-05-19 Thread Pedro Herrera
I need to pass dynamic parameters for a DownLoadFile Action. I´ve seen the source of StreamResult and for example : oResponse.setContentType(conditionalParse(contentType, invocation)); in my opinion, the correct shoud be : oResponse.setContentType( (String) invocation.getSt

Re: [S2] field-validator regex ignoring given message

2007-05-19 Thread Will Smith
On 5/19/07, Paolo Beccari <[EMAIL PROTECTED]> wrote: Hi all, I'm a S2 newbie. Trying to validate input in a *-validation.xml, and found a strange behaviour: [0-9] id is not a numeric value

Re: Hibernate headache with struts 2

2007-05-19 Thread Martin Gainty
Attempting to instantiate all of your Hibernate generated Parent and Child classes by continously running all of your sessions together.. so referencing http://www.hibernate.org/43.html You *could* write your own SessionRequestServletFilter which will accomplish this objective for you (ensuring

Re: Handling requests through servlets vs struts action class ?

2007-05-19 Thread Craig McClanahan
On 5/18/07, jasdeep <[EMAIL PROTECTED]> wrote: But then i thought it may have serious performance penalty as struts action is using single thread model (AFAIK). This is not a correct assumption. In Struts 1, there is a single *instance* of each Action, but it can be processing multiple reques

[OT] Re: Hibernate headache with struts 2

2007-05-19 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > Is this a struts 2 issue? No. It's a very basic Hibernate issue. http://www.hibernate.org/hib_docs/v3/reference/en/html/transactions.html > every thing suggest using spring. This is not an > option for me. Why not? Aren't you already using it or a simil

Re: Hibernate headache with struts 2

2007-05-19 Thread Martin Gilday
Looks like you are trying to access Hibernate managed objects or perform session manipultion in your view. Spring makes this easier but you can do it manually easily. You just need to keep your session open longer. Have a google for things like open session in view filter. - Original messa

Hibernate headache with struts 2

2007-05-19 Thread Mansour
I am trying to use hibernate with my struts project. The problem I keep on getting : javax.servlet.ServletException: org.hibernate.SessionException: Session is closed! org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:518) org.apache.struts2.dispatcher.Fi

Re: [OT] Re: frames

2007-05-19 Thread Mansour
jalal udeen: We need more info to be able to help. What version of struts are you using. If you you are using struts 2, then you can use the target attribute in the same way you use html. So, in your form tag you need to use the attribute target like this: for more info about this ch

[S2] field-validator regex ignoring given message

2007-05-19 Thread Paolo Beccari
Hi all, I'm a S2 newbie. Trying to validate input in a *-validation.xml, and found a strange behaviour: [0-9] id is not a numeric value When i test validation, the "required" key is shown correc

[OT] Re: frames

2007-05-19 Thread Dave Newton
--- jalal udeen <[EMAIL PROTECTED]> wrote: > how can i use frame using struts in jsp > its an urgent requirement I am most definitely *not* speaking for everyone on the newsgroup, but I really think you need to explore other options for asking non-Struts related questions. If you want to pay me

Refreshing problem

2007-05-19 Thread jalal udeen
hi all when i refresh a page i get the same data in the data base when i redirected the page its is emty it s has no data pls help me thanks Jalal

Re: How to get Exception info when I use global exception mappings?

2007-05-19 Thread Guillaume Carré
2007/5/19, Kristian Duske <[EMAIL PROTECTED]>: See here: http://struts.apache.org/2.0.6/docs/exception-interceptor.html It's on the value stack, wrapped in an instance of ExceptionHolder. and see here too: http://struts.apache.org/2.x/docs/exception-configuration.html -- Guillaume Carré

frames

2007-05-19 Thread jalal udeen
hi how can i use frame using struts in jsp its an urgent requirement thanks Jalal

Re: How to get Exception info when I use global exception mappings?

2007-05-19 Thread Kristian Duske
Hi, Here, it can redirect to error page when some exception occures. My question is: how can I get the exception info in the jsp page? For example, I hope display the exception message or exception stack in the jsp page. See here: http://struts.apache.org/2.0.6/docs/exception-interceptor.ht

Re: Handling requests through servlets vs struts action class ?

2007-05-19 Thread Jeromy Evans
There should be no additional concurrency limitations for struts actions as for any request handled by other servlet implementations. It's the container that determines how each request is handled. In the simplest case it will use a thread per request drawn from an available thread pool. Strut

How to get Exception info when I use global exception mappings?

2007-05-19 Thread kongxx
I use "global-exception-mappings" to catch global exception in my project. for example, in my struts config file, I use following to handle exception /common/exception.jsp /common/myexception.jsp