Re: StandardWrapperValve[DBProxyServlet]Servlet.service() for servlet
That's a class in Tomcat, not Struts. Looks like you're datasource is misconfigured. Please ask on the tomcat users list. Thanks On Jan 24, 2008 12:29 AM, yogeerocks [EMAIL PROTECTED] wrote: StandardWrapperValve[DBProxyServlet]: Servlet.service() for servlet DBProxyServlet threw exception java.lang.NullPointerException PLEASE HELP ME TO SOLVE THIS PROBLEMM SIR PLEASE thankss -- View this message in context: http://www.nabble.com/StandardWrapperValve-DBProxyServlet-Servlet.service%28%29-for-servlet-tp15059002p15059002.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Maven problems to startup a new project
I also thought 2.0.11-SNAPSHOT was available, but no so (unless you install it locally yourself) Instead, use the maven command on this page: http://struts.apache.org/2.x/docs/ready-set-go.html On Jan 22, 2008 7:10 AM, Alexander Jede [EMAIL PROTECTED] wrote: Hi list, I tried to create a new project with maven. That for I entered: mvn archetype:create -DgroupId=com.myCompany.mySystem \ -DartifactId=myWebApp \ -DarchetypeGroupId=org.apache.struts \ -DarchetypeArtifactId=struts2-archetype-starter \ -DarchetypeVersion=2.0.11 but as a result I only get an error: - % [ERROR] BUILD FAILURE [INFO] [INFO] Invalid task 'artifactId=myWebApp': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal - % If I add the -e switch I get the following message: - % [INFO] Trace org.apache.maven.BuildFailureException: Invalid task 'artifactId=myWebApp': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) - % Can anyone help me please? I use: $ mvn --version Maven version: 2.0.8 Java version: 1.6.0 OS name: linux version: 2.6.23-1-amd64 arch: amd64 Family: unix Thanks a lot Alex -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring MVC Struts 2 Pros/Cons
The fact is that Struts 2 is your best choice if you are limited to Java Web Frameworks. On Jan 22, 2008 8:26 AM, hoffmandirt [EMAIL PROTECTED] wrote: What are the pros and cons, in your opinion, when choosing Struts 2 over Spring or Spring over Struts 2? I am trying to determine which framework to select and the last one I used was Spring 1.x and I liked it a lot. So I am a little biased and I want to jump the gun and use Spring, but I want to make sure because it seems like Struts 2 has a lot to offer and is very similar to Spring. So I want to hear the best and the worst from both frameworks. So what do you guys think? -- View this message in context: http://www.nabble.com/Spring-MVC---Struts-2-Pros-Cons-tp15018505p15018505.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring MVC Struts 2 Pros/Cons
You are kidding ... right? Have you even downloaded and tried the top 5 web frameworks? What are you looking for in a web framework? What matters to you? I can promise you that Struts provides what *I* need and that's why *I* am here. However, you will find people with EXACTLY the same opinion in those other frameworks community. On Jan 22, 2008 9:42 AM, hoffmandirt [EMAIL PROTECTED] wrote: Why? jmitchell wrote: The fact is that Struts 2 is your best choice if you are limited to Java Web Frameworks. On Jan 22, 2008 8:26 AM, hoffmandirt [EMAIL PROTECTED] wrote: What are the pros and cons, in your opinion, when choosing Struts 2 over Spring or Spring over Struts 2? I am trying to determine which framework to select and the last one I used was Spring 1.x and I liked it a lot. So I am a little biased and I want to jump the gun and use Spring, but I want to make sure because it seems like Struts 2 has a lot to offer and is very similar to Spring. So I want to hear the best and the worst from both frameworks. So what do you guys think? -- View this message in context: http://www.nabble.com/Spring-MVC---Struts-2-Pros-Cons-tp15018505p15018505.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Spring-MVC---Struts-2-Pros-Cons-tp15018505p15019891.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S1] json and Action execute()
Take a look at this page: http://cwiki.apache.org/S2PLUGINS/json-plugin.html (Specifically Root Object) It should match your result type name On Jan 22, 2008 4:09 PM, auz [EMAIL PROTECTED] wrote: i have a problem with struts action form execute and json. im using ext js as mu ajax lib on client side and i need to retrive some departmentID and name depenting on a combo box, the problem is i dont know how to put JSonObect so that ext can see it here's my code any help is apritiated on jsp page - this is ext js script var departmentStore = new Ext.data.Store({ reader: new Ext.data.JsonReader({ totalProperty: 'total', root:'list' }, [{name: 'name'}]) }) var departmentCombo = new Ext.form.ComboBox({ store:departmentStore, displayField:'name', valueField: 'name', hiddenName : 'city', typeAhead: true, mode: 'local', triggerAction: 'all', width:150, emptyText:'select a city', applyTo:'department', selectOnFocus:true }); studyProgramCombo.on('select', function () { departmentCombo.reset(); departmentCombo.store.proxy= new Ext.data.HttpProxy({disableCaching:false,url: selfURI + 'JSONGetDepartment?studyProgram.json={studyProgram:{studyProgramID:' + studyProgramCombo.getValue() + '}}'}); searchCityCombo.store.load(); }); //the rest of the jsp code is irelevant NOTE selfURI variable is set to http://SERVERADDRESS/PROJECTNAME/ Struts Action execute code JSONArray list = new JSONArray(); JSONObject obj = new JSONObject(); while(result.next()) { obj.put(uid, result.getInt(departmentID)); obj.put(name, result.getString(name)); list.put(obj); } JSONObject rslt = new JSONObject(); rslt.put (total, list.length()); rslt.put(list, list); request.setAttribute(, rslt.toString()); //this name is unknown, i dont know what to put here return null; what did i do wrong/ didnt do? tnx a lot -- View this message in context: http://www.nabble.com/-S1--json-and-Action-execute%28%29-tp15028395p15028395.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] [S1] json and Action execute()
Doh! Sorry. On Jan 22, 2008 4:21 PM, Dale Newfield [EMAIL PROTECTED] wrote: James Mitchell wrote: Take a look at this page: http://cwiki.apache.org/S2PLUGINS/json-plugin.html The OP specified struts1 in the subject. -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New Struts2 Book : Feedback Requested
Looks to be so .. Struts2 Guide for Web Application Developers is a free Struts2 book made available through http://www.struts2.org. On Jan 21, 2008 3:15 AM, Alvaro Sanchez-Mariscal [EMAIL PROTECTED] wrote: http://www.struts2.org/free-struts2-book/ Will it be free? Alvaro. -- Alvaro Sanchez-Mariscal Arnaiz Java EE Architect Instructor [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [JAR -CLASSPATH] class-path how to
I have a cat that won't come when I call it. Can you (temp temp) help me with this? -- James Mitchell On Jun 11, 2007, at 12:03 AM, temp temp wrote: I have a jar file it has the follwing structure META-INF lib com This is my manifest.mf file. Manifest-Version: 1.0 Main-Class: project.converter.Test Class-Path: lib/converter-actions-xsd.jar;lib/commons- lang-2.3.jar;lib/commons-io-1.3.1.jar; lib/xbean.jar; I run jar file using command java –jar converter.jar I get class not found exception (for a class which is in one of the jar files in lib folder) Thanks Regards Miro - Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virus scanner after fileupload
We can't remove him, he is posting through nabble. You'll have to setup an ignore filter on your client. Sorry -- James Mitchell On Jun 11, 2007, at 7:44 AM, Al Sutton wrote: Would anyone object if this guy was removed from the mailing list? He seems to sending non-struts mails, sending multiple copies of some his messages, making them hard to read by putting them inattachements, and not answering queries as to the releavnce his queries have to the lists topic (i.e. struts). _ From: temp temp [mailto:[EMAIL PROTECTED] Sent: 11 June 2007 06:02 To: user@struts.apache.org Subject: Fwd: virus scanner after fileupload Note: forwarded message attached. _ Choose the right car based on your needs. Check out Yahoo! http://us.rd.yahoo.com/evt=48518/*http://autos.yahoo.com/ carfinder/;_ylc=X3 oDMTE3NWsyMDd2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDY2FyLWZpbmRlcg-- Autos new Car Finder tool. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts
Not sure what was wrong with Dave's response, I would have to told you to go buy a book. -- James Mitchell On Jun 11, 2007, at 7:59 AM, [EMAIL PROTECTED] wrote: thanks Dave Newton but what type of answer it is? i have told na that i am new to struts so why are u sending me that type of urls. simply don't reply if u can't help plz don't disturb those who want to learn through this type of on line help Dave Newton [EMAIL PROTECTED] wrote .. --- [EMAIL PROTECTED] wrote: give me some details of struts1 and struts 2 mvc 1 and mvc 2, because struts 1 follows mvc architecture Have you tried looking at the Struts 1 2 websites / wikis and Googling, say, for mvc? (You may want to refine that search, but most of my results were still relevent.) d. _ ___ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities +for+kidscs=bz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts
Yes, if you go to the wiki (as Dave mentions ;) you can find lots of wonderful information. To be honest, MVC is one of those things that you can't really appreciate until you been forced to do or maintain some old school (Model 1) code. Count your blessings! -- James Mitchell On Jun 11, 2007, at 8:08 AM, [EMAIL PROTECTED] wrote: thnks, james. but i can't understand how can i start, will you give me some code that follows struts. James Mitchell [EMAIL PROTECTED] wrote .. Not sure what was wrong with Dave's response, I would have to told you to go buy a book. -- James Mitchell On Jun 11, 2007, at 7:59 AM, [EMAIL PROTECTED] wrote: thanks Dave Newton but what type of answer it is? i have told na that i am new to struts so why are u sending me that type of urls. simply don't reply if u can't help plz don't disturb those who want to learn through this type of on line help Dave Newton [EMAIL PROTECTED] wrote .. --- [EMAIL PROTECTED] wrote: give me some details of struts1 and struts 2 mvc 1 and mvc 2, because struts 1 follows mvc architecture Have you tried looking at the Struts 1 2 websites / wikis and Googling, say, for mvc? (You may want to refine that search, but most of my results were still relevent.) d. ___ __ ___ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities +for+kidscs=bz --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: build.xml file for struts 2
You can generate an Ant build file from any project that uses Maven. $ mvn ant:ant -- James Mitchell On Jun 11, 2007, at 4:49 PM, Session Mwamufiya wrote: Thanks for the file, but I would really need to see a working example, because all of these files and directories here and there are too confusing. I wish someone could point me to a helloworld tutorial that actually has a working version. Thanks Session A. Mwamufiya Carnegie Mellon University MBA | Tepper School of Business MSE (software eng.) | School of Computer Science T: (412) 508-5455 | [EMAIL PROTECTED] -Original Message- From: Carroll, Samuel Nicholas [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 3:11 PM To: Struts Users Mailing List Subject: RE: build.xml file for struts 2 Here is the basic layout for a build.xml for the struts appilcations I develop: ?xml version=1.0? project name=PROJECT NAME default=PICK_A_TARGET basedir=./ descriptionFULL PROJECT NAME/description !-- ** -- !-- Application Properties -- !-- ** -- property name=SOME.PROPERTY.NAME value=COMMONLYUSED/ .. !-- -- !-- Jar Directory Properties -- !-- -- property name=log4j.version value=1.2.9 / property name=log4j.dir location=${lib.dir}/log4j-${log4j.version} / !-- ** -- !-- Set Classpaths -- !-- ** -- path id=sourcepath.compile pathelement location=${src.dir} / /path !-- * -- !-- Clean All -- !-- * -- target name=clean delete dir=${out.dir} / /target !-- *** -- !-- Compile -- !-- *** -- target name=compile depends=init javac destdir=${out.dir}\app\WEB-INF\classes sourcepathref=sourcepath.compile classpathref=classpath.compile deprecation=${compile.deprecation} debug=${compile.debug} listfiles=${compile.listfiles} src refid=sourcepath.compile / /javac /target !-- -- !-- COPY OVER ALL OTHER FILES/LIBS INTO THE PROPER WEB-INF STRUCTURE -- !-- -- !-- Copy JSP Pages Over -- copy todir=${out.dir}\app\WEB-INF\pages fileset dir=${jspPages.dir} excludes=**/*.keep /fileset /copy etc... !-- ** -- !-- Distribute -- !-- ** -- target name=dist jar jarfile=${warfile.name}.war basedir=${out.dir}\app / /target /project Something along those lines should suffice google and the ant page should suffice To fill in all the blanks, but to review basically set all the properties (dirs, Files, libs, etc.) then move them to the appropriate folders for the WEB-INF, Then compile and make a war file and distribute accordingly. -Original Message- From: Session Mwamufiya [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 2:59 PM To: 'Struts Users Mailing List' Subject: build.xml file for struts 2 Hello, Could someone point me to a working build.xml file that I could use for a simple struts 2 application (helloworld)? I tried the tutorial from roseindia, and that build file doesn't result in a working web app, though ant says that the build was successful. I don't see all of the lib/*.jar files included in the classpath, and it puts the compiled class files in WEB-INF/src/classes instead of WEB-INF/classes; there must be other issues too that I haven't figured out. Could someone point me to a simple working build.xml for struts 2 applications, or a good tutorial that I could use? Thanks, Session A. Mwamufiya Carnegie Mellon University MBA | Tepper School of Business MSE (software eng.) | School of Computer Science T: (412) 508-5455 | [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't build Struts 2 ...
cd to current/maven/pom/ $ mvn install -- James Mitchell On Jun 1, 2007, at 6:04 AM, Giovanni Azua wrote: Hi all, After following the simple instructions under page: http://struts.apache.org/dev/builds.html I get the maven errors bellow. TIA, regards, Giovanni [INFO] Scanning for projects... Downloading: http://maven.opensymphony.com/org.apache.struts/poms/ struts-master-4.pom Downloading: http://ftp.ggi-project.org/pub/packages/maven2/org/ apache/struts/struts-master/4/struts-master-4.pom [INFO] -- -- [ERROR] FATAL ERROR [INFO] -- -- [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.struts:struts2-parent:pom:2.1.0-SNAPSHOT Reason: Cannot find parent: org.apache.struts:struts-master for project: org.apache.struts:struts2-parent:pom:2.1.0-SNAPSHOT [INFO] -- -- [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache.struts:struts-master for project: org.apache.struts:struts2-parent:pom:2.1.0-SNAPSHOT at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java: 315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode (Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.apache.struts:struts-master for project: org.apache.struts:struts2-parent:pom:2.1.0-SNAPSHOT at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage (DefaultMavenProjectBuilder.java:1264) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal (DefaultMavenProjectBuilder.java:749) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFil eInternal(DefaultMavenProjectBuilder.java:479) at org.apache.maven.project.DefaultMavenProjectBuilder.build (DefaultMavenProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:537) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java: 467) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) ... 11 more Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.struts:struts-master' not found in repository: Unable to download the artifact from any repository org.apache.struts:struts-master:pom:4 from the specified remote repositories: apache.snapshots (http://people.apache.org/repo/m2-snapshot- repository), Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), opensymphony (http://maven.opensymphony.com), central (http://repo1.maven.org/maven2), snapshots-maven-codehaus (http://snapshots.maven.codehaus.org/ maven2) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepos itory(DefaultMavenProjectBuilder.java:573) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage (DefaultMavenProjectBuilder.java:1260) ... 17 more Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository org.apache.struts:struts-master:pom:4 from the specified remote repositories: apache.snapshots (http://people.apache.org/repo/m2-snapshot- repository), Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), opensymphony (http://maven.opensymphony.com), central (http://repo1.maven.org/maven2), snapshots-maven-codehaus (http://snapshots.maven.codehaus.org/ maven2) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:197) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:73) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepos itory(DefaultMavenProjectBuilder.java:526) ... 18 more Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact (DefaultWagonManager.java:324) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:185) ... 20 more [INFO
Re: can't build Struts 2 ...
Are you behind a firewall? It looks like you do not have a proxy set for Maven. -- James Mitchell On Jun 1, 2007, at 6:12 AM, Giovanni Azua wrote: Hi! Thanks for the quick response! It does not help ... I still get: [INFO] Scanning for projects... Downloading: http://ftp.ggi-project.org/pub/packages/maven2/org/ apache/apache/3/apache-3.pom [INFO] -- -- [ERROR] FATAL ERROR [INFO] -- -- [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.struts:struts-master:pom:5-SNAPSHOT Reason: Cannot find parent: org.apache:apache for project: org.apache.struts:struts-master:pom:5-SNAPSHOT [INFO] -- -- [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache:apache for project: org.apache.struts:struts- master:pom:5-SNAPSHOT at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.apache:apache for project: org.apache.struts:struts-master:pom:5-SNAPSHOT at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage (DefaultMavenProjectBuilder.java:1264) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal (DefaultMavenProjectBuilder.java:749) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFil eInternal(DefaultMavenProjectBuilder.java:479) at org.apache.maven.project.DefaultMavenProjectBuilder.build (DefaultMavenProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:537) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java: 467) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) ... 11 more Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache:apache' not found in repository: Unable to download the artifact from any repository org.apache:apache:pom:3 from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepos itory(DefaultMavenProjectBuilder.java:573) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage (DefaultMavenProjectBuilder.java:1260) ... 17 more Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository org.apache:apache:pom:3 from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:197) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:73) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepos itory(DefaultMavenProjectBuilder.java:526) ... 18 more Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact (DefaultWagonManager.java:324) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:185) ... 20 more [INFO] -- -- [INFO] Total time: 1 second [INFO] Finished at: Fri Jun 01 12:11:42 CEST 2007 [INFO] Final Memory: 1M/4M [INFO] -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Starting with Struts2 Book
Will do! Hope you can make it. -- James Mitchell On May 31, 2007, at 11:41 AM, Ian Roughley wrote: No, no paypal account. You can buy me a beer if I make it to apachecon. James Mitchell wrote: Ian, Nice job! I don't need the paper copy, but I'd like you to get the full price of the book. Do you have a Paypal account that I could donate some funds to? -- James Mitchell On May 29, 2007, at 12:13 PM, Henri Yandell wrote: The registration system at InfoQ is pretty slow; so I downloaded directly from lulu.com. Great work Ian, I hope it becomes the 'Thinking in Struts2' and is a big success. Hen On 5/25/07, Ted Husted [EMAIL PROTECTED] wrote: Is anyone else having trouble logging into the InfoQ site? On 5/24/07, Ian Roughley [EMAIL PROTECTED] wrote: I am pleased to announce the release of the mini-book Starting with Struts2 from InfoQ.com. Starting with Struts2 is aimed at those who are new to Strut2, and those familiar with MVC frameworks but unfamiliar with Struts2. It provides everything you need to know to get up and running using Struts2, and can be used as a starting point to explore the more intricate features of the Struts2 framework. Topics include architecture and configuration, how to implementing actions, and supporting infrastructure such as validation and internationalization. Also included are productivity tips, providing a practical introduction on how best to use the framework. The eBook can be found at http://www.infoq.com/minibooks/ starting-struts2 /Ian --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Table Tags - Installation
You should probably ask this on the Struts 2 table tags list at Sourceforge. Thanks. -- James Mitchell On May 29, 2007, at 10:06 AM, Roger Varley wrote: Hi I've just downloaded the Struts 2 table tags from Sourceforge. Are there any installation instructions anywhere? Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Starting with Struts2 Book
Ian, Nice job! I don't need the paper copy, but I'd like you to get the full price of the book. Do you have a Paypal account that I could donate some funds to? -- James Mitchell On May 29, 2007, at 12:13 PM, Henri Yandell wrote: The registration system at InfoQ is pretty slow; so I downloaded directly from lulu.com. Great work Ian, I hope it becomes the 'Thinking in Struts2' and is a big success. Hen On 5/25/07, Ted Husted [EMAIL PROTECTED] wrote: Is anyone else having trouble logging into the InfoQ site? On 5/24/07, Ian Roughley [EMAIL PROTECTED] wrote: I am pleased to announce the release of the mini-book Starting with Struts2 from InfoQ.com. Starting with Struts2 is aimed at those who are new to Strut2, and those familiar with MVC frameworks but unfamiliar with Struts2. It provides everything you need to know to get up and running using Struts2, and can be used as a starting point to explore the more intricate features of the Struts2 framework. Topics include architecture and configuration, how to implementing actions, and supporting infrastructure such as validation and internationalization. Also included are productivity tips, providing a practical introduction on how best to use the framework. The eBook can be found at http://www.infoq.com/minibooks/ starting-struts2 /Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: eclipse struts2 projects missing java project struts2-core
[9.593s] [INFO] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 2 minutes 37 seconds [INFO] Finished at: Sat May 26 19:40:43 EDT 2007 [INFO] Final Memory: 18M/42M [INFO] [EMAIL PROTECTED] ~/svn/struts/struts2]$ -- James Mitchell On May 26, 2007, at 1:58 PM, David Durham, Jr. wrote: On 5/26/07, Musachy Barroso [EMAIL PROTECTED] wrote: There's probably an easier way, but I just create the elipse project for the project I want to use, like let's say, core and showcase, doing: core/ mvn eclipse:eclipse apps/showcase/ mvn eclipse:eclipse -Dwtpversion=1.0 and then import the projects, if you do it like that, you need to compile core with maven because the reference in the showcase project will be pointing to the M2_REPO folder. To compile core(configure it to run as an external tool): That works for the showcase app. Wondering why the mvn eclipse:eclipse goal will build the plugin projects' eclipse metadata with a project dependency of struts2-core instead of core? Does this have something to do with an assumption that you would have struts1-core in the same workspace? Sounds like reasonable fixes are: 1) change project dependency from struts2-core to core or 2) change to M2_REPO dependency instead of project dependency and use mvn build. 1) Worked for me. 2) M2_REPO dependency is implied, at this point. https://issues.apache.org/struts/browse/WW-1947 core/ mvn -Dmaven.test.skip=true install I think there is a way to have maven generate the projects with the references between them for eclipse, but I'm not sure how, we can put it on the wiki if someone replies :) Would like to have some more info about how you setup the maven build. I couldn't get this plugin url: http://m2eclipse.codehaus.org/ to play nice. Nor was I successfully able to add a Program builder to my project. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Release date 2.0.7 ? 2.0.8?
At this time, no. Stay tuned though! -- James Mitchell On May 1, 2007, at 8:44 AM, David Harland wrote: Hi Have you any probable release dates for the next version of struts 2. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S1] Application container during development for fastest code/test cycle?
Hi, for a 2 minute demo of how nice the maven jetty integration is, try this: (You must have Maven and SVN client installed) $ svn co http://svn.apache.org/repos/asf/struts/struts2/tags/ STRUTS_2_0_6/apps/mailreader/ $ cd mailreader $ mvn jetty:run Open your browser to localhost:8080/struts2-mailreader/ Have fun! -- James Mitchell On May 1, 2007, at 6:16 PM, Antony Stubbs wrote: We're developing a Struts application which will be deployed onto Websphere eventually. However, I find Websphere very heavy weight do use during development - publishing seems to take for ever, and seems as thought for many changes it must be restarted. What's a common container to use during development that will facilitate the fastest (computer burden-wise) code, deploy, test, code, deploy, test cycles etc? I've tried Tomcat, and that seems to work better, but it still has to be restarted (well, eclipse (RAD actually) seems to insist on restarting it). Jetty? And are there any guides out there to guide in setting up the fastest environment? Is there anyway to get changes instantaneously viewable aka Grails / Rails etc? I will need to setup JNI for the datasource (DB2 and Oracle) in the container, and even better have the container support j_security_check. -- View this message in context: http://www.nabble.com/-S1-- Application-container-during-development-for-fastest-code-test- cycle--tf3677559.html#a10276929 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S1] Application container during development for fastest code/test cycle?
Actually, you can use Maven with any structure you like. As far as dealing with funky jndi, combining the powers of Maven and Spring would take care of those concerns. What issue are you having? -- James Mitchell On May 2, 2007, at 6:16 PM, Antony Stubbs wrote: Yes, I was playing with Maven last night... Unfort this is a short term project, and the powers that be wouldn't let me rearrange our structure to fit Maven. Plus we have some funny security configuration and JNDI stuff on Websphere that I'm not sure Jetty would support But I'm definitely going to push for Maven on our next project - looks great! James Mitchell-7 wrote: Hi, for a 2 minute demo of how nice the maven jetty integration is, try this: (You must have Maven and SVN client installed) $ svn co http://svn.apache.org/repos/asf/struts/struts2/tags/ STRUTS_2_0_6/apps/mailreader/ $ cd mailreader $ mvn jetty:run Open your browser to localhost:8080/struts2-mailreader/ Have fun! -- James Mitchell On May 1, 2007, at 6:16 PM, Antony Stubbs wrote: We're developing a Struts application which will be deployed onto Websphere eventually. However, I find Websphere very heavy weight do use during development - publishing seems to take for ever, and seems as thought for many changes it must be restarted. What's a common container to use during development that will facilitate the fastest (computer burden-wise) code, deploy, test, code, deploy, test cycles etc? I've tried Tomcat, and that seems to work better, but it still has to be restarted (well, eclipse (RAD actually) seems to insist on restarting it). Jetty? And are there any guides out there to guide in setting up the fastest environment? Is there anyway to get changes instantaneously viewable aka Grails / Rails etc? I will need to setup JNI for the datasource (DB2 and Oracle) in the container, and even better have the container support j_security_check. -- View this message in context: http://www.nabble.com/-S1-- Application-container-during-development-for-fastest-code-test- cycle--tf3677559.html#a10276929 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S1-- Application-container-during-development-for-fastest-code-test- cycle--tf3677559.html#a10295860 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nested s:form
Nested forms are not valid HTML. -- James Mitchell On Apr 28, 2007, at 12:44 PM, meeboo wrote: Hey all Is there a way to nest s:form elements in S2? I have a nested form which won't reach the specified action, even though it is correctly mapped. If I move it outside of the first form it automagically starts working. The action is mapped like: action name=deleteMovie/*/ class=com.myapp.web.struts.action.user.UserProfile method=deleteMovie param name=movieId{1}/param result name=success type=redirect-actionuser/${normalizedUsername}/movies//result result name=error/userProfile.jsp/result /action The odd thing is that the result success works fine (it even reads the normalizedUsername), but the method deleteMovie is never reached when the form is nested. Any ideas? Thanks! -- View this message in context: http://www.nabble.com/Nested-%3Cs% 3Aform%3E-tf3662755.html#a10234465 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2 Action Validation
IIRC, 'Laurie' is short for Lawrence (not a girl) :D -- James Mitchell On Apr 12, 2007, at 5:07 PM, [EMAIL PROTECTED] wrote: Laurie -- Thanks girl. I guess I'm just going to have to bite the bullet and consider the theme modifications another step. I guess it's not a problem with new releases overlaying these modified files? Scott On 4/11/07, Laurie Harper [EMAIL PROTECTED] wrote: I think labelPosition will only affect the field label, not the error message placement. You'll probably have to go with customizing the theme for that. L. [EMAIL PROTECTED] wrote: I can't get labelposition or requiredposition to do anything! top/bottom/right/left/*random* -- I tried them all. On 4/10/07, Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: addFieldError(course.text... I really do not like placing a jsp field name name in Java source code, but I could not find another way to correlate the message to the field. No, I think that's how it works. Technically you already have the field name in the java code since you're using a Java object. I'm not really sure what the alternatices would be. is there an easy way to get the messages to appear to the right of the field as opposed to the top? There's a labelposition parameter but I don't recall what the options are; I think if you want any major changes you'd have to modify the theme. A general comment (not directed specifically at you): my view is that the default themes and templates are intended to serve as a launching point: they cover simple use cases, but if your pages have a specific layout then extension, modification, and/or creation of existing or new templates is almost certain to be required. And lastly, can I specify the color I would like the messages to be. CSS-ily, errorMessage class. d. _ ___ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] how to change the look and feel of checkbox
html:checkbox disabled=disabled ...bBolded text/b Or, did you mean to style the actual checkbox? -- James Mitchell On Apr 11, 2007, at 4:37 AM, Pankaj Gupta wrote: Hi, I am using html:checkbox option to display a check box in disabled mode. This causes the checkbox to be greyed out. Can somebody please tell me how can I show it in bold font and disabled at the same time. regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Can we *please* havea seperate Struts *2* - User list?
If you are really interested in bringing clarity to the discussions, the people who are interested in having separate lists should be prefixing your questions and answers with [s1] or [s2] instead of trying to force people to have to subscribe to separate lists. If someone posts a new question without a prefix, you can always send a gentle reminder that such prefixes are preferred, but we should never try to enforce it as a rule. Even if *your* reply uses [s2] and it is the only one in a long thread, at least the entire thread gets labelled (sort of) so that future searches can use [s2] as a filter to narrow the results. For example, if you search the googler for struts action site:nabble.com, you get 9,360 results. However, if you search for s2 action site:nabble.com, you get 244. -- James Mitchell On Apr 11, 2007, at 10:55 AM, Bruno Melloni wrote: I have to agree. Having a separate Struts 2 list would be nice, but let's face it... - Struts 1 owned the web presentation space, making the move from 1.x to 1.y brainless. - But since Struts 2 is a complete rewrite and JSF is competing strongly for the same space (with much help from the tool vendors), the choice to go to from Struts 1 to 2 is not easy for today's developers. Struts 2 - regardless of how much better it is - needs all the help it can get to establish itself in the minds of developers. The price we pay by slogging through 100 emails per day in a single list is small if it helps Struts 2 win the battle. Bruno -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 7:59 PM To: Struts Users Mailing List Subject: Re: Can we *please* havea seperate Struts *2* - User list? I think the thought behind not splitting the lists to this point is that Apache experience has been that it tends to divide a community rather than direct traffic in a more granular way. The idea is that a Struts user is a Struts user regardless of version, and those that may not be using S2 today (yours truly included for the most part) may well be using it tomorrow... a person can get a leg-up just by keeping an eye on the S2 posts (I know that's true for me). One could always subscribe to multiple lists of course, but in terms of community, a single united list theoretically at least yields more synergy. This is my interpretation of things I've seen stated in the past (I happen to agree with it too :) ). Maybe the thinking is different now by those who are in a position to change things, I don't know. As for a forum, I seem to remember Apache infrastructure not supporting it, and I also seem to remember something about Apache projects not (directly at least) using outside resources... others more knowledgeable than I would have to answer this though... I can't off the top of my head think of any other Apache project that has a forum that is officially linked to the project. As a personal opinion, I'm not sure I see the benefit of a forum vs. a mailing list, they seem pretty well even to me, maybe a slight edge to the mailing list since it goes to my mail client... I could see a good argument though for a forum that supplies an RSS feed too. Frank Antony Stubbs wrote: Well it might have made sense if struts 2 issues were somehow applicable to struts 1, but they're mostly not. For Struts 2 to be adopted, it needs to be clearly separated from struts 1, as is the code base. This includes having clearly separate support to make it as easy as possible to find help. It's not like it's we want a struts 1.5 list. 2 is very different from 1. What's the mentality for keeping them jumbled together? I suppose you don't see a separate mailing list for every major tapestry release, but this is a case of adopting the best process that fit's the situation, and in this situation the lists should be seperate IMO. Dave Newton-4 wrote: --- Antony Stubbs [EMAIL PROTECTED] wrote: This list seems to be quite busy, and I think everyone would benefit hugely from separating out the two frameworks for obvious reasons. Actually I'm surprised this hasn't been done already. It's been brought up (even by me) in the past; I still agree and would vote for separation if it was votable. d. _ ___ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1
Re: [S2] JAAS redirection
Be creative. Take a look at what the mailreader does. (index.html) -- James Mitchell http://jamesmitchell.us On Mar 30, 2007, at 6:27 AM, Pascal Lalonde wrote: What about internationalization ? James Mitchell wrote: This seems to be a bug in the Struts tags. For now, just use a jsp page that doesn't have any Struts tags in it. Not sure what else to tell you. -- James Mitchell http://jamesmitchell.us On Mar 29, 2007, at 10:43 AM, Pascal Lalonde wrote: This looks logic, but it's tomcat that handles the redirection to the JSP right ? So how control that it will get through the Filter ? James Mitchell wrote: Right. That's what I meant when referring to the mailreader welcome page. That page only uses the text, url, and anchor (a) tags, so it should not care that there was no stack available (not having gone through an action first). I suppose the answer to all of this is simply to make sure that all your pages go through the Struts filter first. Even if it's only to send directly to a jsp. --James Mitchell http://jamesmitchell.us On Mar 29, 2007, at 7:13 AM, Pascal Lalonde wrote: Us we have only s:text/ elements. Prviously, with webwork, those tags were not problematic and we were also applying the decorator manually. James Mitchell wrote: I was getting the same error when trying to use a form (s:form ... ) in a jsp without first going through an action in my app. ActuallyI just fired up tomcat with the mailreader deployed. Going directly to the welcome jsp: http://localhost:8080/struts2-mailreader/Welcome.jsp java.lang.NullPointerException org.apache.struts2.views.jsp.TagUtils.getStack (TagUtils.java:58) org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (StrutsBodyTagSupport.java:54) org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (ComponentTagSupport.java:49) org.apache.jsp.Welcome_jsp._jspx_meth_s_text_0 (Welcome_jsp.java:178) ... ... I don't know if this is unique for Struts 2.0.6, but I can confirm that this happens in my app and in the mailreader. --James Mitchell On Mar 28, 2007, at 3:18 PM, Pascal Lalonde wrote: Hi, We are currently trying to update from webwork to struts 2.0.6, everything looks fine except one thing. The application is deployed into JBoss 4.0.4 and JAAS is enabled into our web.xml configuration file. So when trying to access the secure namespace, it does its check and finds out that the user is not logged yet so its redirecting to our configured JSP, into this JSP, we have struts tags and we are applying a decorator. With Webwork, it was working perfectly, but now, in Struts 2.0.6 we have the following stack. Anyone knows what we are doing wrong ? java.lang.NullPointerException at org.apache.struts2.views.jsp.TagUtils.getStack (TagUtils.java:58) at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (StrutsBodyTagSupport.java:54) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (ComponentTagSupport.java:49) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_me th_ww_text_0(LoginForm_jsp.java:273) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_me th_page_applyDecorator_0(LoginForm_jsp.java:105) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspServ ice(LoginForm_jsp.java:69) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service (HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:264) at javax.servlet.http.HttpServlet.service (HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke (ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest (ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward (ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward (ApplicationDispatcher.java:301) at org.apache.catalina.authenticator.FormAuthenticator.forwardToLog inPage(FormAuthenticator.java:315) at org.apache.catalina.authenticator.FormAuthenticator.authenticate (FormAuthenticator.java:243) at org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:490) at org.jboss.web.tomcat.security.JaccContextValve.invoke (JaccContextValve.java:74
Re: [S2] JAAS redirection
Right. That's what I meant when referring to the mailreader welcome page. That page only uses the text, url, and anchor (a) tags, so it should not care that there was no stack available (not having gone through an action first). I suppose the answer to all of this is simply to make sure that all your pages go through the Struts filter first. Even if it's only to send directly to a jsp. -- James Mitchell http://jamesmitchell.us On Mar 29, 2007, at 7:13 AM, Pascal Lalonde wrote: Us we have only s:text/ elements. Prviously, with webwork, those tags were not problematic and we were also applying the decorator manually. James Mitchell wrote: I was getting the same error when trying to use a form (s:form ... ) in a jsp without first going through an action in my app. ActuallyI just fired up tomcat with the mailreader deployed. Going directly to the welcome jsp: http://localhost:8080/struts2-mailreader/Welcome.jsp java.lang.NullPointerException org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58) org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (StrutsBodyTagSupport.java:54) org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (ComponentTagSupport.java:49) org.apache.jsp.Welcome_jsp._jspx_meth_s_text_0 (Welcome_jsp.java:178) ... ... I don't know if this is unique for Struts 2.0.6, but I can confirm that this happens in my app and in the mailreader. -- James Mitchell On Mar 28, 2007, at 3:18 PM, Pascal Lalonde wrote: Hi, We are currently trying to update from webwork to struts 2.0.6, everything looks fine except one thing. The application is deployed into JBoss 4.0.4 and JAAS is enabled into our web.xml configuration file. So when trying to access the secure namespace, it does its check and finds out that the user is not logged yet so its redirecting to our configured JSP, into this JSP, we have struts tags and we are applying a decorator. With Webwork, it was working perfectly, but now, in Struts 2.0.6 we have the following stack. Anyone knows what we are doing wrong ? java.lang.NullPointerException at org.apache.struts2.views.jsp.TagUtils.getStack (TagUtils.java:58) at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (StrutsBodyTagSupport.java:54) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (ComponentTagSupport.java:49) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_meth_w w_text_0(LoginForm_jsp.java:273) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_meth_p age_applyDecorator_0(LoginForm_jsp.java:105) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspService( LoginForm_jsp.java:69) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 810) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke (ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest (ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward (ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward (ApplicationDispatcher.java:301) at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPa ge(FormAuthenticator.java:315) at org.apache.catalina.authenticator.FormAuthenticator.authenticate (FormAuthenticator.java:243) at org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:490) at org.jboss.web.tomcat.security.JaccContextValve.invoke (JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527
Re: [S2] JAAS redirection
This seems to be a bug in the Struts tags. For now, just use a jsp page that doesn't have any Struts tags in it. Not sure what else to tell you. -- James Mitchell http://jamesmitchell.us On Mar 29, 2007, at 10:43 AM, Pascal Lalonde wrote: This looks logic, but it's tomcat that handles the redirection to the JSP right ? So how control that it will get through the Filter ? James Mitchell wrote: Right. That's what I meant when referring to the mailreader welcome page. That page only uses the text, url, and anchor (a) tags, so it should not care that there was no stack available (not having gone through an action first). I suppose the answer to all of this is simply to make sure that all your pages go through the Struts filter first. Even if it's only to send directly to a jsp. -- James Mitchell http://jamesmitchell.us On Mar 29, 2007, at 7:13 AM, Pascal Lalonde wrote: Us we have only s:text/ elements. Prviously, with webwork, those tags were not problematic and we were also applying the decorator manually. James Mitchell wrote: I was getting the same error when trying to use a form (s:form ... ) in a jsp without first going through an action in my app. ActuallyI just fired up tomcat with the mailreader deployed. Going directly to the welcome jsp: http://localhost:8080/struts2-mailreader/Welcome.jsp java.lang.NullPointerException org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java: 58) org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (StrutsBodyTagSupport.java:54) org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (ComponentTagSupport.java:49) org.apache.jsp.Welcome_jsp._jspx_meth_s_text_0 (Welcome_jsp.java:178) ... ... I don't know if this is unique for Struts 2.0.6, but I can confirm that this happens in my app and in the mailreader. --James Mitchell On Mar 28, 2007, at 3:18 PM, Pascal Lalonde wrote: Hi, We are currently trying to update from webwork to struts 2.0.6, everything looks fine except one thing. The application is deployed into JBoss 4.0.4 and JAAS is enabled into our web.xml configuration file. So when trying to access the secure namespace, it does its check and finds out that the user is not logged yet so its redirecting to our configured JSP, into this JSP, we have struts tags and we are applying a decorator. With Webwork, it was working perfectly, but now, in Struts 2.0.6 we have the following stack. Anyone knows what we are doing wrong ? java.lang.NullPointerException at org.apache.struts2.views.jsp.TagUtils.getStack (TagUtils.java:58) at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (StrutsBodyTagSupport.java:54) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (ComponentTagSupport.java:49) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_meth _ww_text_0(LoginForm_jsp.java:273) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_meth _page_applyDecorator_0(LoginForm_jsp.java:105) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspServic e(LoginForm_jsp.java:69) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service (HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:264) at javax.servlet.http.HttpServlet.service (HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke (ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest (ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward (ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward (ApplicationDispatcher.java:301) at org.apache.catalina.authenticator.FormAuthenticator.forwardToLogin Page(FormAuthenticator.java:315) at org.apache.catalina.authenticator.FormAuthenticator.authenticate (FormAuthenticator.java:243) at org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:490) at org.jboss.web.tomcat.security.JaccContextValve.invoke (JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107
Re: Struts 1.3 and maven
Oh, you're right. Sorry. Would you be able to install them locally and just go with that? Or do you have to have a portable solution? If you can install them locally (on your machine), then drop them in the right place, and call it done. If you must have a portable solution, just drop them on a server that you (and whoever else needs them) can see when building the app. The maven repos are nothing more than a file system fronted with a web server. -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 28, 2007, at 11:22 AM, Manfred Wolff wrote: Sorry, but there - as in ibiblio - is no 1.3 Struts in the repository. Manne James Mitchell wrote: http://www.apache.org/dev/repository-faq.html -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote: Hi Can somebody tell me, why there is no jar file at ibiblio.org/ maven - and - where I can get the jars (via url), if I want to make a maven 1 project with struts 1.3.8? Thanks Manne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === Dipl.-Inf. Manfred Wolff Software Engineer Fon : +49 421 534522 Fax : +49 421 4314578 Mobil: +49 173 2494181 --- http://www.manfred-wolff.de http://www.struts-it.org --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3 and maven
Ya, I don't know off the top of my head, but keep in mind that you can tell Maven to use different repositories, so you can easily host your own maven repo on your intranet which I presume that all of the devs could see and may or may not be open to the public. HTH -- James Mitchell On Mar 28, 2007, at 11:34 AM, Manfred Wolff wrote: James. For a project with one worker this is a suitable resolution. But in a big project, with developers round the world (in this case Germany, India and Tunesia) it is a good thing to have all needed common open source jars held in the project.xml accessable via a public maven repo as ibiblio. So no one must be careful using the right versions - and no one has problem to get all jars that are needed. I wonder if there is a server who serves this jars for public access as the struts 1.2 jars (last is 1.2.9). Manne James Mitchell wrote: Oh, you're right. Sorry. Would you be able to install them locally and just go with that? Or do you have to have a portable solution? If you can install them locally (on your machine), then drop them in the right place, and call it done. If you must have a portable solution, just drop them on a server that you (and whoever else needs them) can see when building the app. The maven repos are nothing more than a file system fronted with a web server. -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 28, 2007, at 11:22 AM, Manfred Wolff wrote: Sorry, but there - as in ibiblio - is no 1.3 Struts in the repository. Manne James Mitchell wrote: http://www.apache.org/dev/repository-faq.html --James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote: Hi Can somebody tell me, why there is no jar file at ibiblio.org/ maven - and - where I can get the jars (via url), if I want to make a maven 1 project with struts 1.3.8? Thanks Manne -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --=== Dipl.-Inf. Manfred Wolff Software Engineer Fon : +49 421 534522 Fax : +49 421 4314578 Mobil: +49 173 2494181 --- http://www.manfred-wolff.de http://www.struts-it.org --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] JAAS redirection
I was getting the same error when trying to use a form (s:form ... ) in a jsp without first going through an action in my app. ActuallyI just fired up tomcat with the mailreader deployed. Going directly to the welcome jsp: http://localhost:8080/struts2-mailreader/Welcome.jsp java.lang.NullPointerException org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58) org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (StrutsBodyTagSupport.java:54) org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (ComponentTagSupport.java:49) org.apache.jsp.Welcome_jsp._jspx_meth_s_text_0(Welcome_jsp.java:178) ... ... I don't know if this is unique for Struts 2.0.6, but I can confirm that this happens in my app and in the mailreader. -- James Mitchell On Mar 28, 2007, at 3:18 PM, Pascal Lalonde wrote: Hi, We are currently trying to update from webwork to struts 2.0.6, everything looks fine except one thing. The application is deployed into JBoss 4.0.4 and JAAS is enabled into our web.xml configuration file. So when trying to access the secure namespace, it does its check and finds out that the user is not logged yet so its redirecting to our configured JSP, into this JSP, we have struts tags and we are applying a decorator. With Webwork, it was working perfectly, but now, in Struts 2.0.6 we have the following stack. Anyone knows what we are doing wrong ? java.lang.NullPointerException at org.apache.struts2.views.jsp.TagUtils.getStack (TagUtils.java:58) at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (StrutsBodyTagSupport.java:54) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag (ComponentTagSupport.java:49) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_meth_ww_ text_0(LoginForm_jsp.java:273) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_meth_pag e_applyDecorator_0(LoginForm_jsp.java:105) at org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspService (LoginForm_jsp.java:69) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke (ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest (ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward (ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward (ApplicationDispatcher.java:301) at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage (FormAuthenticator.java:315) at org.apache.catalina.authenticator.FormAuthenticator.authenticate (FormAuthenticator.java:243) at org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:490) at org.jboss.web.tomcat.security.JaccContextValve.invoke (JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java: 664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run (MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) 15:01:08,937 WARN [FormAuthenticator] Unexpected error forwarding to login page org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/pages/ security/LoginForm.jsp:8 5: html 6: head 7: title 8: ww:text name=global.title.login/ 9: /title 10: /head 11: body Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException (JspServletWrapper.java:504) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:393
Re: ETA for 2.0.7
Probably later this week, but there's no guarantee that it will be GA or even beta. -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 26, 2007, at 9:13 PM, Rohit Dewan wrote: Would anyone be able to let me know the ETA for release 2.0.7? Thanks, Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts.xml - change default location
Can you restate your question? -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 5:21 AM, Bartek wrote: Hi I have to face up the following issue. My location of struts.xml shoudl be WEB-INF directory, not WEB-INF/classes. What is the easiest way to achieve this?? I tried several different config locations (e.g. WEB-INF/struts.xml) for StrutsXmlConfigurationProvider, none of them worked. Creating custom configuration provider might help, but it is pojo by default , protocol independant and therefore without any ServletContext access - what is a pain in this case. Cheers bartek -- View this message in context: http://www.nabble.com/struts.xml--- change-default-location-tf3425865.html#a9548614 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a mailing list for S2 only?
No -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 8:10 AM, [EMAIL PROTECTED] wrote: ??? -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a mailing list for S2 only?
Oh, lol I do RoR on the side. I'm not sure where all this dynamic language stuff is heading (ruby vs groovy vs others) with respect to java, but I plan to be a part of it. More on that later... -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 8:31 AM, [EMAIL PROTECTED] wrote: Thanks. BTW, what's a Ruby Roundup guy doing here? Just curious. Scott On 3/19/07, James Mitchell [EMAIL PROTECTED] wrote: No -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 8:10 AM, [EMAIL PROTECTED] wrote: ??? -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts.xml - change default location
I don't understand why it has to be loaded from outside the classpath. There are facilities in place to let you do what you want, but you would be fighting an uphill battle. I don't see the justification for changing code to simplify this. Please help me understand why you have to have your struts configuration in WEB-INF and not in WEB-INF/classes (or jar). -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 8:14 AM, Bartek wrote: Hi James Well, the default location of struts.xml is classpath location e.g. WEB-INF/classes. And I want to load it from outside the classpath, e.g. directly from WEB-INF directory. How can I do this? I thought , I coudl do this as in case of struts1 - using param-nameconfig/param-name of actionservlet. Of course in case of struts2 I would use this init param in context of FilterDispatcher. But it did not work. So again, the question is: How to load the struts.xml from WEB-INF directory, without adding it to classpath? bartek James Mitchell-3 wrote: Can you restate your question? -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 5:21 AM, Bartek wrote: Hi I have to face up the following issue. My location of struts.xml shoudl be WEB-INF directory, not WEB-INF/classes. What is the easiest way to achieve this?? I tried several different config locations (e.g. WEB-INF/struts.xml) for StrutsXmlConfigurationProvider, none of them worked. Creating custom configuration provider might help, but it is pojo by default , protocol independant and therefore without any ServletContext access - what is a pain in this case. Cheers bartek -- View this message in context: http://www.nabble.com/struts.xml--- change-default-location-tf3425865.html#a9548614 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/struts.xml--- change-default-location-tf3425865.html#a9550834 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)
I took up Ruby and Rails about 5 months ago. I did so more along the lines of why I took up JSF. I wanted to take a serious look and be able to say with authority that I either liked or disliked it. I was a skeptic at first. I said all the same things that you hear most java folks chattering about. Oh, I prefer doing things this way or that way ... however, when it's time to put up or shut up, RoR simply kicks the sh## out of anything else I've ever tried. My primary income comes from enterprise java development with clients who dictate everything from what language to what IDE we use. That's fine, they pay the big bucks, so they can have whatever they like. However, for all of my other (typically smaller) clients, who do not care whether it's php or ruby, RoR is my tool of choice. I can work about 4 to 5 times the speed without even using an IDE. It's a real challenge to stay on top of everything that's happening with RoR right now. New developers are pouring into RoR daily from all walks of development. Java, PHP, Python, and many others. The RoR mailing list gets close to 300 messages on a slow day and it's only getting worse. I'll probably always be doing something in Java, at least for the foreseeable future. Since that's where a lot of my income currently comes from. If you ever do get the Agile Web Development with Rails book or pdf and build the Depot app along with the book, you'll be asking yourself why anyone does anything other than Rails. You've been warned! -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 4:41 PM, [EMAIL PROTECTED] wrote: Now this is an interesting thread! I attended NFJS this weekend here in St Louis, and there was no buzz around Struts whatsoever. In fact, most presenters (and the expert panel) even downplayed Java and described it as a language that was no longer productive enough for their companies. It was Groovy, Grails, JRuby and the other dynamic languaages that took center stage. Java Script and its big three libs were all the rave. I honestly felt like the odd man out when I asked if folks had looked at S2. They said why would we want to do that? I'm with Ted here. We should be able to wrap the stack so a mere mortal developer might get an S2 Hello World application running in less than a week. I don't know much about AppFuse, but it seems reasonable that a click here to build app could be written that includes Tomcat S2 ready to roll. I know there are many Struts Classic apps out there, and rather than watch folks navigate away, we should be paving the way to S2. Just my two cents. Scott Stanlick On 3/19/07, Greg Reddin [EMAIL PROTECTED] wrote: On 3/19/07, Ted Husted [EMAIL PROTECTED] wrote: To me, the attractive thing about Ruby is that it's a full stack. We can code in Ruby, soup to nuts (turtles all the way down), and the Rails framework provides an interesting way to generate starter applications. With Java and JavaScript integration, we're on the cusp of having a JavaScript middleware stack. Writing Actions in JavaScript is a trivial step. All we need is something like iBATIS written in JavaScript to go with that. We already have an iBATIS for Ruby, why not an iBATIS for Rhino? This probably will make me less employable as the years wear on, but I find that I just don't like the more dynamic languages (or scripting languages or whatever you want to call them). It's not an ego thing like I think it's a tinkertoy or anything like that. I think any of those could be enterprise-capable if they are not already. But it's a personality thing for me. I like to have a compiler to tell me some things are wrong before I ever run the code. I like to be able to say This is a String, This is an int, This is a cat, or whatever and for the compiler to complain if I try to use an int as if it were a cat. I also like to be able to create ways to turn an int into a cat if my program finds it useful. I'm really not interested in getting something going very quickly (I did use the word unemployable). I prefer to be able to build something that has flexibility, that can change as the users' needs change. It may take longer to build up front, but in the long run, it can grow more quickly. Again, you can do all that with the dynamic languages. I just think Java is cleaner. The thing that attracted me to Java in the first place is that it had the preciseness of C++ but a much cleaner approach to object- oriented design and less ambiguity about many things (esp. pointers). In a word, it's easy (for me) to learn, yet powerful and flexible. The best thing is it tells me when I am wrong better than the dynamic languages. In art class I always liked the slow, tedious, detailed drybrushing methods much better than quick watercolor painting :-) Give me time and I may come
Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)
I believe it's a combination of both. Coding in ruby changes the way you think about problem solving. It really does. Of course, I'm sure we all said the same thing about Java when we first picked it up ;) Given a specific problem to tackle, I could easily write the same number of lines of ruby as I would in Java if I chose to. If I continue to think in Java, my ruby code will look (structurally) like Java. That's actually a natural progression that people will make as they learn to think in Ruby. There are so many more ways to reduce your code in Ruby than in Java, without taking away or hiding what you intended to do. It really takes me aback sometimes, almost to the point of disbelief. I struggle getting to optimal code structure because I'm so used to being verbose with Java. Sorry, I'm not trying to push Ruby on you guys, I just want to be honest about my experience. -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 19, 2007, at 6:53 PM, Ted Husted wrote: On 3/19/07, James Mitchell [EMAIL PROTECTED] wrote: If you ever do get the Agile Web Development with Rails book or pdf and build the Depot app along with the book, you'll be asking yourself why anyone does anything other than Rails. You've been warned! Do you credit Rails with that, or that Ruby is not verbose, so that there are fewer lines of code? -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OGNL - invalid syntax. JSP EL?
There must be a way (or we should build a way) that Struts could allow customization of the el that gets substituted before passing it off to OGNL. I would ask on the dev list and possibly even file a JIRA ticket on this. Thanks -- James Mitchell The Ruby Roundup http://www.rubyroundup.com/ On Mar 13, 2007, at 7:39 PM, Dave Newton wrote: --- Piero Sartini [EMAIL PROTECTED] wrote: I don't think its good to be incompatible with JSP.. It wasn't incompatible until 2.1, IIRC, and it was JSF-only up until then, before the unification effort. Maybe take it up w/ the OGNL folks? I agree that this may cause a problem in some environments. d. __ __ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: test
That's because GMail doesn't send you your own postings. On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: It seems to work ! Just was curious not getting messages I send to the list in my mail box. 2006/12/6, Adam K [EMAIL PROTECTED]: You had a question if it would work ? On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: Please ignore ... just testing my gMail account. -- James Mitchell 678.910.8017
Re: Struts 2 and passing data using interceptors
What makes it not thread safe? If you are thinking in terms of s1, then yes, but s2 actions are not reused and can therefore keep state as you normally would have had to put in a s1 formbean. On 11/30/06, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, Mark Menard wrote: public String getDataRetrievedFromSessionBean () { return this.dataRetrievedFromSessionBean; } Sorry for poking my nose in, but wouldn't this be horrendously non-threadsafe? Since I know virtually nothing about S2, I may be completely missing something like action instances now live in the session or something crazy like that. Instead of using a method on the action, why not stuff the object into the request? request.setAttribute(dataRetrievedFromSessionBean, this.getSessionBean()); Sorry if I don't know what I'm talking about. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFb3sN9CaO5/Lv0PARAqmjAJ43fvmsWmR0VNEauKXZOjH8f+GORgCcCl/B 2HGBwx4xh0OCNwY8QRFmjaU= =u3oN -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell 678.910.8017
Re: problem in formbean
Hi, I help moderate messages on this list. You are not subscribed. I let this message through because it is not spam, but you need to subscribe before any more can come through. Thanks. On 11/29/06, prkumar_1234 [EMAIL PROTECTED] wrote: I got some problem in struts can you please help me. 1) in jsp iam displaying values from javabean in textboxes.(i can change these values) 2) when i submit with modified values , iam doing validation in formbean. 3) When validatio fails i formbean returning to same jsp but it is displaying old values not modified values can you give me some hint how to do this. thank you verymuch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell 678.910.8017
Re: html:html XSS vulnerability?
Even if a malicious header was written into the request, from ... let's say, a redirect or something else, the HtmlTag does not parse any headers so there's no way to inject a bad value for Accept- Language. And even if you were able to spoof the header, Struts looks inside the request to get the users Locale. So, if there is an XSS vulnerability with respect to accept-lang, it would be due to a broken container and not from a broken framework. So, from everything I can see, this is invalid. -- James Mitchell 678.910.8017 On Nov 13, 2006, at 11:46 PM, otsuka wrote: The value of lang attribute which html:html tag generates is not escaped. I think it could cause XSS problem If Accept-Language HTTP header's value is replaced with script tag. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ATTN: How to Contact the Owner of the Struts Forum?
send to [EMAIL PROTECTED] -- James Mitchell 678.910.8017 On Nov 16, 2006, at 2:21 PM, Caroline Jen wrote: It so happened that I have to do something for some of my postings that have been archived. Can somebody show me to way to proceed? I may have to contact the owner of the forum to take care of the matter. Thanks in advance. -Caroline __ __ Sponsored Link Mortgage rates near 39yr lows. $420k for $1,399/mo. Calculate new payment! www.LowerMyBills.com/lre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 vs JSF
That's obviously an outdated article. I don't know of any direct WW or Struts 2 comparison with JSF, but if there is, I'd like to see it. -- James Mitchell 678.910.8017 On Nov 15, 2006, at 4:34 PM, frankiestd168 wrote: There is a lot of comparison between Strusts 1.x and JSF, for example, this article.. http://websphere.sys-con.com/read/ 46516.htm Some of the developers prefer to use JSF more. (component oriented..) Surely, now Struts2 has a lot more improvement + Webwork2, Is there any comparison between Strusts2 and JSF? -- View this message in context: http://www.nabble.com/Struts2-vs-JSF- tf2639117.html#a7366959 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3.5 and Eclipse 3.2
Well, one more thing that may or may not be the reason Eclipse is complaining. The taglib jar file (with embedded tlds) must be on the classpath of the project, which MyEclipse, Nitrox, and a few others (IBM RAD) will force upon you if the jar is under WEB-INF/lib. When I say force, I mean, if you drop the jar under WEB-INF/lib from the file system (Windows Explorer, Finder, whatever), then go back to eclipse and refresh the project, those IDEs I mentioned will see the new jar and add it to the classpath and deployment path. If a project truly is a Dynamic Web Project in the way that Web Tools defines them, then the taglib URIs should resolve fine. Hope that helps. -- James Mitchell 678.910.8017 On Nov 14, 2006, at 11:21 AM, Bruno Melloni wrote: I think I am being misunderstood. The problem is not related to building a WAR/EAR and running on an application server. Using the TLDs from the jars nor using the URI (thanks for the clarification Wendy) are fine for running in an application server. The problem is the annoying error message from the Eclipse editor. It is the Eclipse editor (or the WTP plug-in) that is not smart enough to recognize the taglibs unless they are physically in WEB-INF. From the messages in this thread that does not appear to be a problem with the pre-packaged MyEclipse distribution, but it does affect the vanilla Eclipse + manually added plugins - even if they are the latest versions. Hopefully this problem will go away in a future version of Eclipse and the WTP. Maybe they'll copy the MyEclipse solution, and if I understood James' comment correctly, it might just be a question of a simple rebuild. bruno -Original Message- From: Ed Griebel [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 9:54 AM To: Struts Users Mailing List Subject: Re: Struts 1.3.5 and Eclipse 3.2 YOu don't need to (and never should) extract TLD files from jars and put them into a WEB-INF directory in your war. Web app servers that follow servlet version 2.3 and up have been able to extract TLDs from jars. See for more information: http://struts.apache.org/1.2.9/userGuide/ configuration.html#dd_config_ta glib_23 -ed On 11/10/06, robin bajaj [EMAIL PROTECTED] wrote: Or actually you can just get it from your project structure, depending upon your jsp and tld location. Say your jsp is in WebRoot/ [[ webRoot/abc.jsp ]] and your tld is lying in web-Inf/struts-logic.tld {usual tooling/ user practice} Then you can access the .tld as %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % I wonder why you dont have the actual .tld files in the web-inf folder of your webApp. If you actually don't then you can get them from Struts download site. Hope it helps, regards, robin Paul Benedict wrote: The taglib URI should be the the http:// address, not the /META-INF location. If you are unsure what the address is, open up the TLD files and see. -- Paul Bruno Melloni wrote: I have a strange problem, with Struts 1.3.5 in Eclipse 3.2. - struts-taglib-1.3.5.jar is in the classpath. - Inside the jar, in /META-INF/tld are the struts tld files. - I have the following in index.jsp: %@ taglib uri=/META-INF/tld/struts-logic.tld prefix=logic % logic:redirect forward=welcome / - Eclipse whines about the tag not being known. I even tried replacing the URI with http://struts.apache.org/tags-logic;, but no cigar. Any idea what is going on, and how to fix it? Thanks, Bruno --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3.5 and Eclipse 3.2
I hope you meant Eclipse *Web Tools* and that your project is a Web Application. If not, then Eclipse (as Robin hints at below) has no concept of the web root or what jars belong where and why. That's the purpose of having a project type that understands Web Applications. If using Maven, to generate the appropriate Eclipse config files for your project, try this... $ mvn eclipse:eclipse -Dwtpversion=1.0 -- James Mitchell 678.910.8017 On Nov 13, 2006, at 1:11 PM, Bruno Melloni wrote: I did some testing and came to the conclusions below. I might be wrong, but I think these are correct: - Eclipse 3.2 (plus plug-ins) is not yet compatible with Struts 1.3.x. Chances are that it is also incompatible with Struts 2.0.x. - Struts 1.3.x has changed how TLD tags are placed on the project structure. - The Struts 1.3.x approach seems to be to supply them inside struts-taglib-1.3.5.jar, and to access them through the classpath in /META-INF/tld. - The Struts 1.3.x approach should not cause problems when executing the application, but is a nuisance in the Eclipse Editor. - The old 1.2.x approach of placing the TLDs in /WEB-INF is still usable. - The Eclipse 3.2 editor will only recognize tags placed in /WEB-INF. So... Band-aid solution: - Extract TLD files from struts-taglib-1.3.5.jar into the /WEB-INF folder - Use the old URI: /WEB-INF/whicheverTag.tld Real solution: - Eclipse 3.2 needs a bug-fix. It should be reading the URI, and not rely on a specific location. Bruno -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 4:12 PM To: Struts Users Mailing List Subject: Re: Struts 1.3.5 and Eclipse 3.2 Or actually you can just get it from your project structure, depending upon your jsp and tld location. Say your jsp is in WebRoot/ [[ webRoot/abc.jsp ]] and your tld is lying in web-Inf/struts-logic.tld {usual tooling/user practice} Then you can access the .tld as %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % I wonder why you dont have the actual .tld files in the web-inf folder of your webApp. If you actually don't then you can get them from Struts download site. Hope it helps, regards, robin Paul Benedict wrote: The taglib URI should be the the http:// address, not the /META-INF location. If you are unsure what the address is, open up the TLD files and see. -- Paul Bruno Melloni wrote: I have a strange problem, with Struts 1.3.5 in Eclipse 3.2. - struts-taglib-1.3.5.jar is in the classpath. - Inside the jar, in /META-INF/tld are the struts tld files. - I have the following in index.jsp: %@ taglib uri=/META-INF/tld/struts-logic.tld prefix=logic % logic:redirect forward=welcome / - Eclipse whines about the tag not being known. I even tried replacing the URI with http://struts.apache.org/tags-logic;, but no cigar. Any idea what is going on, and how to fix it? Thanks, Bruno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confused with redirects
Please reply with the entire index.jsp content and tell us what version of Struts you are using. I assume 1.2.x, and so I'm not sure what html:redirect is. -- James Mitchell 678.910.8017 On Nov 9, 2006, at 6:36 AM, Rahul Patel wrote: Hi All, I have a very confusing issue at hand that I have been trying to solve for a couple of days. I have a Struts-based application where my index.jsp has only one line html:redirect forward=welcome/ Further, once the user logs in, he is forwarded to applications based on his feature access. Though, for some reason, when the forward of the action is complete, somehow ( I put a breakpoint in the RedirectTag) control goes to index.jsp (or that's what it seems like) and the whole WelcomeAction is executed on the server side. This happens only on the server side i.e. the browser is still displaying the page the user had requested. Though, on the server side, once the page is displayed, control goes to index.jsp as I said. The issue is that I perform some session-level initializations at start up and since index.jsp executes all that code on the server side again, everything is re-initialized clearing up what the current jsp (that the user had requested) did. Any help or direction is appreciated. Thanks, Rahul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confused with redirects
;) I thought so. So, all the following are true: - you are testing this on your local machine (your browser is hitting your own machine) - you have enabled cookies on your machine (if not, make sure all urls are rewritten correctly, before you click on them) - you have a global forward named welcome - welcome goes to a jsp page with links that, when clicked, will take the user to (for instance) /yourapp/PopulateUserInfo.do - you know for a fact that this action is being called because you a) added a few print statements or b) you set a breakpoint and watched the debugger step through it - this action returns an ActionForward that will go to UserInfo.jsp - you know for a fact that UserInfo.jsp is the path for the returned ActionForward because: a) added a few print statements or b) you set a breakpoint and watched the debugger step through it If you are not hitting your own machine, make sure there isn't a proxy or something that might be rewriting the request headers or screwing with the cookies in any way. If all the above are true, make sure: - you do not have any filters or listeners intercepting the request and changing/wrapping/hijacking/etc Sorry for the flood of if/else, but without sitting behind you are watching what you are doing, this is the best I can offer. HTH -- James Mitchell 678.910.8017 On Nov 9, 2006, at 7:08 AM, Rahul Patel wrote: I am using Struts 1.1. Also, I might have typed in the wrong tag - it is supposed to be logic:redirect My index.jsp just has the following line (and the declaration for the tag library) logic:redirect forward=welcome/ I have a menu containing links to forward the user to. e.g. one link forwards to an action PopulateUserInfo.do Even though, I am just resetting the corresponding form's data in this action and then forwarding to UserInfo.jsp, after the entire UserInfo.jsp is loaded, it somehow seems to be going to index.jsp. I have this issue for all my *.do actions. On 11/9/06, James Mitchell [EMAIL PROTECTED] wrote: Please reply with the entire index.jsp content and tell us what version of Struts you are using. I assume 1.2.x, and so I'm not sure what html:redirect is. -- James Mitchell 678.910.8017 On Nov 9, 2006, at 6:36 AM, Rahul Patel wrote: Hi All, I have a very confusing issue at hand that I have been trying to solve for a couple of days. I have a Struts-based application where my index.jsp has only one line html:redirect forward=welcome/ Further, once the user logs in, he is forwarded to applications based on his feature access. Though, for some reason, when the forward of the action is complete, somehow ( I put a breakpoint in the RedirectTag) control goes to index.jsp (or that's what it seems like) and the whole WelcomeAction is executed on the server side. This happens only on the server side i.e. the browser is still displaying the page the user had requested. Though, on the server side, once the page is displayed, control goes to index.jsp as I said. The issue is that I perform some session-level initializations at start up and since index.jsp executes all that code on the server side again, everything is re-initialized clearing up what the current jsp (that the user had requested) did. Any help or direction is appreciated. Thanks, Rahul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help integrating struts and spring 2
Perhaps you skipped a step. Scroll up that page a bit to the section 15.2. Common configuration. Do that and try it again. -- James Mitchell 678.910.8017 On Oct 25, 2006, at 12:49 PM, Doug Tangren wrote: Hi. I have been using Struts 1.2.9 for a while and just started using Spring 2.0. I am trying to integrate the two an am running into trouble. I am following Springs docs @ http:// static.springframework.org/spring/docs/2.0.x/reference/ webintegration.html#struts-actionsupport and I tried the easier of the two recommended approaches, making my actions subclass Spring's DispatchActionSupport class instead of Struts' Action class. This example below is the example given in Spring's docs. public class UserAction extends DispatchActionSupport { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if (log.isDebugEnabled()) { log.debug(entering 'delete' method...); } WebApplicationContext ctx = getWebApplicationContext(); UserManager mgr = (UserManager) ctx.getBean(userManager); // talk to manager for business logic return mapping.findForward(success); } } I am deploying to Tomcat and am getting the following error. What have been your approaches to integrate Struts and Spring? java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? org.springframework.web.context.support.WebApplicationContextUtils.get RequiredWebApplicationContext(WebApplicationContextUtils.java:86) org.springframework.web.struts.DelegatingActionUtils.findRequiredWebAp plicationContext(DelegatingActionUtils.java:148) org.springframework.web.struts.DispatchActionSupport.initWebApplicatio nContext(DispatchActionSupport.java:98) org.springframework.web.struts.DispatchActionSupport.setServlet (DispatchActionSupport.java:78) org.apache.struts.action.RequestProcessor.processActionCreate (RequestProcessor.java:295) org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:218) org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Doug Tangren [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hosting
I also use Kattare. I have a corporate plan, so I can setup unlimited domains. I use it for my Company site and all of my clients that have opted to let me host their sites. I highly recommend using them. -- James Mitchell 678.910.8017 On Oct 20, 2006, at 7:13 PM, Ted Husted wrote: PlanetStruts.org runs on Kattare.com. -T. On 10/19/06, Juan Espinosa [EMAIL PROTECTED] wrote: Hi im looking for a hosting company that supports java 1.5, tomcat 5.x (i will upload a struts 2 application) HD:5gb Transfer:30+Gb Anybody has suggestions...??? Thanks Juan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts 1.2.9 and tomcat 5.5
Make sure you don't have an extra copy of struts jar under the shared lib dir. I would also delete the work directory too. -- James Mitchell 678.910.8017 On Oct 19, 2006, at 1:33 PM, Joe Yuen wrote: Is there any compatibility issues with struts 1.2.9 and tomcat 5.5. I upgraded to 5.5 from 5.0.28 and am now getting the following error. java.lang.ClassCastException: org.apache.struts.taglib.logic.IterateTei org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo (TagLibraryInfoImpl.java:420) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD (TagLibraryInfoImpl.java:248) org.apache.jasper.compiler.TagLibraryInfoImpl.init (TagLibraryInfoImpl.java:162) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java: 423) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse (ParserController.java:211) org.apache.jasper.compiler.ParserController.parse (ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155) org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) org.apache.jasper.JspCompilationContext.compile (JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:303) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doF ilterInternal(OpenSessionInViewFilter.java:174) org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:77) I have verified that struts.jar is in C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Chisq\WEB-INF\lib where I have installed tomcat. Has anyone else run into this problem? Thanks, -Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [shale] extending clay
Ha! Ya just had to throw that in didn't ya?!?! ;) -- James Mitchell 678.910.8017 On Oct 18, 2006, at 5:43 AM, Ted Husted wrote: Shale has its own list now: * http://shale.apache.org/mail-lists.html Along with a spiffy new logo :) -T. On 10/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Did you ever do this Gary? Hermod -Original Message- From: Opstvedt, Hermod Sent: Monday, June 12, 2006 7:39 AM To: user@struts.apache.org Subject: RE: [shale] extending clay Hi Sounds like a great plugin. I guess one should wait until it is at a V1 stage before commiting (At least that is what I have done when committing to opensource), but if you someone to help you test it I would be more than willing. Hermod -Original Message- From: Ryan Wynn [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 7:07 PM To: Struts Users Mailing List Subject: Re: [shale] extending clay On 6/7/06, Gary VanMatre [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Hi What would be really nice is if you would make the plugin publically available. I was intending to make it available. I had intended to get some basic functionality working before I did so. Right now it is at the stage where it visits your eclipse project and parses all the clay config files. It attempts every xml file even those that are included in jars. If it is not a clay xml it just keeps chugging along. The reason I chose this approach over having to have the user point to clay configs is that I wanted it to 'just work'. Based on what it find it creates a tree view that mimics the inheritance of the components. Each node has an icon and a label (the jsfid) which have some pretty stock images (folder, resource) next to them. I was hoping to be able to incorporate more descriptive images, but images are not my speciality unfortunately. Maybe after I donate a graphic oriented person could enhance them. When you click a node the description from the clay xml is show below the tree. You can drag a component from the tree into a clay xml. At this point you enter a wizard that asks whether you want to create a new component extending the one that you dragged or whether you want to use the dragged component as a child element. You can also edit the description - the text area defaults to the description of the component you dragged. The wizard is not finished yet and I wanted it to be able to optionally run through the gamet of adding children, adding listeners, validators, etc. When you finish the wizard the component is dropped as xml into your config file. Eclipse resource change listeners are registered to make sure that when you save, delete, etc the visual component tree is updated. I also have an xml editor that supports auto complete based on the available clay components in your workspace. However, currently this has yet to be completely incorporated. I am fairly new to contributing to open source projects. Should I contribute the code in it's non-working state or wait until I get basic working plugin before I donate? Thanks, Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Showcase Example and Eclipse
Don't forget to add the profiles switch (-Papps,plugins) that will gen your eclipse files under apps and plugins... $ cd svn/struts/struts2 $ mvn eclipse:eclipse -Dwtpversion=1.0 -Papps,plugins -- James Mitchell 678.910.8017 On Oct 18, 2006, at 1:57 PM, Don Brown wrote: If you want to tweak the showcase app, the easiest way to run it is from the source code. In the source distribution of 2.0.1 or a checked out trunk, change to the apps/showcase directory. From there, you can run the eclipse and jetty maven plugins. Don On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote: Don, Where do I run the mvn command from? From the exploded code in Tomcat? Or from the download? Sorry, a bit lost here. Thanks, On 10/18/06, Don Brown [EMAIL PROTECTED] wrote: Simply type, from the command line, mvn eclipse:eclipse and Maven will generate all the Eclipse-related project files. Add the '-Dwtpversion=1.0' flag to also generate Web Tools Project files. For running the thing, I've had good experiences using the Jetty Maven 2 plugin. See our Bootstrap tutorial - http://cwiki.apache.org/confluence/display/WW/Bootstrap I also found this useful: http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven +Jetty+Plugin+inside+Eclipse Don On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote: I have downloaded and deployed the showcase examples for Struts2 as a learning tool. I have been going through the code file by file, and was wondering if there was a better way to handle this. I have Eclipse IDE and was wondering if the project could be imported into Eclipse, so I can walk the classes easier. I am new with Eclipse and also Struts2. So I am looking for advice on how I could configure this and also be able to make changes and see the changes within the web app. Make sense? Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClientAbortException..urgent
That's not really specific to file size, or even Java in general. The root of this exception stems from the lifecycle of an http request. When a browser makes a request, the connection is maintained until the server completes the bytes it told the browser it was going to send. If you hit stop on *any* request before it is finished, you may or may not see this exception in the logs. To summarize, I wouldn't worry too much about this, there's nothing you can do to prevent it, that's just one of the quirks with web servers and clients. -- James Mitchell 678.910.8017 On Oct 10, 2006, at 1:49 AM, B.Sridhar wrote: Hi I am writing a struts appliction to download a file that is on the server. When the user clicks the download button, its displaying the open,save cancel window. Everything is working fine for files of small sizes ie. less than 50 kb..but if the file size is mor and when I click cancel its displaying a ClientAbort Exception. ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error Oct 9, 2006 11:08:25 AM org.apache.struts.action .RequestProcessor processException WARNING: Unhandled Exception thrown: class org.apache.catalina.connector.ClientAbortException Please help me how to avoid this situation. -- B.Sridhar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.2.9 - build failed
The 1.2.x nightly builds are running just fine. I don't know how you're kicking off Ant, but here's what the nightly script does: $ ant download-dependencies nightly -- James Mitchell 678.910.8017 On Aug 30, 2006, at 1:01 AM, Laurie Harper wrote: Darren, the examples serve as documentation to help you see how to use various features of Struts; you can skip building them and still end up with a fully functional framework. I don't know why the build isnt' working correctly for you, but perhaps that's enough to allow you to move forward. L. Darren Hall wrote: Update: I found out why the struts.home property is not holding a value. It is previously defined in the build.properties file used by the build process. Apparently, properties defined in the build.properties file are not mutable? In any case, is there a point to me attempting to compile these examples, or are they not in any way beneficial, other than simply as examples? In other words, do they add any functionality, or can I remove the calls to compile these from the master build.xml file? Thanks, Darren -Original Message- From: Darren Hall [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 4:38 PM To: 'Struts Users Mailing List' Subject: Struts 1.2.9 - build failed I am attempting to build struts 1.2.9 and having issues. It seems to build the main struts.jar fine, but fails later in the process when building mailreader. I guess I have two questions. First, is there any value in building the struts-examples? Do they provide any functionality to the framework? Second, if I do want to build the examples, why is the environment not keeping the struts.home property? The struts.home property in the struts-1.2.9/src/struts-examples/ mailreader folder is not being set correctly (or being overwritten). From the build.xml file, the struts home is set on line 36 as follows, where the basedir is specified as . 34 !-- Dependency home directory defaults -- 35 property name=server.home value=C:/Program Files/Apache Group/Tomcat 5.5/ 36 property name=struts.home value=$ {basedir}/../../dist/ Later when the build process runs, the value of struts.home is echoed to the command line. The value that is displayed is /../../ I have tried manually overwriting the struts.home variable bu changing line 36 in the build.xml file to read property name=struts.home value=C:/Program Files/Apache Group/Struts-1.2.9/src/dist/ But when the build executes, I still see the value of struts.home displayed as /../../. Has anyone run across this before, or does anyone have an idea why this might be occurring? (Of course, if I don't need the examples, ignore question 2.) Thanks, Darren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Book?
Ha! If Holmes can predict the future, I've got a few lottery tickets I'd like him to look over for me ;) -- James Mitchell 678.910.8017 On Aug 30, 2006, at 11:00 AM, Simon Chappell wrote: On 8/30/06, James Holmes [EMAIL PROTECTED] wrote: Thanks for the vote of confidence Ted. A 2nd edition of my Struts: The Complete Reference will be out at the end of the year that is up to date with Struts 1.3. Is that an unofficial announcement of the 1.3 release date? :-) Simon -- www.simonpeter.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IRC #struts on freenode
I need to find a decent IRC client for OS X. -- James Mitchell 678.910.8017 On Aug 26, 2006, at 11:00 PM, Wendy Smoak wrote: If anyone is on IRC, we have a channel: #struts on chat.freenode.net . It now (well, if I'm there,) has a strutsbot, though it doesn't know much yet and isn't *nearly* as talented as fajita on #apache. Drop by and teach it a few things. :) -- Wendy http://wiki.wsmoak.net/cgi-bin/wiki.pl?FreenodeJavabot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] Strutter 0.5rc
Didn't you already post this once? -- James Mitchell 678.910.8017 On Aug 28, 2006, at 1:24 PM, [EMAIL PROTECTED] wrote: I have build a solution to simplify Struts 1.2.x configuration and Form handling. It's an annotation style concept working with JDK1.4. Configuration effort is reduced by following some conventions we are using in our Struts projects. Please have a look http://strutter.sourceforge.net Any feedback would be great. Best wishes, Ingo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with JSTL and Struts html:link tag But Not with a
You are correct. Nesting tags do *not* work. Try this... jsp:useBean id=paramMap class=java.util.HashMap scope=page/ c:set target=${paramMap} property=id value=${obj.id}/ c:choose c:when test=${var=='dog'} html:link action=/strutsAction name=paramMaptext/ html:link /c:when /c:choose -- James Mitchell 678.910.8017 On Aug 24, 2006, at 1:19 AM, Vishal Seth wrote: Nested tags...i guess does not work.. -Original Message- From: Mississippi John Hurt [mailto:[EMAIL PROTECTED] Sent: Thursday, August 24, 2006 10:48 AM To: Struts Users Mailing List Subject: Problem with JSTL and Struts html:link tag But Not with a Why is it that when I do the below with struts html:link tag I get an error Unterminated lt;html:link tag due to using JSTL c:out... c:choose c:when test=${var=='dog'} html:link href=/strutsAction.do?id=c:out value=${obj.id }/text/html:link /c:when .../c:choose but when I use a regular HTML tag, its able to handle the JSTL c:out fine? c:choose c:when test=${var=='dog'} a href=/app/strutsAction.do?id=c:out value=${obj.id}/text/a /c:when .../c:choose Any ideas? I very much want to use the Struts tag and JSTL so I dont have to hardcode the appname in the href. MASTEK Making a valuable difference Mastek in NASSCOM's 'India Top 20' Software Service Exporters List. In the US, we're called MAJESCOMASTEK ~~ Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers. ~~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 snapshot build work on JDK 1.4.2?
On Aug 10, 2006, at 8:42 PM, Ted Husted wrote: Do we use these from the command line or with a Maven plugin or should use antrun maven plugin to do it? I just filtered the JARs from the command line. I suppose the Maven plugin would work too. I think it might be best to keep this a separate JAR distribution and make the cannonical target Java 5. Ok, sounds good. In any case, what is the targeted output for all of this? I uploaded the test distribution from August 2 to my home directory. * http://people.apache.org/~husted/struts2-core-j4-2.0.0- SNAPSHOT-20060801.zip What about the apps? Are those artifacts? Or are they just intended to be run in place? Seems like, at one point, the nightly build used to create sample apps. Here's what I run for the nightlies: $mvn -Pextras install Has the profile name changed? http://people.apache.org/builds/struts/nightlies/ /2.0.x/struts2-j14-api-2.0.0-SNAPSHOT-20060804.jar /2.0.x/struts2-j15-api-2.0.0-SNAPSHOT-20060804.jar I'd keep the J4 as a special distribution and leave J5 as the default. So I'd say keep what we got as it is, and just add the ZIP with a translated J4 JARs. Ok, I'll figure something out. Probably add a 1.4-compatible/ directory inside of the 2.0.x directory and drop nightlies of XWork- j4 and s2-j4 in there. Same schedule. Thanks -- James Mitchell 678.910.8017 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 snapshot build work on JDK 1.4.2?
Looks like I'll have some time this weekend to work on this. And so I wanted to get some feedback on this process. How do we want to do this? Are both Retrotranslator and Retroweaver necessary for full 1.4 compatibility? Or will using just 1 suffice? Do we use these from the command line or with a Maven plugin or should use antrun maven plugin to do it? In any case, what is the targeted output for all of this? http://people.apache.org/builds/struts/nightlies/ /2.0.x/struts2-j14-api-2.0.0-SNAPSHOT-20060804.jar /2.0.x/struts2-j15-api-2.0.0-SNAPSHOT-20060804.jar I think for now, I'll add this process manually (as part of my nightly bash script) and then we can work out the details later. -- James Mitchell 678.910.8017 On Aug 2, 2006, at 2:19 PM, Ted Husted wrote: Feel free. Note that I included a README and the relevant license files in the S2-for-J4 distribution, which we might want to include in the nightly process. -T. On 8/2/06, James Mitchell [EMAIL PROTECTED] wrote: Would you like me to add this to the nightly process? -- James Mitchell 678.910.8017 On Aug 2, 2006, at 6:38 AM, Ted Husted wrote: On 8/2/06, Don Brown [EMAIL PROTECTED] wrote: Ah, yeah, we'll have to run XWork through the retrotranslater/ weaver too, as it is built with Java 5. Ted, can you make the build changes to XWork too? If you need commit access, let Pat or Jason know. For now, I just ran the J5 JARs through the translator and posted the ZIP. There isn't a build per se yet. * http://people.apache.org/builds/struts/2.0.x/nightly/ I added a translated XWork JAR to the build from yesterday. I wish I could test this myself, but I just don't have any discretionary time this week. -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- HTH, Ted. * http://www.husted.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unlock Your Hidden Talent, Today...
Um, ya. Thanks for playing! -- James Mitchell 678.910.8017 On Aug 1, 2006, at 9:15 AM, John wrote: Is there something about yourself that you'd love to change? If you could create positive changes in yourself RIGHT NOW would you? www.HumanDataTransfer.com --- MAF Anti-Spam ID: 20060801082756H1v3CkI2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 snapshot build work on JDK 1.4.2?
Would you like me to add this to the nightly process? -- James Mitchell 678.910.8017 On Aug 2, 2006, at 6:38 AM, Ted Husted wrote: On 8/2/06, Don Brown [EMAIL PROTECTED] wrote: Ah, yeah, we'll have to run XWork through the retrotranslater/weaver too, as it is built with Java 5. Ted, can you make the build changes to XWork too? If you need commit access, let Pat or Jason know. For now, I just ran the J5 JARs through the translator and posted the ZIP. There isn't a build per se yet. * http://people.apache.org/builds/struts/2.0.x/nightly/ I added a translated XWork JAR to the build from yesterday. I wish I could test this myself, but I just don't have any discretionary time this week. -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ot] CipherTrust is looking for some Struts talent
CipherTrust, the global market leader in messaging security, provides layered security solutions to stop inbound and outbound messaging threats. http://www.ciphertrust.com/ If you know Struts, you know that there is no shortage of opportunities, and if you know your stuff (you know who you are) my employer is looking for you. CipherTrust is looking for Java Developers who work well in a team environment. Contract positions are possible, but applicants seeking perm will take priority over those seeking contract. CipherTrust is currently seeking Java developers with solid skills in the following areas: Required Skills: • Minimum 4 years experience as a developer working with Java (Servlet, JSP) • Minimum 3 years experience with Struts (html, css, javascript, Tiles, Struts-Menu, etc) • Minimum 3 years experience with MySql • Minimum 3 years experience with Database design, SQL, JDBC • Minimum 3 years experience with Unix (pref. FreeBSD) and Linux (any flavor) Bonus points: • AJAX • Spring Interested candidates should send me (offlist of course) their resume in Word, PDF, or whatever you like. -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FRIDAY] Struts poetry
LMAO! A, the good ole days :) :) -- James Mitchell On Jul 14, 2006, at 3:00 PM, Wendy Smoak wrote: Wandering around the wiki, I ran across * http://wiki.apache.org/struts/StrutsHaiku and * http://wiki.apache.org/struts/StrutsLimerick -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3.x snapshot is not available
Thanks Wendy, I'm sorting through hardware issues and hopefully I'll make some more headway on this by the end of the week. -- James Mitchell On Jun 23, 2006, at 6:04 AM, Wendy Smoak wrote: On 6/22/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 6/22/06, Michael Jouravlev [EMAIL PROTECTED] wrote: The 1.3.x snapshot location [1] pointed to from the 1.3.5 release page [2] results in Not Found response: The requested URL /builds/struts/maven/trunk/nightly/struts-action/ was not found on this server. Was it moved to another location or is this a temporary technical issue? There is a thread on the dev list about this. James is working on the nightly builds and things are moving around. The assembly snapshots are back (for the moment) at: http://people.apache.org/builds/struts/action1/1.3.x/assembly/ -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conditional validation
The newest version of the Struts mailreader sample app shows a best practices approach to just what you describe. Take a look at that and see if you might be able to do the same. (Specifically, look at the paths for Edit* and Save*) HTH -- James Mitchell On May 4, 2006, at 9:40 AM, Mulligan, Scott H wrote: I just started playing with the commons-validator and came across a problem with how I have my Struts application structured. I am using dispatch actions that have load and save methods. In the load I retrieve the reference data needed to build the page and then forward to the jsp page. In the save method I process the form data. My problem is that the validation is defined at the action level in the struts-config file. Therefore, my validation fails before I even have a chance to render the page. Do I need to separate the load and save methods into different actions or is there a better way to handle this? Thanks in advance for any advice you can provide. Scott Mulligan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple pattern mapping
Have you seen this one? http://sourceforge.net/projects/jsecurity/ -- James Mitchell On Apr 27, 2006, at 8:25 AM, Ted Husted wrote: Sadly, multiple extension mappings is not supported by Action 1 (*). There can only be one. The usual workaround is to use different folders to represent different authentification types. So, you'd have to have something like /auth/something.do versus /open/something.do. For more complex authentification tasks, many people find ServletFilter and Acergi useful. * http://securityfilter.sourceforge.net/ * http://www.acegisecurity.org/ HTH, Ted. (*) Albeit, multiple Action extensions is supported by WebWork2/ Action2. On 4/25/06, Mike Korcynski [EMAIL PROTECTED] wrote: Hi, I'm trying to use 2 different pattern mappings to the action servlet, and have one handle protected action and one handle public actions using security-constraints, the mappings look like this: servlet-mapping servlet-nameaction/servlet-name url-pattern*.auth/url-pattern /servlet-mapping servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping The problem is in my form.jsp I specify my action specifically as authorize.auth, and yet when the page renders the action is always changed back to authorize.do html:form method=post action=/authorize.auth form name=authorizeForm method=post action=/sample/ authorize.do The action mappings in my struts-config is like this: action path=/authorize input=/form/login.jsp name=authorizeForm type=blah.action.AuthorizeAction scope=request validate=false forward name=success path=/form/mainmenu.jsp/ forward name=failure path=/form/blah.jsp/ /action Any idea what could be wrong? Thanks for your help, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- HTH, Ted. ** http://www.husted.com/ted/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: looking for struts authorization authentication
You might also look at jsecurity. It is free/lgpl. http://www.jsecurity.org/ -- James Mitchell On Apr 19, 2006, at 8:40 AM, C. Grobmeier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This has been recommended on this list before a while: http://www.acegisecurity.org/ A. Lotfi wrote: Hi, I looked for a struts that different categorie of users login and got forwarded to different pages, please help me if you have a tutorial or web application . thank you, your help is appreciated. - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1cent;/min. - -- Christian Grobmeier Possessed Management Hurlacher Str. 5 - 86853 Langerringen - Germany E-Mail: [EMAIL PROTECTED] Mobil: +(49)(0)175 57 66830 Fax: +(49) (0)8232 959119 Web: http://www.possessed.de -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFERi/Zkv8rKBUE/T4RAm8ZAJ9C0lWbrMJTUvzoOcrnKxhyira5oQCeLM6m vT3SQLzJndVSjxUxuDWU80U= =SUXG -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Plug-In for in-memory caching/refreshing?
I've done this with Spring + EHCache. I used a method interceptor so both my struts code and my facade implementation was none the wiser. http://opensource.atlassian.com/confluence/spring/display/DISC/Caching +the+result+of+methods+using+Spring+and+EHCache You could even get creative and abstract the caching mechanism so you could plug in whatever you wanted. -- James Mitchell On Apr 14, 2006, at 11:27 AM, news.gmane.org wrote: In a struts app, I would like to have some objects which load themselves via db queries on app startup, and remain in memory for quick information access. They would need to refresh different pieces of data on different schedules, and also be triggered manually to refresh based on some user action. In some cases, I would even like to modify these in-memory objects and have that information persist back to the database. Are there any utilities or plugins which exist that would do the job of running a separate thread to manage objects like this? I'm not looking for something like Hibernate - I don't want a persistence layer between my app and the database. I need a way to manage objects that cache information, refresh intelligently, and optionally write their information back to some tables when modified. The end goal is to speed up critical screens which rely on complex data retrieval and business rules. Any suggestions? -- Matt Kruse http://www.JavascriptToolbox.com http://www.AjaxToolbox.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts newbee
If you mean 'associated' by a single action configuration, then no. However, you can reuse the same Action class for a different path and use a different ActionForm. Does that answer your question? -- James Mitchell On Apr 6, 2006, at 12:45 AM, [EMAIL PROTECTED] wrote: Hi , I am new to struts.. although i have a couple of years experience in java/j2ee. i have a question. Can two ActionForms be associated with the same Action class .. if yes how. Regards, Praveen Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maintaining human standards [was Re: [FRIDAY] Re: has struts reached the saturation]
Now, it's obviously a valid question that Struts developers should answer. It _is_ an invalid question, that's why everyone is ignoring you. And now, I'd like to respond to you with your own words, from your own not-so-kind off list response to me (of course, censored because this is a public list)... ... this is sh** is getting personal now. Who the f*** do you think you are? You must be one ill-bred little f***. I don't have to give you any feedback on your lame-a** website. I don't have to give you anything. I don't owe you or any of your cohorts a f***ing thing. If you want to start maintaining human standards of behavior, the next time somebody gives you any feedback on your work, here's what you should say: Thank you. I guess nobody ever taught you that. Do you know how bad I made you look there? I hope I completely humiliated you. If you f*** with me any more, I'll humiliate you some more. People like you are very very bad for open source. Some people's first experience of an open source project is something like Struts full of arrogant little a**-licking toady bastards like you. F*** you, you contemptible little sh**. Now that that's off my chest, I shall forever send your replies to / dev/null. Have a wonderful day. -- James Mitchell P.S. Thank you On Mar 27, 2006, at 2:53 PM, Jonathan Revusky wrote: Emmanouil Batsis wrote: Jonathan Revusky wrote: Struts has also fallen further and further behind technically in its space. (This has what has led to the Webwork merger so that the Struts umbrella could offer something reasonably up-to-date.) [Note: This is not a reply to Jonathan personally] Yes, note that I am actually not the best qualified person to answer this. Now, it's obviously a valid question that Struts developers should answer. They decided to abandon work on Struts 1.x and bring Webwork over here and work on that. So they really should be the ones to answer your question. However, one gets the sense that they don't want to answer such questions I keep seeing posts claiming Struts Action/Classic is technically old etc etc; is there a resource available summarizing how exactly this is true? It did not take me long using google to find the following page: http://wiki.opensymphony.com/display/WW/Comparison+to+Struts Of course, that list was surely worked up by the Webwork people and is thus, not from an unbiased source. Still, I would suppose that the points there are truthful. In any case, the fact is that the Struts developers have decided that they prefer to move the Webwork code over here and work on that, so they have accepted that Webwork is better. I think that has to be taken at face value, since, you'd think that most people in their situation would prefer to have a tooth extracted rather than accept that their work is inferior. But that is what happened. Regards, Jonathan Revusky -- lead developer, FreeMarker project, http://freemarker.org/ FreeMarker group blog, http://freemarker.blogspot.com/ Thanks, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Tutorial
As far as products, right now there is Action and Shale. Most people familiar with Action might just say 'Struts' and there isn't usually a misunderstanding. I suppose the same confusion exists when someone says 'Apache'. Do you mean the organization or the server? -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Mar 24, 2006, at 10:54 AM, Dave Newton wrote: Andreas wrote: Hi, I'm a newbie in Struts so I'm looking for a struts tutorial on the net. Which Struts? See, I don't like that I have to ask that question, and on this I completely agree with Jonathon etc. :P Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quartz and struts
http://www.amazon.co.uk/exec/obidos/Author%3DCavaness%2C%20Chuck/ 203-3540950-6362343 -- James Mitchell On Mar 24, 2006, at 12:13 PM, Abdullah Jibaly wrote: Hi all, Is there a good resource explaining how to use the Quartz scheduler with Struts? Any links/advice would be appreciated. Thanks, Abdullah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Download through Outputstream
Hi Koketso, I don't think you are going to be able to do what you want, at least not the way you describe. You won't be able to do anything server side with the binary stream (pdf) response once it is complete and you won't know on the client side when the pdf is finished or hung or whatever. You can't even guarantee that the user even downloaded it. When prompted for a download location, some browsers download in the background while the users decide where to put it, which they can always cancel at any point before, during, or after the response is complete. What you could do is present the user with a screen with something like ... Your download should begin in a moment, if it does not, click here - and link 'here' to the pdf download, all the while using a meta-refresh tag on that page that sends the user to the url to download the pdf. That's pretty much how downloads are done at sf.net, eclipse.org and many others. The difference would be that you would also present them with more instructions on the same page, what to do when the download was finished. The key is that you would want the user to be prompted to downloaded the file, and not let it load in the window or they'll lose those instructions. Worst case is that they don't read what you wanted them to do, but that's the lesser of all evils in all approaches. If anyone has a better solution, I'd love to hear it. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring 678.910.8017 - Original Message - From: Mabusela, Koketso K [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, March 23, 2006 4:06 AM Subject: Download through Outputstream Hi I am using struts and my application downloads data in a PDF file. To make sure the download was successful I close the stream or flush it. Now I want to continue with my session by forwarding to another Struts action, unfortunately when the request is closed you cannot do a thing. Is there a way to move to another Struts action in this scenario? What if you want to give the user a confirmation screen with additional info? Thanks __ Standard Bank Disclaimer and Confidentiality Note This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Standard Bank Group Limited and/or its subsidiaries (the Group). It is confidential, private and intended for the addressee only. Should you not be the addressee and receive this e-mail by mistake, kindly notify the sender, and delete this e-mail, immediately and do not disclose or use same in any manner whatsoever. Views and opinions expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or damages whatsoever and howsoever incurred, or suffered, resulting, or arising, from the use of this email or its attachments. The Group does not warrant the integrity of this e-mail nor that it is free of errors, viruses, interception or interference. Licensed divisions of the Standard Bank Group are authorised financial services providers in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 (FAIS). For information about the Standard Bank Group Limited visit our website http://www.standardbank.co.za ___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FRIDAY] Re: has struts reached the saturation
Jonathan, I can't seem to find your patch to fix the website anywhere in bugzilla. Can you point me to it? -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring 678.910.8017 - Original Message - From: Jonathan Revusky [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, March 23, 2006 5:29 AM Subject: Re: [FRIDAY] Re: has struts reached the saturation Henri Yandell wrote: On 3/22/06, Jonathan Revusky [EMAIL PROTECTED] wrote: Henri Yandell wrote: foo.apache.org maps to a PMC, which maps to a coding community, not to a codebase. Henri, I feel I should give you a bit of end-user feedback. I am not active in any apache.org projects, but, obviously, it happens quite frequently that I go visit the front page of a given apache.org project, to check it out for whatever needs I have at that moment. ´ FYI, when I visit foo.apache.org, I am not there for the PMC or whatever ASF bureaucratic construct. I'm there for the code. In general, when I visit the front page of a project, I like to be able to figure out what the thing is fairly quickly. This is definitely a problem with Struts currently. So that's a website issue ie) how to join/find the community rather than an issue in how the community itself is structured. Do you have suggestions to improve the Struts website so that things are more clear? There's not a website at the ASF that couldn't be made a bit clearer. Well, just go to http://struts.apache.org/ and look at it and imagine that you don't know anything about what struts is. I put it to you that the reader who hits your front page should not be supposed to know what the thing is. What is strange about it is that whoever wrote the page tacitly recognizes that it is a confused jumble and spends most of the page trying to rationalize it. Why two frameworks? followed by Why so many subprojects? What is also patently obvious is that the two rhetorical questions are posed on the page, and never, AFAICS, answered satisfactorily. And then the text there just assumes all kinds of insider knowledge that the reader of the front page really IMHO should not be assumed to know. Now, you can go look at the page, Henri, and maybe you think it's okay. If you do think the whole thing is really A-OK, then we have a difference of opinion. Here is the basis of it: Who is the intended audience for this text? I guess we have different answers for that. (I could almost characterize it as that the author's intended audience in Why two frameworks? and so on is himself!) I don't think this is a problem of website organization. The website problem _reflects_ a deeper problem. Regards, Jonathan Revusky -- lead developer, FreeMarker project, http://freemarker.org/ So: If Shale, Struts 1.x and Struts 2.x are being developed by the same community - Nah, my understanding is that this isn't really the case. There is a Struts 1.x which is basically in maintenance mode. There is a Struts Action Framework 2.x which is basically Webwork (until recently a completely separate *competing* product developed outside of ASF) and that's a completely separate team at the moment. Right, so two communities merging. This is all good - it's probably natural that you'll see the old hands maintaining the 1.2/1.3 releases instead of the Webwork guys, but who knows. Plus there will be new committers, maybe some who just focus on 1.3 because the community wants to keep it alive. And Shale is something with a completely different approach, and I assume, has a separate team. Team-wise, everybody in Struts has access to all the code. They're also using the same mailing list, and are components in the same Bugzilla project. All great ways to keep the community together. Looking at viewcvs quickly; I immediately see overlap. People committing to shale who are committing to action-1; and the same for action-2. There will definitely be a focus for each person - but it's easy to see cross-pollination at work. Struts is a cool community. The users are actively involved, in terms of answering and asking; people obviously care about the community - as shown by both your and Dakota's questions and by the desire of the committers to work to keep things together; and there's an active future happening plus legacy being actively maintained by both contributors and committers. Yes, shale and action might move apart as the months/years go by and at some point they might want to separate, but right now it doesn't look like an unhealthy situation to me. These things tend to evolve quite happily - someone like yourself raises a question of whether it's time to make an evolutionary leap, and the community responds. In the case of this thread I think it's not time for the leap. Hen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: [FRIDAY] Re: has struts reached the saturation
and model (as you say), proving yet again that it isn't so much about the code as it is about the community. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring 678.910.8017 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Consequences of open commit privileges (was: has struts reached the saturation)
I like your analogy, however I disagree with the following: Core Struts people are moving to JSF/Shale ... That's not true for everyone. The whole reason Shale is not Struts 2.0 in the first place is that a majority of the Struts leadership decided that JSF should not be the future direction for Struts. Some people still have not bought into JSF and some probably never will. For me, I wish I had the time to mess around with JSF/shale, but that doesn't mean I am 'moving to JSF/Shale'. Several months ago I thought I was going to be working on a JSF project, but it turned out that we went with Struts 1.2.7 instead. -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Mar 23, 2006, at 4:54 PM, Michael Jouravlev wrote: On 3/23/06, Jonathan Revusky [EMAIL PROTECTED] wrote: In order to be able to offer something reasonably state of the art, the Struts community is basically abandoning the Struts 1.x codebase and inviting the Webwork people in. The Webwork 2.2 codebase then gets rechristened Struts Action Framework 2. But what has happened is definitely a failure of the Struts people to stay competitive technically. You like to write a lot, but you don't like to read. You don't find searching for answer yourself quite entertaining too. I will try again to explain the possible reason for Struts-WebWork move, as *I* see it: Core Struts people are moving to JSF/Shale, leaving the original Struts Classic niche up for grabs. This niche could (and still can) be taken by a next best thing in action frameworks whatever it may be, WebWork or Stripes or Spring MVC or something else. In this case the public perception would have been that Struts lost the battle. Struts guys made a smart move bringing WebWork in as Struts 2.0. The name is preserved and all that is related to the name is preserved too, not just software but people as well. This way Struts originators and committers retain their respectable status, while WebWork guys get the market: I was a Struts committer once - Oh, cool! I've heard that version 2.0 will be really a leap forward. Very, very nice deal for all interested parties. Committers work on new interesting stuff, releaving themselves from boring 1.x maintenance. Six years, are you kidding? After all, they work on a new product now, so it will be beneficial for the community too. WebWork guys get the recognition, the market and the influence. Struts Action users get new version of the framework. Who cares that it was called WebWork before? Struts Classic needs/needed a serious makeover anyway, so why not to take others' code instead? Do you care that Pontiac GTO is actually a Holden Monaro, which is heavily based on Opel Omega? GM did not have anything like it anyway, they killed Camaro/Firebird because it was a farm tractor not a sports car. Bringing in GTO was an answer to public demand for a new muscle car. Was this a reasonable choice? Um, for true Camaro aficionados, maybe not. For them, Camaro will probably be revived in couple of years. But software is not exactly like automotive industry anyway. GM does not give away GTO for free. Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FRIDAY] taking this discussion somewhere else
LMAO..I like this one: http://www.rider.edu/suler/psycyber/listbulb.html -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Mar 23, 2006, at 8:35 PM, Hey Nony Moose wrote: Hey Nony Moose wrote: It's FRIDAY, have a bloody laugh for crying out loud! here ... take your pick: http://www.google.com.au/search?hl=enq=%22how+many%22+%22does+it +take+to+change+a+light+bulb%22btnG=Google+Searchmeta= - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
If it walks like a troll and talks like a troll [was: has struts reached the saturation]
Quite an interesting thread so far. There are certainly a lot of varying opinions. I would like to send a _BIG_ THANK YOU to all of you who have resisted the urge to respond to the useless troll drivel that continues to plague our community. http://wiki.apache.org/struts/DefineTroll http://wiki.apache.org/struts/DefinePita -- James Mitchell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: has struts reached the saturation
What if --- dangerous I know! What if there existed a JSF 1.2 implementation built with WW2 at the core? I'm definitely not an expert with either JSF or WW2, however, I've looked at both just enough to be convinced that it is possible. WW2 has everything I already love about Struts and it even comes with basic support for components, full Spring integration, etc, etc. Am I just crazy or what? Would that not let everyone have their cake and eat it too? -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Mar 16, 2006, at 6:26 PM, Paul Benedict wrote: I believe Dakota is correct in this area. The problem is not with JSF itself, but the way the Struts team has divided itself into competing camps. JSF and Struts are competing because their approaches are orthogonal; it doesn't make any sense to do both unless you are on a migration path. When you have really great talent like Craig leave the Action Framework to contribute putting his total/almost total effort into Shale, it sends the signal TO ME (my opinion here) of the boat is sinking (Struts) and the next big thing (JSF) is on the horizon. Craig has put a ton of time and effort into Shale and I think that's awesome, but at the same time, I wish he would do the same to Struts. The Action Framework needs a lot of constant dedication to make it better, and there are ton of great contributions on board, but Craig appears to have an abundance of time and effort no one else has :-) and I wish that talent was retained for Struts. I think Struts does have a future, but I believe there needs to be honesty about the competition here. Struts DOES COMPETE against JSF and Shale, and putting these competitors into one mailing list will definitely bring out the passion on both sides. -- Paul --- Dakota Jack [EMAIL PROTECTED] wrote: I don't think JSF is polarizing. I think that the way it has been pushed into areas it does not belong is polarizing. There is absolutely nothing wrong with JSF, in my opinion, but there is something wrong with the way its advocates have strong-armed and misled people. That's what I have disliked. On 3/15/06, Greg Reddin [EMAIL PROTECTED] wrote: On Mar 15, 2006, at 11:26 AM, Frank W. Zammetti wrote: Isn't it interesting how polarizing JSF seems to be? I don't know about you, but I talk to more people with a strong opinion either way than most other technologies. The only other one I can think of in the same vein is EJBs. Seems like you either love EJBs or you hate them, and the same seems, largely, to be true of JSF. There seems to be relatively few of us in the middle. I think it's largely because the JCP moved into a space that was already well-populated and people tend to be very skeptical of governing bodies. I think that the simple fact that JSF is a standard means there's a certain slice of people who will automatically refuse to accept it. I wonder how different the response would be if the exact same technology had been developed by ASF or FSF without the involvement of a standards body. Conversely, I wonder how different the response to Struts would've been if it had started out as a JSR. Developers seem to have the most difficult time with the not created here syndrome. At my last job I was on an architecture team for a large firm. We inherently held great skepticism for any framework handed to us that we didn't develop ourselves. And any framework we developed ourselves seemed to be completely rejected by everyone else. The portal software I'm working with right now really needs to be rewritten IMO. The only frameworks that seem to gain widespread acceptance are those that are developed in an open community rather than a closed one. Hmm. But there's always politics and egos involved. I strive to be the developer who can walk into any framework already in use and get work done without complaining about how broken everything is. I'm still a long way from achieving that goal. Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Extending PropertyMessageResources
Extend the factory as well, and specify that in the struts-config.xml -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Mar 15, 2006, at 1:41 PM, Mulligan, Scott H wrote: I need to customize the order in which resource bundles are read for messages. Specifically, I have default bundles for groups to which a country belongs. First I search the bundle for the language/ country (fr_FR). If I can't find the property, I want to search the group resource bundles to which France belongs (there can be multiple - i.e. fr_Group1, fr_Group2). After that I would look in the bundle for the language (fr) and the default bundle. My research shows I need to extend the PropertyMessageResources class. How can I indicate to Struts objects that they should use my class instead of PropertyMessageResources? Thanks, Scott Mulligan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: User metrics
Probably a filter would be the easiest way to do this. -- James Mitchell On Mar 9, 2006, at 7:40 AM, Raghuveer wrote: How to Catch ,how much time the user spent time in each JSP Page in my JSP web Application - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database For Resource Properties
There's an old implementation here: http://sourceforge.net/project/showfiles.php?group_id=49385 Look for 'Message Resources Impls', there is a version of the struts- example (Mailreader) that uses a database instead of property files. -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Feb 24, 2006, at 1:26 PM, Jim Reynolds wrote: Laurie Thanks for the email That is what I would like to do... and hear this talked about quite a bit. Problem is I do not know where to begin. This bit resource bundle implementation that loads its content from the database. Then configure Struts with a custom ResourceBundleFactory (in struts-config.xml) which will create instances of your ResourceBundle implementation as needed. Is there anyway you could explain a bit more at depth what is required here? I would like to be able to create a resource bundle implementation that does this, but I don't know if I start by extending a class? Or where I begin my thought process here. Anyway you could explain a bit more in depth? Thanks On 2/24/06, Laurie Harper [EMAIL PROTECTED] wrote: Jim Reynolds wrote: I have a scenario where our site allows users to enter foreign languages in a database. So at anytime, the value of a langage value can change. So I am unable to use the message resources as they are static between server bumps. Anyway, it would be great if I could actually create some type of mechanism to create the properties from the database, and if they change, just update the files. But I am not clear as to how to go about this. Any ideas? I just do not want to go to the database for each language value.. You're going to have to go to the database at *some* point. The best thing to do is just forget about properties files in this case and use a resource bundle implementation that loads its content from the database. Then configure Struts with a custom ResourceBundleFactory (in struts-config.xml) which will create instances of your ResourceBundle implementation as needed. Thanks for any ideas. PS, how do I search this list? Google? Gmane? Or use the various archives listed here: http://struts.apache.org/mail.html#Archives L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validate indexed properties
Have you tried google? http://www.google.com/search?hl=enq=validating+indexed +propertiesbtnG=Google+Search -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Feb 23, 2006, at 1:58 PM, Juergen Schmailzl wrote: thanks, is it possible to use this on the client side? is there a tutorial anywhere how to use it`? - Original Message - From: James Mitchell [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 22, 2006 9:23 PM Subject: Re: validate indexed properties Yes. -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Feb 22, 2006, at 3:16 PM, Juergen Schmailzl wrote: Hi, is it possible to validate indexeded properties with Struts validator (struts 1.2.7) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validate indexed properties
Yes. -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Feb 22, 2006, at 3:16 PM, Juergen Schmailzl wrote: Hi, is it possible to validate indexeded properties with Struts validator (struts 1.2.7) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Ruby on rails VS Java Based Web Applications
Struts (right now!) let's you setup a single action mapping (wild card mapping) and a single LazyDynaBean, and then you can add as many Actions and JSPs as you like (at runtime no doubt) and your changes are instantly available without ever rebooting or touching xml again. Between that and the Spring/Hibernate/Middlegen love boat and you'll think twice about Rails. -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Feb 20, 2006, at 2:10 PM, Garner, Shawn wrote: Can anyone give me pros and cons of using Ruby on Rails verses a Java Base Web Application (Struts, JSF, etc)? Seems like Rails is moving towards less or no configuration files while JSF/Shale is leaning towards more. Shawn ** ** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. ** ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Ruby on rails VS Java Based Web Applications
Elaborating on the benefits of IOC is way beyond the scope of a simple email on a simple mailing list. There are books for that purpose. Once you've decided to use Spring, it provides first class integration with Hibernate. I won't bore you with the benefits of choosing Hibernate either, that's why we have books and articles on that end as well. Among the wonderful things you can do with Middlegen, I have had great success with the plugin for generating Hibernate mapping files from a JDBC source: http://www.hibernate.org/98.html On a recent project, the core developers extended Middlegen to generate both the DAO and initial shell of a service layer. Combine that with a rather thorough and complete set of unit tests and they are able to move the project along as requirements grew and the project matured, all the while guaranteeing 100% test coverage and 100% backward compatibility with the changing API. As I was implementing the front end and facades, it was trivial to hook into any of the generated service objects and get whatever I wanted on the back end. I just love autowiring! It is a rather impressive stack and it would take a lot to convince me that there is a better solution. -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Feb 20, 2006, at 3:35 PM, Garner, Shawn wrote: Can you elaborate on Spring and Middlegen? I've looked at their websites (Spring a couple times before) but I fail to see how they are beneficial to use. Shawn -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 2:26 PM To: Struts Users Mailing List Subject: Re: [OT] Ruby on rails VS Java Based Web Applications Struts (right now!) let's you setup a single action mapping (wild card mapping) and a single LazyDynaBean, and then you can add as many Actions and JSPs as you like (at runtime no doubt) and your changes are instantly available without ever rebooting or touching xml again. Between that and the Spring/Hibernate/Middlegen love boat and you'll think twice about Rails. -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Feb 20, 2006, at 2:10 PM, Garner, Shawn wrote: Can anyone give me pros and cons of using Ruby on Rails verses a Java Base Web Application (Struts, JSF, etc)? Seems like Rails is moving towards less or no configuration files while JSF/Shale is leaning towards more. Shawn * * ** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. * * ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** ** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. ** ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: memory usage
LOL! That's like buying a truck from Ford, and then asking them how much it will weigh when you fill it up. -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Feb 13, 2006, at 5:00 PM, [EMAIL PROTECTED] wrote: Let me know if this is not a very good question. I need to know roughly how much memory a struts application uses. What is the equation? framework objects + application actions and forms + ?? My java classes that represent my business logic won't be in memory until an action executes . . . correct? ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: memory usage
The footprint is still driven by your specific implementation. The more session based form beans you use, the larger the footprint. How should we determine this? I guess you could run the struts-blank application, and measure that. Would that be accurate? Probably not. -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Feb 14, 2006, at 1:07 PM, [EMAIL PROTECTED] wrote: I'm not sure I understand your gasps at my question. To extend on the that's like buying a truck asking them how much it will weight when you fill it up -- I can calculate the memory usage of the parts that I implement on behalf of my application itself. Obviously no one can speak to the size of the memory usage of the applications specific objects that I create, things, I put in session, etc. However, this isn't my question. My question seems answerable enough. I just want to know how much memory the struts framework tend to take up by itself, OR, alternately, what are the areas of memory usage to examine to decide such a thing. Is this really not easily determined? What would make it so hard to determine? --- On Tue 02/14, Dave Newton [EMAIL PROTECTED] wrote: From: Dave Newton [mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Tue, 14 Feb 2006 11:24:58 -0500 Subject: Re: memory usage James Mitchell wrote: LOL! That's like buying a truck from Ford, and then asking them how much it will weigh when you fill it up.That's a better answer than mine; I was just gonna say 15K and call itday.Dave You don't code your Struts in assembly?!--- --To unsubscribe, e-mail: user- [EMAIL PROTECTED] additional commands, e-mail: user- [EMAIL PROTECTED] ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts UTF-8
I went through Web Work in Action in one night. It is an easy read if you've done web development for a few years. I'm very excited about the future of where we are heading! The possibilities are endless. If you are in or near Atlanta, tonight Gavin King will be presenting on JBoss Seam at our local user group (ajug.org), which should be pretty interesting. I'm thinking about asking how well Seam works with Geronimo ;) -- James Mitchell EdgeTech, Inc. http://edgetechservices.net/ 678.910.8017 Skype: jmitchtx On Jan 17, 2006, at 11:47 AM, David G. Friedman wrote: +1 on Struts in Action. The cheesy thing was I ALMOST brought it in for the author to sign when he was talking last week but I decided not to at the last minute. LOL. Now, wouldn't you be better off buying WebWork in Action since Webwork 2.2 will be the base for Struts (Action) 2.0? I bought that book on the weekend but haven't started it yet. I do know I was VERY impressed with what webwork can do now. It felt like it was Struts mixed with Commons chains, then put the two on steroids for expandability. Now, for my disclaimer: I'd looked at Webwork a few years ago before starting with Struts 1.0 (when 1.1 was in beta) and was very impressed with it. If there had been a lot of jobs on dice.com with Webwork in the requirements and a larger community back then, I probably would have chosen Webwork over Struts years ago. So from my point of view, Webwork becoming Struts 2.0, now that I've seen it again via Ted Husted's presentation at a Boston Java Users Group, is a _great_ thing. Regards, David Friedman / [EMAIL PROTECTED] and a man full of opinions -Original Message- From: Ayusman dikshit [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 6:06 AM To: Struts Users Mailing List Subject: RE: Struts UTF-8 Struts in action is a good book. Also professional struts. Regards Ayusman -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 4:35 PM To: user@struts.apache.org Subject: RE: Struts UTF-8 Can anybody tell me the best book to start with struts How to proceed with using struts... -Original Message- From: Alan Comeau [mailto:[EMAIL PROTECTED] Sent: Monday, January 16, 2006 7:24 PM To: Struts Users Mailing List Subject: RE: Struts UTF-8 Should have added a filter mapping in the web.xml filter-mapping filter-namesetCharaterEncoding/filter-name servlet-nameStrutsActionServlet/servlet-name /filter-mapping -Original Message- From: Marcio Ghiraldelli [mailto:[EMAIL PROTECTED] Sent: 16 January 2006 13:38 To: user@struts.apache.org Subject: Struts UTF-8 I am trying to use UTF-8 in my Tomcat 5.5 / Struts 1.2.7 app, but my form beans shows ?? chars in place of international chars. 1) My JSP's has the UTF-8 encoding declaration [EMAIL PROTECTED] pageEncoding=UTF-8% 2) The Tomcat java proccess is running with UTF-8 option: /usr/local/jdk1.5.0_05/bin/java -Dfile.encoding=UTF-8 The third step is to translate the default ISO request sent by traditional browsers to UTF chars, but Struts automatically populate the formbean when the form is submited, how can I do this? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys
Re: Maven version for Struts
I'm sure someone will get to that eventually. Thanks -- James Mitchell 678.910.8017 Skpe: jmitchtx On Dec 21, 2005, at 11:25 PM, Andres Paz Sampedro wrote: Hi, I saw you have worked in the StrutsMaintenanceMaven wiki page, that's why I'm bothering you. I have been trying to build struts myself following the instructions in this page (and in the Struts web-site), it seemed to be something trivial, but I couldn't so I was getting very frustrated. It turned out the problem was the Maven version I was using. First I started with 2.0 which is not even backwards compatible so nothing happened, then I went on with 1.1 but kept getting parsing errors. It was until I started using 1.0.2 (latest stable build) that things started compiling. So my request is, could you add a simple note in the Wiki page recommending to use Maven's latest stable build (if that's what is supposed people to be using)? I hope this will help some other novice developers like myself in the future. Thanks! -a. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven version for Struts
I see that Wendy did this yesterday. Sorry for the noise. -- James Mitchell 678.910.8017 Skpe: jmitchtx On Dec 22, 2005, at 5:37 PM, James Mitchell wrote: I'm sure someone will get to that eventually. Thanks -- James Mitchell 678.910.8017 Skpe: jmitchtx On Dec 21, 2005, at 11:25 PM, Andres Paz Sampedro wrote: Hi, I saw you have worked in the StrutsMaintenanceMaven wiki page, that's why I'm bothering you. I have been trying to build struts myself following the instructions in this page (and in the Struts web-site), it seemed to be something trivial, but I couldn't so I was getting very frustrated. It turned out the problem was the Maven version I was using. First I started with 2.0 which is not even backwards compatible so nothing happened, then I went on with 1.1 but kept getting parsing errors. It was until I started using 1.0.2 (latest stable build) that things started compiling. So my request is, could you add a simple note in the Wiki page recommending to use Maven's latest stable build (if that's what is supposed people to be using)? I hope this will help some other novice developers like myself in the future. Thanks! -a. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] performance of JDBC only, without Hibernate or iBatis
Paul, how many applications have you actually built with Hibernate? -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Skype: jmitchtx - Original Message - From: Paul Benedict [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org; [EMAIL PROTECTED] Sent: Monday, November 28, 2005 7:16 PM Subject: Re: [OT] performance of JDBC only, without Hibernate or iBatis I think I need to clarify: I am not being unfair to Larry's point when I say JDBC is faster. You can't build ontop of JDBC and then be faster than what you built upon. Reflection is slower than normal Java access - and if I can find the stats I will show them. With that said, IBATIS can be faster by its built-in caching so that you don't have to hit the database on every DAO method. That's true. I use caching myself -- and with IBATIS! My point was a narrow point -- on DB access with no thrills, JDBC will always be the fastest since its the most featureless - it is the base standard for ORM tools themselves. I think Larry's point and my point are the same, with differing emphasis. I hope I've been fair :) -- Paul __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Interesting!
Besides the fact that MessageResources was never intended to be changed at runtime, what will you do if you deploy on a server that throws away previous exploded WARs like JBoss? On restart, you just lost those changes. If you need a dynamic bundle, consider using a database-backed MessageResources implementation. While still somewhat of a hack, at least your changes can be persisted in a consistent and safe manner. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Skype: jmitchtx - Original Message - From: Shailesh Barde [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, November 23, 2005 2:26 AM Subject: Interesting! Hello Friends, I have developed a module in my Project to Make changes in the resource Bundle (.properties) file at RunTime by Using java.io.After Writing on a File(Through Action Action Class) the web Server gets Restarted the updated Resource Bundle is Displayed on a JSP.(after Refreshing that Page) As the Web Server gets started for Every change I have made,i have stored the entire changes in a Temporary File (which is different from my current Resource Bundle properties). My Intention is to load that file(temporary file) Through Action Servlet(we are having extended Action Servlet of ours in Application).How can i do this? Please Guide! Regards, Shailesh Barde - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: odd return error
5.5.12 of what? -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Skype: jmitchtx - Original Message - From: Chris Pat [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, November 23, 2005 11:48 AM Subject: odd return error Hello In my Action I am creating an object and storing it in a db. It works fine. The next line I then call a method on the object, does some lookups printoutsa proof that it is working and then on the return gets this message: java.lang.NullPointerException org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:372) It is a boolean method that just returns a computed boolean value that I have a println proving that the falue is false. I have upgraded to 5.5.12 and the latest 1.2.8 struts. Can anyone provide any insight? Thank you. __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Message Resources from DB
What database would you like to use? -- James Mitchell 678.910.8017 Skpe: jmitchtx On Nov 16, 2005, at 3:41 PM, Brian Russell wrote: I know this topic has come up before but.. Does anyone have a suggestion on a method for pulling Message Resources from a DB, as well as making sure a restart of the app isn't required when the message key/value is updated in the db? Is there a recommended, working, solution out there (i.e. OJB solution by James Mitchell, Commons-Resources, etc.)? I tried to implement the solution found in “Jakarta Struts Cookbook” Chapter 2 Section 7 “Accessing Message Resources from a Database”. As you may know, the OJB Message Resources distribution by James Mitchell requires an OJB jar to be available to a webapp attempting to use this approach. However, I am unable to pin down exactly what version of OJB is required to work with this solution. I have currently tried 0.9.4, 1.0.0, 1.0.1, 1.0.1, 1.0.3, with invalid class or class not found errors on any that I choose. My current environment is as such: Java: 1.5.0_05 Tomcat: 4.1.29 Mysql: 3.2.3.58 Struts: 1.2.7 If anyone has been able to implement this and can give me a recommended solution, that would be great. Thank you. Brian Russell www.closerware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Message Resources from DB
No, you are not wrong. Struts will likely be changed to use Commons Resources after a 1.3.x goes GA. Of course, Commons Resources needs to go GA itself soon. I have already written several Database implementations for Commons Resources (Hibernate, iBatis, JDBC-only). However, some of that work is not checked into SVN and some of it (at the time it was written) was not allowed in SVN due to incompatible licensing with ASL. I don't really have a lot of free time to assist, but I'll do what I can. Are you using any O/R frameworks or are you just doing straight jdbc? -- James Mitchell 678.910.8017 Skpe: jmitchtx On Nov 16, 2005, at 4:08 PM, Brian Russell wrote: I got James's solution from: http://sourceforge.net/project/showfiles.php? group_id=49385package_id=7 6369 I also found another solution at: http://sourceforge.net/project/showfiles.php? group_id=49385package_id=1 49742 And I know the team is working on a solution to be included in Commons-Resources and hopefully Struts 1.3.. but I may be wrong about that. Brian Russell www.closerware.com -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 4:00 PM To: Struts Users Mailing List Subject: RE: Message Resources from DB Can you send me the solution to that? I don't have that book, I have an older version without that solution. -Original Message- From: Brian Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 12:58 PM To: 'Struts Users Mailing List' Subject: RE: Message Resources from DB Ah.. the man himself! I'm using MySql. I set up my database with the tables from the scripts in the /sql directory. And of course did the rest of the steps (i.e. updating struts-config, placing xml files in /WEB-INF/classes dir, etc.) Thanks! Brian Russell www.closerware.com -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 3:47 PM To: Struts Users Mailing List Subject: Re: Message Resources from DB What database would you like to use? -- James Mitchell 678.910.8017 Skpe: jmitchtx On Nov 16, 2005, at 3:41 PM, Brian Russell wrote: I know this topic has come up before but.. Does anyone have a suggestion on a method for pulling Message Resources from a DB, as well as making sure a restart of the app isn't required when the message key/ value is updated in the db? Is there a recommended, working, solution out there (i.e. OJB solution by James Mitchell, Commons-Resources, etc.)? I tried to implement the solution found in Jakarta Struts Cookbook Chapter 2 Section 7 Accessing Message Resources from a Database. As you may know, the OJB Message Resources distribution by James Mitchell requires an OJB jar to be available to a webapp attempting to use this approach. However, I am unable to pin down exactly what version of OJB is required to work with this solution. I have currently tried 0.9.4, 1.0.0, 1.0.1, 1.0.1, 1.0.3, with invalid class or class not found errors on any that I choose. My current environment is as such: Java: 1.5.0_05 Tomcat: 4.1.29 Mysql: 3.2.3.58 Struts: 1.2.7 If anyone has been able to implement this and can give me a recommended solution, that would be great. Thank you. Brian Russell www.closerware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] MMS safeway.com made the following annotations. -- -- -- Warning: All e-mail sent to this address will be received by the Safeway corporate e-mail system, and is subject to archival and review by someone other than the recipient. This e-mail may contain information proprietary to Safeway and is intended only for the use of the intended recipient(s). If the reader of this message is not the intended recipient(s), you are notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately. == == == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Struts + Spring + Hibernate
You can use [1]Middlegen to [2]generate *.hbm.xml files, then use [3] hbm2java to generate Pojos. [1] -- http://boss.bekk.no/boss/middlegen/ [2] -- http://www.hibernate.org/98.html [3] -- http://hibernate.bluemars.net/276.html Combine this with Spring's OpenSessionInView and the Struts' wild card action mapping, and you'll find yourself developing at lighting speed. In fact, one of my clients have extended Middlegen to generate the following (in addition to the *.hbm.xml files) from any data source: a) a default Dao layer (each of which extends HibernateDaoSupport) b) a base service layer with a stock set of finders using the injected Dao's from (a) c) an extended service layer impl (1 time gen) that extend (b) so future regen's of (b) don't overwright custom code d) unit tests for all generated sources e) all of the xml needed to wire together the Dao and Service layers. All I have to do, is create a new Facade and impl, and with Springs autowiring, my crud work is done. The whole thing is quite impressive and serves as a pretty nice launchpad for a new project...which leads to my next link: https://appfuse.dev.java.net/ -- James Mitchell On Nov 2, 2005, at 11:49 AM, Gaet wrote: Thanks Wendy, yes, this article is a good presentation but it's a pity that there is not a chapter with Hibernate! It seems that only one tutorial exists with these 3 frameworks... Does somebody know if it exists code generator for the interfaces when using these 3 framework? Because, I'm afraid on the number of classes we have to develop to only retrieve one row in a table! Thanks for help - Original Message - From: Wendy Smoak To: Struts Users Mailing List Sent: Wednesday, November 02, 2005 5:16 PM Subject: Re: Struts + Spring + Hibernate On 11/2/05, Gaet [EMAIL PROTECTED] wrote: Are there some developers here who use this solution? Does someone have a good tutorial or sample to indicate? (I've already seen Wiring your web applications with Open Source java..thanks :o)) For the Struts + Spring part, Ted recently posted a link to a good article: http://www-128.ibm.com/developerworks/java/library/j-sr2.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]