Re: [S2] how do I handle upload larger than struts.multipart.maxSize

2007-02-16 Thread Nagraj Rao
cant we override the max size in the struts.properties file... i guess we should be able to... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] struts.configuration directive in struts.properties

2007-02-16 Thread Dave Newton
--- Ladda Filer <[EMAIL PROTECTED]> wrote: > 2. Can I implement an Interface and get rid of > struts.xml and simular files? http://cwiki.apache.org/WW/zero-configuration.html? d. Need Mail bonding? Go to th

suggested alternatives to struts-plugin

2007-02-16 Thread Martin Gainty
Good Evening All- The scenario is Spring 1.x framework with normal complement of IOC bells and whistles A colleague removes the struts-plugin from his project and noticed he lost capability for Action to reach context info from the webapp Replacing the struts-plugin did work... thankfully Is/Are

[S2] struts.configuration directive in struts.properties

2007-02-16 Thread Ladda Filer
Hi, 1. Can someone explain to me the good use of "struts.configuration" directive in struts.properties ? 2. Can I implement an Interface and get rid of struts.xml and simular files? 3. When I try to look for the default class org.apache.struts2.config.DefaultConfiguration() in the source tree

[S2] how do I handle upload larger than struts.multipart.maxSize

2007-02-16 Thread Ladda Filer
Hi, I use the default FileUploadInterceptor in Struts2 to handle multipart requests. When an upload exceeds the defined value of struts.multipart.maxSize I see this in my logs... 02:52:04,899 ERROR [MultiPartRequest] org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: th

[S2] Can't access plain jsp result after enabling Tiles2

2007-02-16 Thread Ladda Filer
Hi, I'm using the Struts 2.0.5 and Tiles 2 on a Jboss 405GA with Java 1.6 When I use tiles result from an action class it works fine, but when I don't want to use tiles (ie. a plain JSP page) I get a 404 File not found. I think I am adressing the JSP page correctly. result.jsp tile

Re: Control/Restrict number of users using the system

2007-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karsten, Karsten Voges wrote: > I do not know if there is such a possibility within struts, but you can > restrict the access via your configuration of tomcat. There is a > parameter for setting a max. connections. Note that this is not a limit on th

[OT] Re: [s2] Groovy Actions in Struts 2

2007-02-16 Thread Dave Newton
--- Ian Roughley <[EMAIL PROTECTED]> wrote: > > I'm not sure what you mean by that... it's just a > > class; it happens to be compiled on-the-fly during > > bean instantiation. Not much else is different. > Yes, but it feels to me like you are reaching back > into the business service tier to creat

Re: [s2] Groovy Actions in Struts 2

2007-02-16 Thread Ian Roughley
I also personally think that defining actions in a service tier doesn't "smell" right. I'm not sure what you mean by that... it's just a class; it happens to be compiled on-the-fly during bean instantiation. Not much else is different. Yes, but it feels to me like you are reaching bac

Re: [S2] Tiles vs. and Ajax?

