Re: [struts] validation and action names with slashes

2008-06-19 Thread Dale Newfield
Roberto Nunnari wrote: ..but in order to add declarative validation, that would require a file named: CategoryAction/create-validation.xml but '/' is not a character allowed in filenames. Did you actually try putting the validation file at CategoryAction/create-validation.xml (i.e.: in a subd

Re: validation and action names with slashes

2008-06-19 Thread Roberto Nunnari
Anybody on this, please? -- Robi Roberto Nunnari wrote: Hello. I'd like to use declarative Action-alias field validation for several Actions/methods in my S2 webpapp. S2 let's me do in struts.xml elegant things like: ... .. my results.. ... and then use it in my jsps: ..bu

Re: Rest plugin and binary data

2008-06-19 Thread Jeromy Evans
Mike Watson wrote: Hi Folks, I'm trying to figure out how to return binary data from the REST plugin. I'd like to be able to return images that are generated on the fly by a REST request but looking at ContentTypeHandlerManager, it assumes that we'll only ever want to return a string and so pas

Re: OT: issue porting AppFuse basic to S2.1.2

2008-06-19 Thread dusty
It is part of the codebehind plugin, that is a dependency of appfuse. Giovanni Azua-3 wrote: > > Resolved ... in the web.xml struts filter was missing the newly required > "actionPackages" parameter. > > Is this new to 2.1.2 or? I currently use 2.1.1 and did not have that > problem ... > >

Rest plugin and binary data

2008-06-19 Thread Mike Watson
Hi Folks, I'm trying to figure out how to return binary data from the REST plugin. I'd like to be able to return images that are generated on the fly by a REST request but looking at ContentTypeHandlerManager, it assumes that we'll only ever want to return a string and so passes a StringWriter as

Re: Struts2 annotation based TLD generation using Ant

2008-06-19 Thread Musachy Barroso
Get it from here: http://repo1.maven.org/maven2/org/apache/struts/struts-annotations/ musachy On Thu, Jun 19, 2008 at 2:56 PM, Dmitriy Kuznetsov <[EMAIL PROTECTED]> wrote: > > > > Musachy Barroso wrote: >> >> The Ant Apt task would be a way: >> http://ant.apache.org/manual/CoreTasks/apt.html >>

Re: Struts2 annotation based TLD generation using Ant

2008-06-19 Thread Dmitriy Kuznetsov
Musachy Barroso wrote: > > The Ant Apt task would be a way: > http://ant.apache.org/manual/CoreTasks/apt.html > > musachy > > Thanks. Could you please explain some details: 1. I found source code of TLDAnnotationProcessorFactory and some related classes at https://issues.apache.org/struts

Re: Struts2 annotation based TLD generation using Ant

2008-06-19 Thread Musachy Barroso
The Ant Apt task would be a way: http://ant.apache.org/manual/CoreTasks/apt.html musachy On Thu, Jun 19, 2008 at 2:28 PM, Dmitriy Kuznetsov <[EMAIL PROTECTED]> wrote: > > Struts2 TLD files are generated by maven. I will not use maven on current > project, so how to run the same task from Ant? >

Struts2 annotation based TLD generation using Ant

2008-06-19 Thread Dmitriy Kuznetsov
Struts2 TLD files are generated by maven. I will not use maven on current project, so how to run the same task from Ant? Probably, the following part of pom.xml allows maven to do it: org.apache.myfaces.tobago maven-apt-plugin 1.0.15

Re: OT: issue porting AppFuse basic to S2.1.2

2008-06-19 Thread Giovanni Azua
Resolved ... in the web.xml struts filter was missing the newly required "actionPackages" parameter. Is this new to 2.1.2 or? I currently use 2.1.1 and did not have that problem ... regards, Giovanni - To unsubscribe, e-mail

Error replicating sessions with Struts 2 framework java application

2008-06-19 Thread Ildefonso Montero
Hi, we are having a problem when balancing Tomcat session among to clusters. Architecture is the following: Apache (A) balancing 50-50 over Tomcat (1) and Tomcat (2). We are working on a big application and we saw that the session is not replicated properly because we are doing one request for ea

Replication problem Struts2 + Tomcat

2008-06-19 Thread Ildefonso Montero
Hi ! I´m trying to replicate an object stored in a session in the following architecture: Apache Balancer (50%) / \ Tomcat 5.5 Tomcat 5.5 The problem is that the replication of an object accesed by means of session.getAttribute("name-of-object"), i

OT: issue porting AppFuse basic to S2.1.2

2008-06-19 Thread Giovanni Azua
hi, Attempting to port AppFuse appfuse-basic-struts generated project to S2.1.2 and after following some of the known migration steps I get to the following stack trace when running the application with "mvn jetty:run-war": "... No mapping found for dependency [type=java.lang.String, name='ac

Struts 2.0.11.1 Fileupload issue

2008-06-19 Thread Struts Two
I am using the file upload and I have the folloiwng issues and I do not know why this is happening. Whenever the file size exceeds the configured size no field error is set. Looking at the source code, if your action implements "Validation aware" interface, then it should be set. Since my action

Re: Struts Welcome page

2008-06-19 Thread Al Sutton
Most of the work is being put into Struts 2 now. If you'd like to start fixing the bugs listed against 1.3.9 feel free. Al. ratm wrote: Struts 1.3.9 beta has been released on 01 Aug 2007 (almost one year !) When the Struts 1.3.9 GA release will be done ? Why in struts jar name there no "beta"

Package level Variable

2008-06-19 Thread Prashant Saraf
Hi, Can we create a variable which can be access at package level? If use exit from package level then that variable get removed from session. Regards Prashant Saraf

Re: Struts Welcome page

2008-06-19 Thread ratm
Struts 1.3.9 beta has been released on 01 Aug 2007 (almost one year !) When the Struts 1.3.9 GA release will be done ? Why in struts jar name there no "beta" tag appears ? Thanks for responses, Anthony. newton.dave wrote: > > --- On Thu, 6/19/08, ratm <[EMAIL PROTECTED]> wrote: >> The Struts

Re: Struts Welcome page

2008-06-19 Thread Dave Newton
--- On Thu, 6/19/08, ratm <[EMAIL PROTECTED]> wrote: > The Struts Welcome page: http://struts.apache.org/ talk about > struts 1.3.9 like a beta version. Is it true? AFAIK S1.3.9 is beta, S1.3.8 is the current S1 GA, just like it says. Dave ---

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-19 Thread xianwinwin
I did, and it doesn't work, when I click submit, I immediately get a red message next to the required fields...but not next to the date. Lukasz Lenart wrote: > > Hi, > > Did you try > @RequiredFieldValidator(type = ValidatorType.SIMPLE, fieldName = > "customfield", message = "You must enter

Re: programatically unload action

2008-06-19 Thread Musachy Barroso
you could try this for kicks: add this to your action: @Inject public void setConfiguration(Configuration config) { PackageConfig pckConfig = config.getPackageConfig(myNameSpace); //try to remove action from the pckConfig pckConfig.getActionConfigs().remove(myActionNam

[S2] adding interceptor to all my actions

2008-06-19 Thread Paweł Wielgus
Hi all, i'm trying to add my own interceptor to all of my actions. I know that i can define new package ("default") and redefine default interceptor stack and then add @ParentPackage("default") to all my actions, but the question is how to do it in one place without having to add ParentPackage in a

Struts Welcome page

2008-06-19 Thread ratm
Hello, The Struts Welcome page : http://struts.apache.org/ http://struts.apache.org/ talk about struts 1.3.9 like a beta version. Is it true ? If it's wrong should anyone of apache struts correct this page. Best Regards Anthony -- View this message in context: http://www.nabble.com/Stru

programatically unload action

2008-06-19 Thread Chris Pat
Hello Is/how possible to unload an action? I am using TC5.028. This is for demo only, I will fix it in production, but need it now. Thank you for any enlightment

Re: Servlet class doesnt load my gwt-dev-windows.jar, gwt-user.jar

2008-06-19 Thread Nils-Helge Garli Hegvik
The error message is pretty descriptive. A good start would be to check out section 9.7.2 of the servlet 2.3 spec [1]. I would also try to open the jar file and see what kind of classses are inside it. Nils-H [1] - http://jcp.org/aboutJava/communityprocess/final/jsr053/index.html On Thu, Jun 19,

Re: Servlet class doesnt load my gwt-dev-windows.jar, gwt-user.jar

2008-06-19 Thread Musachy Barroso
Not an struts question, but, did you check that section of the spec? musachy On Thu, Jun 19, 2008 at 9:09 AM, Dhandapani Ponnurangam <[EMAIL PROTECTED]> wrote: > Hi all, > > Am using J2EE 1.5, Servlet 2.4, JSP 2.0 and am trying to plugin GWT into > Struts 2.0 > > I find my gwt jars not loaded due

Servlet class doesnt load my gwt-dev-windows.jar, gwt-user.jar

2008-06-19 Thread Dhandapani Ponnurangam
Hi all, Am using J2EE 1.5, Servlet 2.4, JSP 2.0 and am trying to plugin GWT into Struts 2.0 I find my gwt jars not loaded due to some reason and following is the error message i get INFO: validateJarFile(C:\Netbeans\StrutsWithGWT2Tomcat\build\web\WEB-INF\lib\gwt-dev-windows.jar) - jar not loaded

RE: Logging For SEVERE: Error filterStart

2008-06-19 Thread Paul Zepernick
I have downloaded jasper reports 2.0.5 and put all necessary depenendencies (as far as I can tell from this http://www.jasperforge.org/jaspersoft/opensource/business_intelligence/jasperreports/requirements.html) in the lib folder. Does anyone know how to possibly generate a class not found err

[S2] Validator Framework

2008-06-19 Thread Hoying, Ken
I would like to use the Struts2 validation classes "outside" of Struts2. What I would like to do specifically is use the UrlValidator to test a string to determine if it is a URL and if it is create the link and if not just display the value. I would like to use the validator for this since we us

validation and action names with slashes

2008-06-19 Thread Roberto Nunnari
Hello. I'd like to use declarative Action-alias field validation for several Actions/methods in my S2 webpapp. S2 let's me do in struts.xml elegant things like: ... .. my results.. ... and then use it in my jsps: ..but in order to add declarative validation, that would require