RE: [Struts2] problem with s:select tag

2007-12-17 Thread Rajasekhar
hi Raghuveer you can solve your problem through call prepare() method again means in action method before return String like SUCCESS OR INPUT OR LOGIN call prepare() method once again it will display select component values perfectly as normally. -Original Message- From:

ExceptionHandling in Struts2.0

2007-12-17 Thread Rajasekhar
hi how can i use Exception Handling in struts2.0 does anyone have information pls send me Best Regards, Rajasekhar Yenduva B.tech(IT), Jr J2EE Developer, Miracle Software Systems, Inc Website: www.miraclesoft.com Email: [EMAIL PROTECTED] Work: 248-233-1814 Mobile: 9290842877

Dojo Jars for Struts2

2007-12-17 Thread Rajasekhar
Hi How can i dowload DojoJars For Struts2.0 does anyone have information pls send me Best Regards, Rajasekhar Yenduva B.tech(IT), Jr J2EE Developer, Miracle Software Systems, Inc Website: www.miraclesoft.com Email: [EMAIL PROTECTED] Work: 248-233-1814 Mobile: 9290842877

RES: RES: Guice ObjectFactory injection into XWorkConverter problem (was Re: Struts + Xwork + xwork-conversion.properties)

2007-12-17 Thread volnei Granado Munhoz
Hi Jeromy, the same error happen when use struts 2.0.11 ou 2.0.9. Thanks! -Mensagem original- De: Jeromy Evans [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 14 de dezembro de 2007 19:59 Para: Struts Users Mailing List Assunto: Re: RES: Guice ObjectFactory injection into

Re: Image Upload and Dojo

2007-12-17 Thread jogep
I found this Workaround: script type=text/javascript dojo.require(dojo.io.IframeIO); function sendIt(){ var bindArgs = { transport: IframeTransport, formNode: document.getElementById(myform), mimetype: text/html, load: function(type, data, evt){

[S2] Result annotation - possibility to pass method as parameter?

2007-12-17 Thread wild_oscar
When using Result annotations to configure Actions, is it possible to pass the method as a parameter in the actionchainresult? Say you have one action and want to chain it to another action. You use: @Result(name=send,type=ActionChainResult.class,value=actionName) Unfortunately, this will send

Re: ExceptionHandling in Struts2.0

2007-12-17 Thread Gabriel Belingueres
http://struts.apache.org/2.0.11/docs/exception-configuration.html 2007/12/17, Rajasekhar [EMAIL PROTECTED]: hi how can i use Exception Handling in struts2.0 does anyone have information pls send me Best Regards, Rajasekhar Yenduva B.tech(IT), Jr J2EE Developer, Miracle Software

Re: ExceptionHandling in Struts2.0

2007-12-17 Thread Martin Gainty
use the pre-configured interceptor (from struts-default.xml)interceptor name=logger class=com.opensymphony.xwork2.interceptor.LoggingInterceptor/and use it in your action class to catch exceptions!-- prints out a message before any more interceptors continue and after they have finished --

Re: Dojo Jars for Struts2

2007-12-17 Thread Dave Newton
There's no such thing as Dojo jars. First of al, Dojo is JavaScript. Second of all, Dojo is included in the Struts 2 core jar. d. --- Rajasekhar [EMAIL PROTECTED] wrote: Hi How can i dowload DojoJars For Struts2.0 does anyone have information pls send me Best Regards,

Re: New to Struts

2007-12-17 Thread Ian Roughley
bhaarat Sharma wrote: I am reading Practical struts2 web 2.0 projects book. I dont have a lot of nice things to say Please contact me off list. I am interested in why you have this opinion. about the book but its practically the complete struts2 book thats out there.

Re: ExceptionHandling in Struts2.0

2007-12-17 Thread Dave Newton
--- Martin Gainty [EMAIL PROTECTED] wrote: use the pre-configured interceptor (from struts-default.xml) interceptor name=logger class=com.opensymphony.xwork2.interceptor.LoggingInterceptor/and use it in your action class to catch exceptions!-- prints out a message before any more

Re: New to Struts

2007-12-17 Thread Dave Newton
--- Ian Roughley [EMAIL PROTECTED] wrote: bhaarat Sharma wrote: I am reading Practical struts2 web 2.0 projects book. I dont have a lot of nice things to say Please contact me off list. I am interested in why you have this opinion. Doesn't mean he has *bad* things to say ;) d.

RE: Dojo Jars for Struts2

2007-12-17 Thread Engelking, Nicholas
Maybe he means the jars for the dojo plugin on the 2.1 line? There are no nightlies for any of the plugins. They need to be built from source. -nick -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: December 17, 2007 9:14 AM To: Struts Users Mailing List Subject: Re:

RE: Dojo Jars for Struts2

2007-12-17 Thread Dave Newton
--- Engelking, Nicholas [EMAIL PROTECTED] wrote: Maybe he means the jars for the dojo plugin on the 2.1 line? There are no nightlies for any of the plugins. They need to be built from source. Ah, that could be--makes sense. Thanks! d. -nick -Original Message- From: Dave Newton

Re: Re: Is struts 1.X has JAAS integration API?

2007-12-17 Thread Paul Benedict
Write yourself a filter. The filter should wrap the HttpServletRequest object (JEE HttpServletRequestWrapper class) and also contain a reference to the user's credentials. Just override isUserInRole to provide your logic. Paul On Dec 17, 2007 12:31 AM, 张云勇 [EMAIL PROTECTED] wrote: Sorry for

Make struts 1 skip outputting context path?

2007-12-17 Thread struts
Hi, We have a webapplication using struts 1.2.9, and this webapp is under context /some-name in tomcat. However in front of tomcat we have apache, and it mapps the domain name some-name.com to /some-name. This works great, except when it comes to struts. Since struts notice that the

Re: Make struts 1 skip outputting context path?

2007-12-17 Thread Paul Benedict
Can't this be solved with URL rewriting? Configure Apache to send all requests from /* to /some-name/* Will this work? Paul On Dec 17, 2007 10:09 AM, [EMAIL PROTECTED] wrote: Hi, We have a webapplication using struts 1.2.9, and this webapp is under context /some-name in tomcat. However in

Exception Handling keeping user input

2007-12-17 Thread Jeremy JGR. Grumbach
Hi, Let's take the following scenario: we have a database which manage car models (for example Dogde Viper). The column name of the car model table must be unique. The user wants to add a car model in the database, thus he has an add screen containing all the fields of the car model and a Save

ServletConfigInterceptor

2007-12-17 Thread Adam Hardy
I'm doing a project which is still fairly new and I want to spare myself the hassle of logging in so often, but I need the UserPrincipal for the back-end. I was wondering whether there is dummy version of ServletConfigInterceptor that also fixes up Acegi's SecurityContext with a user

Re: Exception Handling keeping user input

2007-12-17 Thread Dave Newton
Sure; catch the exception in your Action, which IMO is what should happen anyway. This is a gray area of design for me; I am not convinced that this is exceptional behavior. That aside, business-level exceptions should (IMO, of course :) be caught by actions--*real* exceptions, like a database

UEL and Struts 2.x

2007-12-17 Thread Alberto A. Flores
Are there any plans (on the Struts2 team) to address the problem that comes with UEL expressions (JSP 2.1 - JSR-245) in using the # symbol? I'm currently using such symbol to get access to request attributes (so my Struts2 tags can read values from request scoped beans), by doing the

Re: UEL and Struts 2.x

2007-12-17 Thread Wes Wannemacher
You will be okay, AFAIK, the symbol clash is with '#{' which OGNL uses to create anonymous maps/lists. Your usage will be okay since it doesn't invoke UEL. -Wes On 12/17/07, Alberto A. Flores [EMAIL PROTECTED] wrote: Are there any plans (on the Struts2 team) to address the problem that comes

Re: UEL and Struts 2.x

2007-12-17 Thread Alberto A. Flores
Good to know... Thanks! Wes Wannemacher wrote: You will be okay, AFAIK, the symbol clash is with '#{' which OGNL uses to create anonymous maps/lists. Your usage will be okay since it doesn't invoke UEL. -Wes On 12/17/07, Alberto A. Flores [EMAIL PROTECTED] wrote: Are there any plans (on the

Re: New to Struts

2007-12-17 Thread Ian Roughley
Dave Newton wrote: --- Ian Roughley [EMAIL PROTECTED] wrote: bhaarat Sharma wrote: I am reading Practical struts2 web 2.0 projects book. I dont have a lot of nice things to say Please contact me off list. I am interested in why you have this opinion. Doesn't mean he

Struts 2.x: Redirecting input result

2007-12-17 Thread Alberto A. Flores
Is it possible to redirect the input result (after validation has finished) of an action mapping properly? I currently have something like: action name=bar class=x.y.z.ActionOne result type=tilesshowList.tile/result /action action name=foo class=x.y.z.MyAction result name=input

OpenSessionInView with Struts 2.x

2007-12-17 Thread Alberto A. Flores
Is anyone using openSessionInView with Struts 2 (Hibernate, Spring)? I've found a problem where a domain model is still persisted (even though I'm not saving it) after validation finishes (showing validation errors). My prepare method makes a query (using a HibernateTemplate().get() method)

Re: OpenSessionInView with Struts 2.x

2007-12-17 Thread Jeromy Evans
That's correct - if you make an entity dirty while it's attached to a session the changes will be committed when the session is flushed. You've made an attached object dirty, so you either have to detach it when validation fails or force hibernate not to commit it (don't allow it to flush).

RE: Struts 2.x: Redirecting input result

2007-12-17 Thread Hodgins, Grant
I believe this is expected behavior. The redirect-action / redirectAction type will lose the context of the initial request since the redirect literally spawns a new request. I've used type=chain to remedy this issue. Perhaps the experts would suggest otherwise. Cheers, Grant -Original

Re: Struts 2.x: Redirecting input result

2007-12-17 Thread Adam Hardy
Alberto A. Flores on 17/12/07 21:06, wrote: Is it possible to redirect the input result (after validation has finished) of an action mapping properly? I currently have something like: action name=bar class=x.y.z.ActionOne result type=tilesshowList.tile/result /action action name=foo

Re: OpenSessionInView with Struts 2.x

2007-12-17 Thread Adam Hardy
I used an interesting architecture recently where the model was the only layer allowed to edit the POJOs. The model passed out objects showing only an interface with getters on. The MVC layer couldn't change anything if it wanted to. This was a security issue, because the model layer inherently

How can I pass parameters between actions

2007-12-17 Thread Ray
Hi, everyone How can I pass parameters between actions. For example, there is a parameter username in firstAction, and I want to use this value in secondAction How can I get the username value in the secondAction Would anyone give some sample code. Thx. -- Ray Chen Email:[EMAIL PROTECTED]

RE: Is Struts2 ready for prime time?

2007-12-17 Thread Sekhar, Raja
Yes technically one could do all this struts1 as well, but only the ease at which we can get it done... But not everything is leveraged in struts1 Take this for example, | ActionSupport |

Re: Exception Handling keeping user input

2007-12-17 Thread Gary Affonso
Jeremy JGR. Grumbach wrote: Let's take the following scenario: we have a database which manage car models (for example Dogde Viper). The column name of the car model table must be unique. The user wants to add a car model in the database, thus he has an add screen containing all the fields of

Re: Exception Handling keeping user input

2007-12-17 Thread Gary Affonso
To follow up on my previous post, here's some code from a showForm action that does exactly what I described... public void prepare() { if(session.get(SignUpFormBean.SESSION_KEY) == null) { // they're here for the first time. do nothing (leave the signUpFormBean model