2007-02-16 Thread Musachy Barroso
Start by trying the test case for the AnchorTag, pluging in your values and see what is the URL that it generates. musachy On 2/16/07, Dave Newton <[EMAIL PROTECTED]> wrote: Minor followup: I am now suspecting Weblogic 8.1(go freakin' figure; this whole day has been Weblogic 8.1 BS) as it turn

RE: [S2] Tiles vs. and Ajax?

2007-02-16 Thread Dave Newton
Minor followup: I am now suspecting Weblogic 8.1(go freakin' figure; this whole day has been Weblogic 8.1 BS) as it turns out I was deploying my prototype on Tomcat 5.5... When I copied my prototype directly into the app in which it was failing it fails w/ the same error even though it wasn't dupl

RE: [S2] Tiles vs. and Ajax?

2007-02-16 Thread Dave Newton
> From: Musachy Barroso [mailto:[EMAIL PROTECTED] > No idea. Are you using the latest from trunk? Yesterday I saw some > URLTag tests failing, not sure if it is somehow related. 2.0.5 :/ I was going to wait for the 2.0.6 drop, but thought maybe since it works w/o Tiles (and whatever else I've don

Re: [S2] Tiles vs. and Ajax?

2007-02-16 Thread Musachy Barroso
No idea. Are you using the latest from trunk? Yesterday I saw some URLTag tests failing, not sure if it is somehow related. musachy On 2/16/07, Dave Newton <[EMAIL PROTECTED]> wrote: Musachy say: > Are you getting any kind of error? Enable the Dojo debug, setting > debug="true" on the head tag

[s2] Adding ActionErrors / Messages with a named key

2007-02-16 Thread Eric Rank
Is there a way to associate an ActionError or ActionMessage with a named key in Struts 2? In struts 1 we can add ActionErrors / Messages with a named key. The lines of code below add a new error with the key "login" to the action: ActionMessages errors = new ActionMessages(); errors.add("lo

[s2] formbean reset() equivalent?

2007-02-16 Thread Mailing Lists
How do you initialize values to use in a form? I tried just initializing the value in the action and referencing it in the form, but the value is not set. In action: private String test = "tesing"; in form:

Re: DispatchAction and execute

2007-02-16 Thread Michael Jouravlev
execute() method is called for any action including DispatchAction. DispatchAction.execute() calls your event handles, but you can override it if you want. I suggest using EventDispatchAction instead of DispatchAction. Also, if you want to extend your own MyAncestor you can use EventDispatcher cl

Re: Interceptor to Autheticate User

2007-02-16 Thread Nuwan Chandrasoma
It looks like SystemUtil class is not available on the classpath. Regards, Nuwan. - Original Message - From: "manoj sinha" <[EMAIL PROTECTED]> To: Sent: Friday, February 16, 2007 2:17 PM Subject: Interceptor to Autheticate User Hi, Wiil appreciate if some one come with Solution!!

Re: [S2] Tiles vs. and Ajax?

2007-02-16 Thread Dave Newton
Musachy say: > Are you getting any kind of error? Enable the Dojo debug, setting > debug="true" on the head tag. No errors. The issue seems to be with the tag; it is quoting the correct URL and appending it to the current page's URL. http://localhost:7001/foo/curUrl%22/foo/rightUrl%22?dojoCach

Re: [S2] Tiles vs. and Ajax?

2007-02-16 Thread Musachy Barroso
Are you getting any kind of error? Enable the Dojo debug, setting debug="true" on the head tag. regards musachy Dave Newton wrote: I created a quick prototype using plain old JSP pages with some nested tabbedPanels, a div of which was loaded via Ajax. That div contained an tag that loaded ano

request-taglib: isUserInRole

2007-02-16 Thread Andreas . Hartmann
Hello! I have got an application, where users are authenticated with ldap firstly. Afterwards, there will be another database, which defines the roles, the user is in. When the user is logged in, the roles are read from this table and should be applied to struts, in order to use afterwards the t

DispatchAction and execute

2007-02-16 Thread Jean-Marie Pitre
Hi, I have a custom class MyAction which extends a custom ancestor MyAncestor. MyAncestor class extended Struts Action. I would like to use DispatchAction so my Ancestor extends now DispatchAction. I would like to still use execute method to do some jobs. Is it possible to use DispatchAction

Struts best practice

2007-02-16 Thread Zhang, Larry \(L.\)
What logic should be typically added into the CustomRequestProcessor? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Postback forms not working with my tiles configuration

2007-02-16 Thread Niall Pemberton
Struts 1.3.x introduced the ComposaleRequestProcessor based on Commons Chain - Post Back forms were only implemented as a Command used by the ComposaleRequestProcessor and not in the original RequestProcessor/TilesRequestProcessor flavours. You are specifying using the TilesRequestProcessor in you

Postback forms not working with my tiles configuration

2007-02-16 Thread Smyth, Colm
Hi All, I'm having problems using Postback forms with my tiles configuration. I am using the html-form.jsp from the examples as my postback form. This is working fine when run from within the examples jar however it fail with the shown below error when placed inside my own struts-config. I hav

RE: I18N Problems

2007-02-16 Thread Juan Espinosa
In the jsp im localizing using this... I think you are right "getText" depends on ActionSupport but im not pass throw an acttion.how could i do to get i18n work properly when i call a jsp throw an struts action that has no Action class itself Regards, juan -Mensaje origin

Re: Control/Restrict number of users using the system

2007-02-16 Thread Karsten Voges
I do not know if there is such a possibility within struts, but you can restrict the access via your configuration of tomcat. There is a parameter for setting a max. connections. Or you solve it programmatically by saving a variable in you servletContext increamenting after each login, but I am

Control/Restrict number of users using the system

2007-02-16 Thread ruchira
hi, My problem is that i want to restrict no of user to use application. right now our application can be use by any no of user .i want to restrict no of user for example if i want to restrict 50 user then 51st user cant be able to use system. Thanks and Regards Ruchira -- View th