RE: Newbie Question
This is illegal (you can't embed tags as attributes): "> If you must use logic such as this, do yourself a favor and switch to JSTL :-) http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html I can't say enough about JSTL. With Struts and JSTL, the only Struts tags you should ever use are the html:form tags and possibly bean:message. -Jacob | -Original Message- | From: Ray Madigan [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 1:23 AM | To: Struts Users Mailing List | Subject: RE: Newbie Question | | Here is my new code: | | ArrayList components = ( ArrayList ) service.gatherAccessory | Bean.getContainer ( ) ); | request.setAttribute ( "components", components ); | | the jsp: | | "> | | | | | | | | | I get the ServletException: | Cannot find bean container in any scope | | If I remove the | It is fine -doesn't fault - doesn't write anything | | If I remove the | It will iterate the list only once. | I have print statements in the Action | | Im stumped? Any Ideas | | I will try Struts 1.0.2 - Except the examples seem to work :-) | | Thanks for your help | Ray Madigan | | -Original Message- | From: Jacob Hookom [mailto:[EMAIL PROTECTED]] | Sent: Monday, February 10, 2003 10:24 PM | To: 'Struts Users Mailing List' | Subject: RE: Newbie Question | | | ArrayList components = (ArrayList) service | | .gatherAccessory(Bean.getContainer()); | | session.setAttribute("someKey", components); | | -or- | request.setAttribute("someKey", components); | | | | | //or request | scope | | | | -Jacob | | | -Original Message- | | From: Ray Madigan [mailto:[EMAIL PROTECTED]] | | Sent: Tuesday, February 11, 2003 12:06 AM | | To: Struts Users Mailing List | | Subject: Newbie Question | | | | Greetings: | | | | I am new to struts, and i have a question that has been giving me fits | all | | day. | | | | I have a large application I am attempting to rewrite in struts, with | | several hundred jsp's and servlets. It currently runs on Tomcat. I am | | using, don't all of you laugh at once, 1.1-b3. | | | | I haveured out some of how struts works from reading the samples and | | groping | | throught the code, but i can't seem to figure out how to make | | logic:iterate | | work. Here are a couple oc code fragments, if someone could point out | | where | | i'm a bonehead, i would appreciate it. | | | | In the Action class: | | ArrayList components = ( ArrayList ) service.gatherAccessory | | Bean.getContainer ( ) ); | | // Error checking and logging etc | | if ( components != null && components.size ( ) > 0 ) { | | System.out.println ( "Nav: Comp: " + components.size ( ) ); | | //txSupport component = new txSupport ( ); | | //session.setAttribute ( Constants.COMPONENT_KEY, components.get | | ( 1 ) ); | | //session.setAttribute ( Constants.COMPONENTS_KEY, | | components.toArray ( as ) ); | | session.setAttribute ( component, components.get ( 0 ) ); | | navForm.setComponents ( components ); | | } | | | | I have tried several alternatives as to how to set the id attribute: | | - an empty instance of the Bean that is contained in the collection | | - the first element in the array | | I have tried to set the name property of the iterate to an array | | all with different errors. The one that worked the best was when | | I pointed the id property of iterate to the first element of the | | Collection. Here i simply got the iterator to iterate the first | | element. In the Action class I have iterated the Collection and | | there are three elements in the list. | | | | In the jsp: | | | | | | | | | | | | | | | | | | | | | | | | The navigateForm has a pair of methods get/setComponents that return the | | Collection. If I put a logic:equal and test a member of the iteration | it | | works in all cases. | | | | I am very perplexed by this situation and any light shed on the problem | | would be appreciated. | | | | Thanks in advance | | Ray Madigan | | | | | | - | | 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: Some questions about struts
Yes, I did notice that they used struts which was also the reason I poked around there in the first place hoping to learn a thing or two :) . Craig R. McClanahan wrote: The server.xml file is read by the org.apache.catalina.startup.Catalina class - see the createStartDigester() method for where it sets up all the processing rules. This is invoked before any of the webapps are actually enabled. The web.xml file for a particular web application (along with the default configuration file $CATALINA_HOME/conf/web.xml) is read in the org.apache.catalina.startup.ContextConfig class -- see the defaultConfig() and applicationConfig() methods. The Digester rules are set up in createWebDigester(). This happens at one of several times: * At startup time, when a element is found in web.xml * At startup time, when a directory, WAR file, or XML file is found in the "webapps" directory * While Tomcat is running, if a new WAR or directory is added to the "webapps" directory * While Tomcat is running, if you use the Manager webapp's "install" or "deploy" commands. The Tomcat admin webapp knows how to write back out to server.xml, but it doesn't actually *read* that file. Instead, it uses an API called Java Management Extensions (JMX) to manage the configuration of all the internal components of Tomcat itself. In Tomcat 4.1, the JMX layer is basically added on top of the existing Catalina architecture, so about the only thing it does is manipulate the configuration in response to admin webapp changes. In Tomcat 5, JMX will be used much more aggressively -- not only for configuration management, but also for things like statistics gathering. It should be straightforward for JMX-enabled management tools to easily configure and manage one or more Tomcat 5 installations. If you look at the sources for the admin webapp, you will also note, of course, that the developers were pretty smart -- they used Struts to build this app :-). Craig - 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: Access SessionBean
Hello: I am not using JBos, but JOnAS instead. When ever i get this message it usually means that the classes that you are passing back and forth between the client and the stub are out of sync. Try to refresh the client side jar files on the tomcat machine. Hope it helps -Original Message- From: Stephen Ting [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 10:48 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Access SessionBean Whenever i try to access a session beans deploy on JBoss from the struts application deploy on Tomcat in seperate machine the following errors occured. If i deploy the struts based application in Tomcat bundle in JBoss there are no problems. Could anyone please help? Regards, Stephen 2003-02-11 14:22:59 StandardWrapper[/web-einout:default]: Loading container servlet default 2003-02-11 14:23:04 action: null java.lang.RuntimeException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: 4.1/webapps/web-einout/WEB-INF/classes/ at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.initBean(Unknow n Source) at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.invokeBean(Unkn own Source) at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.getAllCategory( Unknown Source) at my.com.shinyang.einout.web.EinoutPlugin.initDBInformation(Unknown Source) at my.com.shinyang.einout.web.EinoutPlugin.init(Unknown Source) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j ava:1105) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:934) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36 8) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:2 73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java :245) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java: 307) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Some questions about struts
Yeah, digester is sooo neat that I use it to brush my teeth at night. -Jacob ;-) | -Original Message- | From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 1:28 AM | To: Struts Users Mailing List | Subject: Re: Some questions about struts | | Craig R. McClanahan wrote: | >> | > Digester is pretty cool (if I do say so myself :-). It's what Struts | uses | > to process struts-config.xml files, and what Tomcat uses to read web.xml | > and server.xml files. | Yes it is very cool and nice to use :) . I've done some simple things | with it based on a tutorial I followed from the site. One question | though, I've been poking around the admin webapp source in tomcat, which | file actually reads the server.xml? Or is the contents of server.xml | already made available to the webapp? | | I will check out the commons digester api in further detail. | | > | > The Javadocs are also available online: | > | > http://jakarta.apache.org/commons/digester/api/ | > | > In particular, read the "Package Description" which has a good overview | of | > how Digester can be used. | > | > Finally, the COMMONS-USER mailing list is a good place for general | > questions on Digester that aren't Struts related. | > | > Craig | > | > - | > 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: Some questions about struts
On Tue, 11 Feb 2003, Peng Tuck Kwok wrote: > Yes it is very cool and nice to use :) . I've done some simple things > with it based on a tutorial I followed from the site. One question > though, I've been poking around the admin webapp source in tomcat, which > file actually reads the server.xml? Or is the contents of server.xml > already made available to the webapp? The server.xml file is read by the org.apache.catalina.startup.Catalina class - see the createStartDigester() method for where it sets up all the processing rules. This is invoked before any of the webapps are actually enabled. The web.xml file for a particular web application (along with the default configuration file $CATALINA_HOME/conf/web.xml) is read in the org.apache.catalina.startup.ContextConfig class -- see the defaultConfig() and applicationConfig() methods. The Digester rules are set up in createWebDigester(). This happens at one of several times: * At startup time, when a element is found in web.xml * At startup time, when a directory, WAR file, or XML file is found in the "webapps" directory * While Tomcat is running, if a new WAR or directory is added to the "webapps" directory * While Tomcat is running, if you use the Manager webapp's "install" or "deploy" commands. The Tomcat admin webapp knows how to write back out to server.xml, but it doesn't actually *read* that file. Instead, it uses an API called Java Management Extensions (JMX) to manage the configuration of all the internal components of Tomcat itself. In Tomcat 4.1, the JMX layer is basically added on top of the existing Catalina architecture, so about the only thing it does is manipulate the configuration in response to admin webapp changes. In Tomcat 5, JMX will be used much more aggressively -- not only for configuration management, but also for things like statistics gathering. It should be straightforward for JMX-enabled management tools to easily configure and manage one or more Tomcat 5 installations. If you look at the sources for the admin webapp, you will also note, of course, that the developers were pretty smart -- they used Struts to build this app :-). Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Question
Sorry - the ServletException was: Cannot find bean component in any scope I was doing another experiment attempting to iterate containers and got the messages mixed. Thanks -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 11:23 PM To: Struts Users Mailing List Subject: RE: Newbie Question Here is my new code: ArrayList components = ( ArrayList ) service.gatherAccessory Bean.getContainer ( ) ); request.setAttribute ( "components", components ); the jsp: "> I get the ServletException: Cannot find bean container in any scope If I remove the It is fine -doesn't fault - doesn't write anything If I remove the It will iterate the list only once. I have print statements in the Action Im stumped? Any Ideas I will try Struts 1.0.2 - Except the examples seem to work :-) Thanks for your help Ray Madigan -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 10:24 PM To: 'Struts Users Mailing List' Subject: RE: Newbie Question ArrayList components = (ArrayList) service .gatherAccessory(Bean.getContainer()); session.setAttribute("someKey", components); -or- request.setAttribute("someKey", components); //or request scope -Jacob | -Original Message- | From: Ray Madigan [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 12:06 AM | To: Struts Users Mailing List | Subject: Newbie Question | | Greetings: | | I am new to struts, and i have a question that has been giving me fits all | day. | | I have a large application I am attempting to rewrite in struts, with | several hundred jsp's and servlets. It currently runs on Tomcat. I am | using, don't all of you laugh at once, 1.1-b3. | | I haveured out some of how struts works from reading the samples and | groping | throught the code, but i can't seem to figure out how to make | logic:iterate | work. Here are a couple oc code fragments, if someone could point out | where | i'm a bonehead, i would appreciate it. | | In the Action class: | ArrayList components = ( ArrayList ) service.gatherAccessory | Bean.getContainer ( ) ); | // Error checking and logging etc | if ( components != null && components.size ( ) > 0 ) { | System.out.println ( "Nav: Comp: " + components.size ( ) ); | //txSupport component = new txSupport ( ); | //session.setAttribute ( Constants.COMPONENT_KEY, components.get | ( 1 ) ); | //session.setAttribute ( Constants.COMPONENTS_KEY, | components.toArray ( as ) ); | session.setAttribute ( component, components.get ( 0 ) ); | navForm.setComponents ( components ); | } | | I have tried several alternatives as to how to set the id attribute: | - an empty instance of the Bean that is contained in the collection | - the first element in the array | I have tried to set the name property of the iterate to an array | all with different errors. The one that worked the best was when | I pointed the id property of iterate to the first element of the | Collection. Here i simply got the iterator to iterate the first | element. In the Action class I have iterated the Collection and | there are three elements in the list. | | In the jsp: | | | | | | | | | | | | The navigateForm has a pair of methods get/setComponents that return the | Collection. If I put a logic:equal and test a member of the iteration it | works in all cases. | | I am very perplexed by this situation and any light shed on the problem | would be appreciated. | | Thanks in advance | Ray Madigan | | | - | 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: Newbie Question
Here is my new code: ArrayList components = ( ArrayList ) service.gatherAccessory Bean.getContainer ( ) ); request.setAttribute ( "components", components ); the jsp: "> I get the ServletException: Cannot find bean container in any scope If I remove the It is fine -doesn't fault - doesn't write anything If I remove the It will iterate the list only once. I have print statements in the Action Im stumped? Any Ideas I will try Struts 1.0.2 - Except the examples seem to work :-) Thanks for your help Ray Madigan -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 10:24 PM To: 'Struts Users Mailing List' Subject: RE: Newbie Question ArrayList components = (ArrayList) service .gatherAccessory(Bean.getContainer()); session.setAttribute("someKey", components); -or- request.setAttribute("someKey", components); //or request scope -Jacob | -Original Message- | From: Ray Madigan [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 12:06 AM | To: Struts Users Mailing List | Subject: Newbie Question | | Greetings: | | I am new to struts, and i have a question that has been giving me fits all | day. | | I have a large application I am attempting to rewrite in struts, with | several hundred jsp's and servlets. It currently runs on Tomcat. I am | using, don't all of you laugh at once, 1.1-b3. | | I haveured out some of how struts works from reading the samples and | groping | throught the code, but i can't seem to figure out how to make | logic:iterate | work. Here are a couple oc code fragments, if someone could point out | where | i'm a bonehead, i would appreciate it. | | In the Action class: | ArrayList components = ( ArrayList ) service.gatherAccessory | Bean.getContainer ( ) ); | // Error checking and logging etc | if ( components != null && components.size ( ) > 0 ) { | System.out.println ( "Nav: Comp: " + components.size ( ) ); | //txSupport component = new txSupport ( ); | //session.setAttribute ( Constants.COMPONENT_KEY, components.get | ( 1 ) ); | //session.setAttribute ( Constants.COMPONENTS_KEY, | components.toArray ( as ) ); | session.setAttribute ( component, components.get ( 0 ) ); | navForm.setComponents ( components ); | } | | I have tried several alternatives as to how to set the id attribute: | - an empty instance of the Bean that is contained in the collection | - the first element in the array | I have tried to set the name property of the iterate to an array | all with different errors. The one that worked the best was when | I pointed the id property of iterate to the first element of the | Collection. Here i simply got the iterator to iterate the first | element. In the Action class I have iterated the Collection and | there are three elements in the list. | | In the jsp: | | | | | | | | | | | | The navigateForm has a pair of methods get/setComponents that return the | Collection. If I put a logic:equal and test a member of the iteration it | works in all cases. | | I am very perplexed by this situation and any light shed on the problem | would be appreciated. | | Thanks in advance | Ray Madigan | | | - | 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: Some questions about struts
Craig R. McClanahan wrote: Digester is pretty cool (if I do say so myself :-). It's what Struts uses to process struts-config.xml files, and what Tomcat uses to read web.xml and server.xml files. Yes it is very cool and nice to use :) . I've done some simple things with it based on a tutorial I followed from the site. One question though, I've been poking around the admin webapp source in tomcat, which file actually reads the server.xml? Or is the contents of server.xml already made available to the webapp? I will check out the commons digester api in further detail. The Javadocs are also available online: http://jakarta.apache.org/commons/digester/api/ In particular, read the "Package Description" which has a good overview of how Digester can be used. Finally, the COMMONS-USER mailing list is a good place for general questions on Digester that aren't Struts related. Craig - 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 - tomcat
On Tue, 11 Feb 2003, Utpal Bhattacharya wrote: > Date: Tue, 11 Feb 2003 12:45:09 +0530 > From: Utpal Bhattacharya <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: struts - tomcat > > Hi > I am using struts with tomcat 3.2.4. I have deployed struts-example.war in > the webapps directory. When I start tomcat I get the following error :- > > cannot load servlet name: action: Fatal module configuration error, see > previous messages > If you're using Struts 1.1 (any recent download), you'll need to upgrade your Tomcat install. Tomcat 3.2.4 has major bugs in its class loader, which prevent current Struts code from functioning correctly. Use the latest 3.3 or 4.1 release and you'll be fine. > Please help > Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tool to convert html file to strustified jsp
is there any tool which can convert an html file to strutsified jsp?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts - tomcat
Hi I am using struts with tomcat 3.2.4. I have deployed struts-example.war in the webapps directory. When I start tomcat I get the following error :- cannot load servlet name: action: Fatal module configuration error, see previous messages Please help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Some questions about struts
On Tue, 11 Feb 2003, Peng Tuck Kwok wrote: > Date: Tue, 11 Feb 2003 14:53:33 +0800 > From: Peng Tuck Kwok <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Re: Some questions about struts > > Jacob Hookom wrote: > > As a side note, look at Commons Digester in reading your XML file and > > bringing it in as Objects so you can work with ActionForms and other > > business logic (if that's what you want to do). > > > > Yes I do intend to use the Commons Digester. Thanks Jacob. > Digester is pretty cool (if I do say so myself :-). It's what Struts uses to process struts-config.xml files, and what Tomcat uses to read web.xml and server.xml files. The Javadocs are also available online: http://jakarta.apache.org/commons/digester/api/ In particular, read the "Package Description" which has a good overview of how Digester can be used. Finally, the COMMONS-USER mailing list is a good place for general questions on Digester that aren't Struts related. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JetSpeed VS. Liferay - Comparison
On Mon, 10 Feb 2003, Mete Kural wrote: > Date: Mon, 10 Feb 2003 21:41:45 -0800 (PST) > From: Mete Kural <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: RE: JetSpeed VS. Liferay - Comparison > > Hi Olivier, > > > LifeRay is not listed at freshmeat.net > > Any piece of software not in their database is out > > of my scope :-) > > I told about this to the developers and now it is > listed! You can view the freshmeat.net page at > http://freshmeat.net/projects/lportal/ > Maybe somebody should list Struts itself ... it would be a shame to lose Olivier 'cause we're not there :-). > -Mete > Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Some questions about struts
Jacob Hookom wrote: As a side note, look at Commons Digester in reading your XML file and bringing it in as Objects so you can work with ActionForms and other business logic (if that's what you want to do). Yes I do intend to use the Commons Digester. Thanks Jacob. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Some questions about struts
Usually in this case, you use the unit of work pattern and the lazy load. I usually handle it like so: public class UserData { private final static Object _lock = new Object(); private ServletContext context; private int state; private String path; private UserData(ServletContext context, String path) { this.context = context; this.path = path; } public void registerNew() throws Exception { // do your parsing based on context this.state = CLEAN; } public static UserData getInstance(ServletContext context, String file) throws Exception { String key = genContextKey(file); UserData userData = (UserData) context.getAttribute(key); if (userData == null) { // make sure we don't create multiple copies synchronized(_lock) { // double check that a previous thread didn't // already make one right before me userData = (UserData) context.getAttribute(key); if (userData == null) { // create a new one userData = new UserData(context, file); userData.registerNew(); // now store it for other threads context.setAttribute(key, userData); } } } return userData; } } in your action then: UserData userData = UserData.getInstance(context, "somefile.xml"); Collection employees = userData.getAllEmployees(); userData.addEmployee(new Employee("Craig")); userData.registerClean(); As a side note, look at Commons Digester in reading your XML file and bringing it in as Objects so you can work with ActionForms and other business logic (if that's what you want to do). -Jacob | -Original Message- | From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 12:25 AM | To: Struts Users Mailing List | Subject: Re: Some questions about struts | | Thanks for the prompt reply Jacob. | I do need the xml data to persist, one xml which contains a bunch of | users who can log in & the other xml contains a list of numbers that | belong to the bunch of users. | Since I need the application to read these xml files on startup, does | that mean I need to create a class which extends ActionServlet and | populate the servlet context like this ? : |getServletContext().setAttribute(LOCALES_KEY, locales); | | | | | | | Jacob Hookom wrote: | > You can have the ActionServlet determine where the source XML is coming | > from. Then, either forward to a JSP and use JSTL to handle the | rendering, | > or use a transformer and write directly to the OutputStream within the | > ActionServlet, and return null instead of an ActionForward. | > | > -Jacob | > | > | -Original Message- | > | From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] | > | Sent: Tuesday, February 11, 2003 12:06 AM | > | To: Struts Users Mailing List S | > | Subject: Some questions about struts | > | | > | I have a few questions I need to ask about struts. First of I've done | > | some simple examples that allow my struts example to access the | database | > | and validate fields passed by an action form. All is good and well. | > | | > | Now I want my application to read say two xml files and when a page is | > | requested, the page would display the data from the xml. | > | My question is when I pre-process the xml file on startup, how do I | make | > | the xml data available to struts on startup? Should I use a | > | ActionServlet to do this ? Or am I barking up the wrong tree here? | > | | > | | > | | > | | > | - | > | 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]
Access SessionBean
Whenever i try to access a session beans deploy on JBoss from the struts application deploy on Tomcat in seperate machine the following errors occured. If i deploy the struts based application in Tomcat bundle in JBoss there are no problems. Could anyone please help? Regards, Stephen 2003-02-11 14:22:59 StandardWrapper[/web-einout:default]: Loading container servlet default 2003-02-11 14:23:04 action: null java.lang.RuntimeException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: 4.1/webapps/web-einout/WEB-INF/classes/ at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.initBean(Unknow n Source) at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.invokeBean(Unkn own Source) at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.getAllCategory( Unknown Source) at my.com.shinyang.einout.web.EinoutPlugin.initDBInformation(Unknown Source) at my.com.shinyang.einout.web.EinoutPlugin.init(Unknown Source) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j ava:1105) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:934) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36 8) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:2 73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java :245) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java: 307)
Re: Problem with empty file upload field
Does it affect other browsers like ie ? Joey Ebright wrote: I found that my problem stemmed from a bug in Mozilla 0.99. Once I upgraded my Mozilla browser to version 1.2.1 the problem went away. You can find details on this bug here: http://bugzilla.mozilla.org/show_bug.cgi?id=132069 Thanks for all who offered feedback!!! Joey Ebright wrote: I too have the same problem - whenever the user does not supply a file to upload I get an exception. I have tried the 1.1-b3 release of struts and the 1.6 release of the commons and recieve the same error from BeanUtils.populate - IllegalArgumentException... Have you made any progress on this front? -Joey - 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: Newbie Question
ArrayList components = (ArrayList) service .gatherAccessory(Bean.getContainer()); session.setAttribute("someKey", components); -or- request.setAttribute("someKey", components); //or request scope -Jacob | -Original Message- | From: Ray Madigan [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 12:06 AM | To: Struts Users Mailing List | Subject: Newbie Question | | Greetings: | | I am new to struts, and i have a question that has been giving me fits all | day. | | I have a large application I am attempting to rewrite in struts, with | several hundred jsp's and servlets. It currently runs on Tomcat. I am | using, don't all of you laugh at once, 1.1-b3. | | I haveured out some of how struts works from reading the samples and | groping | throught the code, but i can't seem to figure out how to make | logic:iterate | work. Here are a couple oc code fragments, if someone could point out | where | i'm a bonehead, i would appreciate it. | | In the Action class: | ArrayList components = ( ArrayList ) service.gatherAccessory | Bean.getContainer ( ) ); | // Error checking and logging etc | if ( components != null && components.size ( ) > 0 ) { | System.out.println ( "Nav: Comp: " + components.size ( ) ); | //txSupport component = new txSupport ( ); | //session.setAttribute ( Constants.COMPONENT_KEY, components.get | ( 1 ) ); | //session.setAttribute ( Constants.COMPONENTS_KEY, | components.toArray ( as ) ); | session.setAttribute ( component, components.get ( 0 ) ); | navForm.setComponents ( components ); | } | | I have tried several alternatives as to how to set the id attribute: | - an empty instance of the Bean that is contained in the collection | - the first element in the array | I have tried to set the name property of the iterate to an array | all with different errors. The one that worked the best was when | I pointed the id property of iterate to the first element of the | Collection. Here i simply got the iterator to iterate the first | element. In the Action class I have iterated the Collection and | there are three elements in the list. | | In the jsp: | | | | | | | | | | | | The navigateForm has a pair of methods get/setComponents that return the | Collection. If I put a logic:equal and test a member of the iteration it | works in all cases. | | I am very perplexed by this situation and any light shed on the problem | would be appreciated. | | Thanks in advance | Ray Madigan | | | - | 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: Problem with empty file upload field
I found that my problem stemmed from a bug in Mozilla 0.99. Once I upgraded my Mozilla browser to version 1.2.1 the problem went away. You can find details on this bug here: http://bugzilla.mozilla.org/show_bug.cgi?id=132069 Thanks for all who offered feedback!!! Joey Ebright wrote: I too have the same problem - whenever the user does not supply a file to upload I get an exception. I have tried the 1.1-b3 release of struts and the 1.6 release of the commons and recieve the same error from BeanUtils.populate - IllegalArgumentException... Have you made any progress on this front? -Joey - 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: Some questions about struts
Thanks for the prompt reply Jacob. I do need the xml data to persist, one xml which contains a bunch of users who can log in & the other xml contains a list of numbers that belong to the bunch of users. Since I need the application to read these xml files on startup, does that mean I need to create a class which extends ActionServlet and populate the servlet context like this ? : getServletContext().setAttribute(LOCALES_KEY, locales); Jacob Hookom wrote: You can have the ActionServlet determine where the source XML is coming from. Then, either forward to a JSP and use JSTL to handle the rendering, or use a transformer and write directly to the OutputStream within the ActionServlet, and return null instead of an ActionForward. -Jacob | -Original Message- | From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 12:06 AM | To: Struts Users Mailing List S | Subject: Some questions about struts | | I have a few questions I need to ask about struts. First of I've done | some simple examples that allow my struts example to access the database | and validate fields passed by an action form. All is good and well. | | Now I want my application to read say two xml files and when a page is | requested, the page would display the data from the xml. | My question is when I pre-process the xml file on startup, how do I make | the xml data available to struts on startup? Should I use a | ActionServlet to do this ? Or am I barking up the wrong tree here? | | | | | - | 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]
Newbie Question
Greetings: I am new to struts, and i have a question that has been giving me fits all day. I have a large application I am attempting to rewrite in struts, with several hundred jsp's and servlets. It currently runs on Tomcat. I am using, don't all of you laugh at once, 1.1-b3. I haveured out some of how struts works from reading the samples and groping throught the code, but i can't seem to figure out how to make logic:iterate work. Here are a couple oc code fragments, if someone could point out where i'm a bonehead, i would appreciate it. In the Action class: ArrayList components = ( ArrayList ) service.gatherAccessory Bean.getContainer ( ) ); // Error checking and logging etc if ( components != null && components.size ( ) > 0 ) { System.out.println ( "Nav: Comp: " + components.size ( ) ); //txSupport component = new txSupport ( ); //session.setAttribute ( Constants.COMPONENT_KEY, components.get ( 1 ) ); //session.setAttribute ( Constants.COMPONENTS_KEY, components.toArray ( as ) ); session.setAttribute ( component, components.get ( 0 ) ); navForm.setComponents ( components ); } I have tried several alternatives as to how to set the id attribute: - an empty instance of the Bean that is contained in the collection - the first element in the array I have tried to set the name property of the iterate to an array all with different errors. The one that worked the best was when I pointed the id property of iterate to the first element of the Collection. Here i simply got the iterator to iterate the first element. In the Action class I have iterated the Collection and there are three elements in the list. In the jsp: The navigateForm has a pair of methods get/setComponents that return the Collection. If I put a logic:equal and test a member of the iteration it works in all cases. I am very perplexed by this situation and any light shed on the problem would be appreciated. Thanks in advance Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Some questions about struts
You can have the ActionServlet determine where the source XML is coming from. Then, either forward to a JSP and use JSTL to handle the rendering, or use a transformer and write directly to the OutputStream within the ActionServlet, and return null instead of an ActionForward. -Jacob | -Original Message- | From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 12:06 AM | To: Struts Users Mailing List S | Subject: Some questions about struts | | I have a few questions I need to ask about struts. First of I've done | some simple examples that allow my struts example to access the database | and validate fields passed by an action form. All is good and well. | | Now I want my application to read say two xml files and when a page is | requested, the page would display the data from the xml. | My question is when I pre-process the xml file on startup, how do I make | the xml data available to struts on startup? Should I use a | ActionServlet to do this ? Or am I barking up the wrong tree here? | | | | | - | 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]
Some questions about struts
I have a few questions I need to ask about struts. First of I've done some simple examples that allow my struts example to access the database and validate fields passed by an action form. All is good and well. Now I want my application to read say two xml files and when a page is requested, the page would display the data from the xml. My question is when I pre-process the xml file on startup, how do I make the xml data available to struts on startup? Should I use a ActionServlet to do this ? Or am I barking up the wrong tree here? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JetSpeed VS. Liferay - Comparison
Hi Olivier, > LifeRay is not listed at freshmeat.net > Any piece of software not in their database is out > of my scope :-) I told about this to the developers and now it is listed! You can view the freshmeat.net page at http://freshmeat.net/projects/lportal/ -Mete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Usage of PropertyConfigurator & Logger Classes
Hi, My basic doubt what is the relations ship between PropertyConfigurator and Logger classes. Can I configure ProperConfigurator for each Logger object? Thanks & Regards, Ashok.D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat servlets calling weblogic EJB's
That jar file doesnt contain much. Regards Wendy > -Original Message- > From: Kashinath [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 11, 2003 8:40 PM > To: Struts Users Mailing List > Subject: Re: Tomcat servlets calling weblogic EJB's > > > wl-j2ee-client.jar may be the appropriate jar that is present in > \server\lib > - Original Message - > From: "Wendy Cameron" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; > "Kashinath" <[EMAIL PROTECTED]> > Sent: Tuesday, February 11, 2003 4:56 AM > Subject: RE: Tomcat servlets calling weblogic EJB's > > > I thought weblogic had all the j2ee.jar stuff in it and, I > thought it was > probably this code that is clashing with the tomcat version. > > Regards Wendy > > > -Original Message- > > From: Kashinath [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, February 11, 2003 8:12 PM > > To: Struts Users Mailing List > > Subject: Re: Tomcat servlets calling weblogic EJB's > > > > > > Try out putting j2ee.jar in classpath > > - Original Message - > > From: "Wendy Cameron" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List (E-mail)" > > <[EMAIL PROTECTED]> > > Sent: Tuesday, February 11, 2003 4:22 AM > > Subject: Tomcat servlets calling weblogic EJB's > > > > > > I have a problem connecting a a front end running under > Tomcat, which > > connects up to an EJB back end running on a weblogic server. > > If add in the > > weblogic.jar file into the tomcat class path, all of the > > JSP's break and i > > get servlet exceptions with NoSuchMethod exception being the > > root cause. > > > > I can seem to find appropriate jar file for just the > weblogic client. > > > > Can anyone provide insight. > > > > Regards 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] > > > > > > - > 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: [OT] Modeling tools
whilst we're on the topic of Oz beer, you can not overlook the James Squires range. They make some very tasy drops indeed. Squires ale & pilsner are especially suited to breakfast, lunch and dinner. IMHO the problem with US beer is that none of the mass produced commercially available beers are any good... You hear of great micro breweries but if you're just over there visiting with no contacts, it's kinda hard to hunt down a good one. Then again, we were in Tampa... "Mark Galbreath" at.com> cc: Subject: RE: [OT] Modeling tools 11/02/2003 03:34 PM Please respond to "Struts Users Mailing List" *Gasp* You, you mean there's no great watering hole in Walkabout Creek? That's the only reason I was coming to Oz! -Original Message- From: Todd Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 11:08 PM Good on you Scott, exactly the same as I was about to say, vis: "I must admit there is a beer called Fosters, but like Paul Hogan, Steve Irwin and Yahoo Serious, nobody here ever had anything to do with it! Most discerning beer drinkers in Australia go for beers with names like Cascade, Coopers and VB. They should rename this list "beer-users" -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 11 February 2003 2:58 PM Oh yeah, like Fosters ("Australian for 'beer'") is a great contribution to beerdom. That piss is as bad as Budweasel. Of course, that may be why the Aussies send it all up here. You guys still pissed about 1783? 1815? 1840? When did you get your own country, anyway? -Original Message- From: Todd Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 8:20 PM PS Australian beer relieves itself from a great height on all American AND British beer ;) - 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: ResultsetDyna class
On Tue, 11 Feb 2003, usha wrote: > Date: Tue, 11 Feb 2003 11:22:47 +0800 > From: usha <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: ResultsetDyna class > > Hi > > i have a small question i wanted to know when we create the > resultsetdyna class. is it that result is closed and we can close the > result set after returning th e iterator. > With ResultSetDynaClass, the ResultSet is not closed -- you must close the ResultSet yourself when you are through iterating over the rows. Thus, it is only useful within a business logic class that is pulling stuff out of the results. The upside is that no copying of the data is done. With RowSetDynaClass (added in a recent nightly build), the data is copied in to a set of DynaBeans in memory, after which you can close the result set and iterate over the rows as many times as you like. This is a good way to transport data to your JSP page, because the Struts tags can handle lists of DynaBeans just fine. The JavaDocs for both of these classes include complete usage information, and are available online: http://jakarta.apache.org/commons/beanutils/api/ > Thanks > usha Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat servlets calling weblogic EJB's
wl-j2ee-client.jar may be the appropriate jar that is present in \server\lib - Original Message - From: "Wendy Cameron" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Kashinath" <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 4:56 AM Subject: RE: Tomcat servlets calling weblogic EJB's I thought weblogic had all the j2ee.jar stuff in it and, I thought it was probably this code that is clashing with the tomcat version. Regards Wendy > -Original Message- > From: Kashinath [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 11, 2003 8:12 PM > To: Struts Users Mailing List > Subject: Re: Tomcat servlets calling weblogic EJB's > > > Try out putting j2ee.jar in classpath > - Original Message - > From: "Wendy Cameron" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List (E-mail)" > <[EMAIL PROTECTED]> > Sent: Tuesday, February 11, 2003 4:22 AM > Subject: Tomcat servlets calling weblogic EJB's > > > I have a problem connecting a a front end running under Tomcat, which > connects up to an EJB back end running on a weblogic server. > If add in the > weblogic.jar file into the tomcat class path, all of the > JSP's break and i > get servlet exceptions with NoSuchMethod exception being the > root cause. > > I can seem to find appropriate jar file for just the weblogic client. > > Can anyone provide insight. > > Regards 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] > > - 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: Tomcat servlets calling weblogic EJB's
I thought weblogic had all the j2ee.jar stuff in it and, I thought it was probably this code that is clashing with the tomcat version. Regards Wendy > -Original Message- > From: Kashinath [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 11, 2003 8:12 PM > To: Struts Users Mailing List > Subject: Re: Tomcat servlets calling weblogic EJB's > > > Try out putting j2ee.jar in classpath > - Original Message - > From: "Wendy Cameron" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List (E-mail)" > <[EMAIL PROTECTED]> > Sent: Tuesday, February 11, 2003 4:22 AM > Subject: Tomcat servlets calling weblogic EJB's > > > I have a problem connecting a a front end running under Tomcat, which > connects up to an EJB back end running on a weblogic server. > If add in the > weblogic.jar file into the tomcat class path, all of the > JSP's break and i > get servlet exceptions with NoSuchMethod exception being the > root cause. > > I can seem to find appropriate jar file for just the weblogic client. > > Can anyone provide insight. > > Regards 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
still wondering Re: Where to repopulate dynamic lists ?
Thanks for the feedback. Some comments below. Remember the problem isn't with setting up the list into scope from an Action, it's what to do when validation takes place and the validation returns false returning you back to the initial jsp page. On Mon, Feb 10,'03 (10:38 PM GMT-0500), Mitchell wrote: > Just to show there's more than one way to skin a cat: > > #1) Create a custom tag library to share an application-wide cached > value of the order list, and populate the list into scope: > ### in your JSP > > > > This is probably a pretty good solution, although doesn't this go against the thought of all the objects to display should be set up before you even reach the JSP page? Basically now your JSP page is doing business logic. One solution I thought might work is every time the list was updated to the db I'd make sure to get a new cached copy and put that into application scope which all the user's cold have. This would be a great option except this list could be very specific to a particular user- it wouldn't work well in application scope because of this since the lists could vary depending on the user logged in. > #2) Have an Action populate the list into the Form before forwarding > to the display page. The chain starts with your action, which can > implement your desired caching scheme for the list of orders, then > displays the JSP. The JSP submits back to an action, which can restart > the cycle. That's currently what I do but the problem I'm running into is when validation returns false. How/where is the list going to be repopulated before it returns back to the jsp form page? The reset method seems like the best place but maybe I'm wrong? Thanks for the help, -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat servlets calling weblogic EJB's
Try out putting j2ee.jar in classpath - Original Message - From: "Wendy Cameron" <[EMAIL PROTECTED]> To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 4:22 AM Subject: Tomcat servlets calling weblogic EJB's I have a problem connecting a a front end running under Tomcat, which connects up to an EJB back end running on a weblogic server. If add in the weblogic.jar file into the tomcat class path, all of the JSP's break and i get servlet exceptions with NoSuchMethod exception being the root cause. I can seem to find appropriate jar file for just the weblogic client. Can anyone provide insight. Regards 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: Tomcat servlets calling weblogic EJB's
Sure! Shit-can Tomcat, you don't need it. Mark Galbreath Principal Consultant Workflow Process Engineering and Systems Integration http://www.QAT.com 410-703-367 / 800-799-8545 "Never attribute to malice that which can be adequately explained by stupidity." ~Hanlon's Razor -Original Message- From: Wendy Cameron [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 11:22 PM I have a problem connecting a a front end running under Tomcat, which connects up to an EJB back end running on a weblogic server. If add in the weblogic.jar file into the tomcat class path, all of the JSP's break and i get servlet exceptions with NoSuchMethod exception being the root cause. I can seem to find appropriate jar file for just the weblogic client. Can anyone provide insight? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Modeling tools
*Gasp* You, you mean there's no great watering hole in Walkabout Creek? That's the only reason I was coming to Oz! -Original Message- From: Todd Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 11:08 PM Good on you Scott, exactly the same as I was about to say, vis: "I must admit there is a beer called Fosters, but like Paul Hogan, Steve Irwin and Yahoo Serious, nobody here ever had anything to do with it! Most discerning beer drinkers in Australia go for beers with names like Cascade, Coopers and VB. They should rename this list "beer-users" -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 11 February 2003 2:58 PM Oh yeah, like Fosters ("Australian for 'beer'") is a great contribution to beerdom. That piss is as bad as Budweasel. Of course, that may be why the Aussies send it all up here. You guys still pissed about 1783? 1815? 1840? When did you get your own country, anyway? -Original Message- From: Todd Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 8:20 PM PS Australian beer relieves itself from a great height on all American AND British beer ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Modeling tools
I have friends in Oz, Taz, and New Zealand. I've heard much about this Coopers Pale Ale; must have someone send me a case! -Original Message- From: Scott Barr [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 11:07 PM Mark, I gotta say Fosters is not a real got representation of Oz beer. It is the foulest amber fluid we have, and then I think they make another version (which is even worse!!) for you guys! Kinda like Bud not being a fair representative of all US beers. Wish you could try Coopers Pale Ale, nice South Australian beer. Mmmm!!! Scott On Tue, 2003-02-11 at 14:28, Mark Galbreath wrote: > Oh yeah, like Fosters ("Australian for 'beer'") is a great > contribution to beerdom. That piss is as bad as Budweasel. Of > course, that may be why the Aussies send it all up here. You guys > still pissed about 1783? 1815? 1840? When did you get your own > country, anyway? > > -Original Message- > From: Todd Pierce [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 8:20 PM > > PS Australian beer relieves itself from a great height on all American > AND British beer ;) > > > > - > 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]
Tomcat servlets calling weblogic EJB's
I have a problem connecting a a front end running under Tomcat, which connects up to an EJB back end running on a weblogic server. If add in the weblogic.jar file into the tomcat class path, all of the JSP's break and i get servlet exceptions with NoSuchMethod exception being the root cause. I can seem to find appropriate jar file for just the weblogic client. Can anyone provide insight. Regards Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Modeling tools
"I'd kill everyone in this room for a beer right now..." - Homer Simpson Or, we could rename this thread to "[OT] Beer Modeling tools" :) On Tue, 2003-02-11 at 14:38, Todd Pierce wrote: > Good on you Scott, exactly the same as I was about to say, vis: > > "I must admit there is a beer called Fosters, but like Paul Hogan, Steve > Irwin and Yahoo Serious, nobody here ever had anything to do with it! Most > discerning beer drinkers in Australia go for beers with names like Cascade, > Coopers and VB. > > They should rename this list "beer-users" > > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 11 February 2003 2:58 PM > To: 'Struts Users Mailing List' > Subject: RE: [OT] Modeling tools > > > Oh yeah, like Fosters ("Australian for 'beer'") is a great contribution to > beerdom. That piss is as bad as Budweasel. Of course, that may be why the > Aussies send it all up here. You guys still pissed about 1783? 1815? > 1840? When did you get your own country, anyway? > > -Original Message- > From: Todd Pierce [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 8:20 PM > > PS Australian beer relieves itself from a great height on all American AND > British beer ;) > > > > - > 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: [OT] Modeling tools
Good on you Scott, exactly the same as I was about to say, vis: "I must admit there is a beer called Fosters, but like Paul Hogan, Steve Irwin and Yahoo Serious, nobody here ever had anything to do with it! Most discerning beer drinkers in Australia go for beers with names like Cascade, Coopers and VB. They should rename this list "beer-users" -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 11 February 2003 2:58 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Modeling tools Oh yeah, like Fosters ("Australian for 'beer'") is a great contribution to beerdom. That piss is as bad as Budweasel. Of course, that may be why the Aussies send it all up here. You guys still pissed about 1783? 1815? 1840? When did you get your own country, anyway? -Original Message- From: Todd Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 8:20 PM PS Australian beer relieves itself from a great height on all American AND British beer ;) - 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] Modeling tools
Mark, I gotta say Fosters is not a real got representation of Oz beer. It is the foulest amber fluid we have, and then I think they make another version (which is even worse!!) for you guys! Kinda like Bud not being a fair representative of all US beers. Wish you could try Coopers Pale Ale, nice South Australian beer. Mmmm!!! Scott On Tue, 2003-02-11 at 14:28, Mark Galbreath wrote: > Oh yeah, like Fosters ("Australian for 'beer'") is a great contribution to > beerdom. That piss is as bad as Budweasel. Of course, that may be why the > Aussies send it all up here. You guys still pissed about 1783? 1815? > 1840? When did you get your own country, anyway? > > -Original Message- > From: Todd Pierce [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 8:20 PM > > PS Australian beer relieves itself from a great height on all American AND > British beer ;) > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
RE: Unsubsribe
Hwy dude, take a peek at what the mail server attaches to each and every message at the bottom of this one. -Original Message- From: Alok Rajkumar Gupta [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 10:34 PM Unsubscribe Alok Gupta - 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] Modeling tools
Oh yeah, like Fosters ("Australian for 'beer'") is a great contribution to beerdom. That piss is as bad as Budweasel. Of course, that may be why the Aussies send it all up here. You guys still pissed about 1783? 1815? 1840? When did you get your own country, anyway? -Original Message- From: Todd Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 8:20 PM PS Australian beer relieves itself from a great height on all American AND British beer ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to repopulate dynamic lists ?
Just to show there's more than one way to skin a cat: #1) Create a custom tag library to share an application-wide cached value of the order list, and populate the list into scope: ### in your custom tag handler public int doStart() { if(cacheNeedsRebuilding()) { List orderList = buildCache(); pageContext.setAttribute("net.reumann.appl.cache.orderList", orderList, pageContext.APPLICATION_SCOPE); } return Tag.SKIP_BODY; } ### in your JSP #2) Have an Action populate the list into the Form before forwarding to the display page. The chain starts with your action, which can implement your desired caching scheme for the list of orders, then displays the JSP. The JSP submits back to an action, which can restart the cycle. ### in struts-config.xml ### in net.reumann.appl.MyAction.java public ActionForward execute(ActionMapping mapping, ActionForm theForm, ...) { String param = mapping.getParameter(); if(param.equals("prepare")) { return doPrepare(mapping, theForm, ...); } else if(param.equals("handle")) { return doHandle(mapping, theForm, ...); } else { throw new ServletException("bad param [" + param + "]: struts-config.xml is b0rken"); } } public ActionForward doPrepare(ActionMapping mapping, ActionForm theForm, ...) { FormBean form = (FormBean)theForm; form.setOrderChoices(getCachedOrders()); return mapping.findForward("next"); } public ActionForward doHandle(ActionMapping mapping, ActionForm theForm, ...) { FormBean form = (FormBean)theForm; // Do all the heavy lifting here return mapping.findForward("next"); } > -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 3:58 AM > To: Struts Users Mailing List > Subject: Where to repopulate dynamic lists ? > > > Sorry to repost this question but it still has me wondering... > > > Say you have a form where a user is to select "An Order To > Update" from > an options list. Now also assume that these orders to choose > from change > very frequently. You also will need to validate the form when it's > submitted. > > * Where is it best to repopulate this type of dynamic list > (example above: 'orders')? The list of orders that make up the > options list needs to be repopulated somewhere in case validation > returns false and returns the user to the form page again. > > It seems like you have three choices: > > 1) In the reset method repopulate the list by making a call > to business > layer to get back your list and put in scope (or maybe even directly > into FormBean). > > 2) Use session scope so the list is available at all times until > repopulated by some setUp type of action. > > 3) Possibly set this list in application scope upon container start up > and maybe have a thread running that periodically updates the list and > put the new list back into application scope. > > Are there any other options available? I happen to like #1 > the best but > I'm wondering what others think. I don't really like option 2 as it > requires a form to be put into session scope that really > doesn't need to > be there (apart from the re-population of lists). Also a pain > to monitor > cleaning the form out of session when it is no longer needed. Option 3 > would be ok if the information in the list rarely changed, but if it's > data that changes very frequently I wouldn't want to rely on some time > interval to have to go by before getting fresh data. > > Curious what other's thoughts are on this situation. > > Thanks, > > -- > Rick > > - > 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: Unsubsribe
Sorry, wrong number. -Original Message- From: Alok Rajkumar Gupta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 11 February 2003 2:34 PM To: Struts Users Mailing List Subject: Unsubsribe Unsubscribe Alok Gupta **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *** - 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]
Unsubsribe
Unsubscribe Alok Gupta **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ResultsetDyna class
Hi i have a small question i wanted to know when we create the resultsetdyna class. is it that result is closed and we can close the result set after returning th e iterator. Thanks usha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Scioworks Camino 3.0
Announcing Scioworks Camino 3.0, visual modelling tool for Jakarta Struts (v1.0 to v1.1-b3). For general information and list of new features, see http://www.scioworks.net/servlets/ShowPage?pid=48&dp=2 -- John Yu Scioworks Technologies e: [EMAIL PROTECTED] w: +(65) 873 5989 w: http://www.scioworks.com m: +(65) 9782 9610 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Modeling tools
1 The serving temperature depends on the variety, complexity, sweetness and IMHO the drinking environment. Shiraz should be 15-18 degrees C, but Beaujolais can be 10-12 C. Lambrusco's gotta be chilled or it's virtually undrinkable. I drink aged Marsanne at room temperature because all the nose and half the palate goes when it's chilled. 2 Stop talking about beer junkets in Portland OR. Some of us live and work in Australia. PS Australian beer relieves itself from a great height on all American AND British beer ;) -Original Message- From: Joe Barefoot [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 11 February 2003 12:03 PM To: Struts Users Mailing List Subject: RE: [OT] Modeling tools Simon: As a southerner, I resemble that remark! (You suh, have affronted, I say affronted, my sensibilities!) I'll take a glass of sweet iced tea any hot day. Besides, I don't think they would consider Lipton to be real tea in the U.K. anyway. :) Also, I knew some rednecks growing up who would drink piss-warm beer whilst working outside, does that count for anything? :) b.t.w., who the hell drinks red wine chilled? That's just nuts. Victor's right on about the microbrews, there are a ton of tasty beers produced near San Francisco, a lot of them brewed right next door to some of the wines just mentioned (in Napa). --joe > -Original Message- > From: Will Etson [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 4:54 PM > To: [EMAIL PROTECTED] > Subject: RE: [OT] Modeling tools > > > +1 > > >>> "Victor Soares" <[EMAIL PROTECTED]> 02/10/03 02:34PM >>> > American beer is devoid of flavor!!?? That's true if you > think Bud Light is the representative of American beer. > > You really do need to visit the west coast, my friend > Portland, Oregon in particular. There are more tasty > microbrews than you can shake a stick at. I'll personally > take you on a tour. Unfortunately for you, the beer will be > chilled... but we can leave your pint out and let it warm up. ;) > > Do I hear seconds for a STRUTS convention in Portland, Oregon? > > - vic > > >>> [EMAIL PROTECTED] 02/10/03 02:13PM >>> > Drinking warm beer is possible when there is flavour in there > in the first place. Yankee beer is devoid of flavour and then > they chill it! Might as well drink mineral water. > > No serious red-wine drinker would drink it chilled. Each > beverage has it's agreed optimum drinking temperature. To use > a non-alcholic example, tea should be drunk hot and with milk > in it. What those southerners do to it should be federally prohibited! > > Simon > > >-Original Message- > >From: alexj [mailto:[EMAIL PROTECTED]] > >Sent: Monday, February 10, 2003 4:08 PM > >To: Struts Users Mailing List > >Subject: Re: [OT] Modeling tools > > > > > >I will try this one ;) , I heard some Australian wine are > >pretty good to. > >(but I can't understand how English guy can drink warm beer lol) > > > >- Original Message - > >From: "Mark Galbreath" <[EMAIL PROTECTED]> > >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > >Sent: Monday, February 10, 2003 8:59 PM > >Subject: RE: [OT] Modeling tools > > > > > >The best California wines in my long flirtation with the > >nectar are anything > >from Cakebread Cellars, and any cabernet sauvignon (Bordeaux > >grape) from the > >Russian River Valley. These vineyards truly rival the best > >the French have, > >and you don't have to get upset drinking them because the > >growers support > >getting rid of Suddam Insane. > > > > > >Mark Galbreath > >Principal Consultant > >Workflow Process Engineering and Systems Integration > >http://www.QAT.com > >410-703-367 / 800-799-8545 > >"Never attribute to malice that which can be adequately explained by > >stupidity." ~Hanlon's Razor > > > > > >-Original Message- > >From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] > >Sent: Monday, February 10, 2003 2:53 PM > >To: Struts Users Mailing List > >Subject: Re: [OT] Modeling tools > > > > > >To name a few at my house, but I agree that French wines are > >better. But > >California is getting close. And Australia is also getting close. > > > >Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 > >Private Reserve > >Cabernet Sauvignon, Opus One 1999 Opus One > > > > > > > >> > But we are catch up quickly, just look at the quality of > >Californian > >> >wines, they sucked in the 80's and now that are almost as > >tasty > >> > as French wines. > >> > >> I don't think you can "compare" with nice french wines (or you have > >> try only bad french wine) ;) Let's drink a Mouton > Rotschild, Pétrus, > >> Chateau Margaux > >> > >> > > >> > > >> > Mark Galbreath > >> > Principal Consultant > >> > Workflow Process Engineering and Systems Integration > >> > > >> > http://www.QAT.com > >> > 410-703-367 / 800-799-8545 > >> > > >> > "Never attribute to malice that which can be adequately > >explained by > >> > stupidity." ~Hanlon's Razor > >> > >
RE: [OT] Modeling tools
Simon: As a southerner, I resemble that remark! (You suh, have affronted, I say affronted, my sensibilities!) I'll take a glass of sweet iced tea any hot day. Besides, I don't think they would consider Lipton to be real tea in the U.K. anyway. :) Also, I knew some rednecks growing up who would drink piss-warm beer whilst working outside, does that count for anything? :) b.t.w., who the hell drinks red wine chilled? That's just nuts. Victor's right on about the microbrews, there are a ton of tasty beers produced near San Francisco, a lot of them brewed right next door to some of the wines just mentioned (in Napa). --joe > -Original Message- > From: Will Etson [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 4:54 PM > To: [EMAIL PROTECTED] > Subject: RE: [OT] Modeling tools > > > +1 > > >>> "Victor Soares" <[EMAIL PROTECTED]> 02/10/03 02:34PM >>> > American beer is devoid of flavor!!?? That's true if you > think Bud Light is the representative of American beer. > > You really do need to visit the west coast, my friend > Portland, Oregon in particular. There are more tasty > microbrews than you can shake a stick at. I'll personally > take you on a tour. Unfortunately for you, the beer will be > chilled... but we can leave your pint out and let it warm up. ;) > > Do I hear seconds for a STRUTS convention in Portland, Oregon? > > - vic > > >>> [EMAIL PROTECTED] 02/10/03 02:13PM >>> > Drinking warm beer is possible when there is flavour in there > in the first place. Yankee beer is devoid of flavour and then > they chill it! Might as well drink mineral water. > > No serious red-wine drinker would drink it chilled. Each > beverage has it's agreed optimum drinking temperature. To use > a non-alcholic example, tea should be drunk hot and with milk > in it. What those southerners do to it should be federally prohibited! > > Simon > > >-Original Message- > >From: alexj [mailto:[EMAIL PROTECTED]] > >Sent: Monday, February 10, 2003 4:08 PM > >To: Struts Users Mailing List > >Subject: Re: [OT] Modeling tools > > > > > >I will try this one ;) , I heard some Australian wine are > >pretty good to. > >(but I can't understand how English guy can drink warm beer lol) > > > >- Original Message - > >From: "Mark Galbreath" <[EMAIL PROTECTED]> > >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > >Sent: Monday, February 10, 2003 8:59 PM > >Subject: RE: [OT] Modeling tools > > > > > >The best California wines in my long flirtation with the > >nectar are anything > >from Cakebread Cellars, and any cabernet sauvignon (Bordeaux > >grape) from the > >Russian River Valley. These vineyards truly rival the best > >the French have, > >and you don't have to get upset drinking them because the > >growers support > >getting rid of Suddam Insane. > > > > > >Mark Galbreath > >Principal Consultant > >Workflow Process Engineering and Systems Integration > >http://www.QAT.com > >410-703-367 / 800-799-8545 > >"Never attribute to malice that which can be adequately explained by > >stupidity." ~Hanlon's Razor > > > > > >-Original Message- > >From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] > >Sent: Monday, February 10, 2003 2:53 PM > >To: Struts Users Mailing List > >Subject: Re: [OT] Modeling tools > > > > > >To name a few at my house, but I agree that French wines are > >better. But > >California is getting close. And Australia is also getting close. > > > >Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 > >Private Reserve > >Cabernet Sauvignon, Opus One 1999 Opus One > > > > > > > >> > But we are catch up quickly, just look at the quality of > >Californian > >> >wines, they sucked in the 80's and now that are almost as > >tasty > >> > as French wines. > >> > >> I don't think you can "compare" with nice french wines (or you have > >> try only bad french wine) ;) Let's drink a Mouton > Rotschild, Pétrus, > >> Chateau Margaux > >> > >> > > >> > > >> > Mark Galbreath > >> > Principal Consultant > >> > Workflow Process Engineering and Systems Integration > >> > > >> > http://www.QAT.com > >> > 410-703-367 / 800-799-8545 > >> > > >> > "Never attribute to malice that which can be adequately > >explained by > >> > stupidity." ~Hanlon's Razor > >> > > >> > > >> > > >> > -Original Message- > >> > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] > >> > Sent: Monday, February 10, 2003 11:38 AM > >> > To: Struts Users Mailing List > >> > Subject: RE: [OT] Modeling tools > >> > > >> > > >> > And we all know that in the U.S. that there is no such thing as a > >> > good > >> beer! > >> > :-P > >> > > >> > >-Original Message- > >> > >From: Robert McIntosh [mailto:[EMAIL PROTECTED]] > >> > >Sent: Monday, February 10, 2003 10:27 AM > >> > >To: Struts Users Mailing List > >> > >Subject: Re: [OT] Modeling tools > >> > > > >> > > > >> > >I agree, especially for collaboration. A whiteboard is a good > >> > >developer's best frien
RE: [OT] Modeling tools
Mm. Blue Heron and Terminator Stout. It's been a long time since I was in Portland. RE: Red wine. It should be served at room temperature - of the average French Chateau cellar ;-) -david- -Original Message- From: Will Etson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 7:54 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Modeling tools +1 >>> "Victor Soares" <[EMAIL PROTECTED]> 02/10/03 02:34PM >>> American beer is devoid of flavor!!?? That's true if you think Bud Light is the representative of American beer. You really do need to visit the west coast, my friend Portland, Oregon in particular. There are more tasty microbrews than you can shake a stick at. I'll personally take you on a tour. Unfortunately for you, the beer will be chilled... but we can leave your pint out and let it warm up. ;) Do I hear seconds for a STRUTS convention in Portland, Oregon? - vic >>> [EMAIL PROTECTED] 02/10/03 02:13PM >>> Drinking warm beer is possible when there is flavour in there in the first place. Yankee beer is devoid of flavour and then they chill it! Might as well drink mineral water. No serious red-wine drinker would drink it chilled. Each beverage has it's agreed optimum drinking temperature. To use a non-alcholic example, tea should be drunk hot and with milk in it. What those southerners do to it should be federally prohibited! Simon >-Original Message- >From: alexj [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 4:08 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >I will try this one ;) , I heard some Australian wine are >pretty good to. >(but I can't understand how English guy can drink warm beer lol) > >- Original Message - >From: "Mark Galbreath" <[EMAIL PROTECTED]> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> >Sent: Monday, February 10, 2003 8:59 PM >Subject: RE: [OT] Modeling tools > > >The best California wines in my long flirtation with the >nectar are anything >from Cakebread Cellars, and any cabernet sauvignon (Bordeaux >grape) from the >Russian River Valley. These vineyards truly rival the best >the French have, >and you don't have to get upset drinking them because the >growers support >getting rid of Suddam Insane. > > >Mark Galbreath >Principal Consultant >Workflow Process Engineering and Systems Integration >http://www.QAT.com >410-703-367 / 800-799-8545 >"Never attribute to malice that which can be adequately explained by >stupidity." ~Hanlon's Razor > > >-Original Message- >From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 2:53 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >To name a few at my house, but I agree that French wines are >better. But >California is getting close. And Australia is also getting close. > >Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 >Private Reserve >Cabernet Sauvignon, Opus One 1999 Opus One > > > >> > But we are catch up quickly, just look at the quality of >Californian >> >wines, they sucked in the 80's and now that are almost as >tasty >> > as French wines. >> >> I don't think you can "compare" with nice french wines (or you have >> try only bad french wine) ;) Let's drink a Mouton Rotschild, Pétrus, >> Chateau Margaux >> >> > >> > >> > Mark Galbreath >> > Principal Consultant >> > Workflow Process Engineering and Systems Integration >> > >> > http://www.QAT.com >> > 410-703-367 / 800-799-8545 >> > >> > "Never attribute to malice that which can be adequately >explained by >> > stupidity." ~Hanlon's Razor >> > >> > >> > >> > -Original Message- >> > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] >> > Sent: Monday, February 10, 2003 11:38 AM >> > To: Struts Users Mailing List >> > Subject: RE: [OT] Modeling tools >> > >> > >> > And we all know that in the U.S. that there is no such thing as a >> > good >> beer! >> > :-P >> > >> > >-Original Message- >> > >From: Robert McIntosh [mailto:[EMAIL PROTECTED]] >> > >Sent: Monday, February 10, 2003 10:27 AM >> > >To: Struts Users Mailing List >> > >Subject: Re: [OT] Modeling tools >> > > >> > > >> > >I agree, especially for collaboration. A whiteboard is a good >> > >developer's best friend (short of a good beer)... >> > > >> > >- Robert >> > > >> > >Chappell, Simon P wrote: >> > > >> > >>It's called a whiteboard (or greaseboard if you fixate about >> > >not refering to colours when describing inanimate objects) and it >> > >does a better job of what I use Rose for than Rose does. >> > >> >> > >> >> > >> >> > >>>-Original Message- >> > >>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]] >> > >>>Sent: Monday, February 10, 2003 9:30 AM >> > >>>To: 'Struts Users Mailing List' >> > >>>Subject: RE: [OT] Modeling tools >> > >>> >> > >>> >> > >>>There is no alternative to Rose. >> > >>> >> > >>>Mark Galbreath >> > >>>Principal Consultant, Workflow Process Engineering and Systems >> > >>>Integration http://ww
RE: [OT] Modeling tools
On Mon, 10 Feb 2003, Will Etson wrote: > Date: Mon, 10 Feb 2003 16:53:34 -0800 > From: Will Etson <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: RE: [OT] Modeling tools > > +1 > > >>> "Victor Soares" <[EMAIL PROTECTED]> 02/10/03 02:34PM >>> > American beer is devoid of flavor!!?? That's true if you think Bud Light is the >representative of American beer. > > You really do need to visit the west coast, my friend Portland, Oregon in >particular. There are more tasty microbrews than you can shake a stick at. I'll >personally take you on a tour. Unfortunately for you, the beer will be chilled... but >we can leave your pint out and let it warm up. ;) > > Do I hear seconds for a STRUTS convention in Portland, Oregon? > Well, the O'Reilly Open Source conference is here in July ... and I do know where to get some of that good beer ... > - vic Craig > > >>> [EMAIL PROTECTED] 02/10/03 02:13PM >>> > Drinking warm beer is possible when there is flavour in there in the first place. >Yankee beer is devoid of flavour and then they chill it! Might as well drink mineral >water. > > No serious red-wine drinker would drink it chilled. Each beverage has it's agreed >optimum drinking temperature. To use a non-alcholic example, tea should be drunk hot >and with milk in it. What those southerners do to it should be federally prohibited! > > Simon > > >-Original Message- > >From: alexj [mailto:[EMAIL PROTECTED]] > >Sent: Monday, February 10, 2003 4:08 PM > >To: Struts Users Mailing List > >Subject: Re: [OT] Modeling tools > > > > > >I will try this one ;) , I heard some Australian wine are > >pretty good to. > >(but I can't understand how English guy can drink warm beer lol) > > > >- Original Message - > >From: "Mark Galbreath" <[EMAIL PROTECTED]> > >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > >Sent: Monday, February 10, 2003 8:59 PM > >Subject: RE: [OT] Modeling tools > > > > > >The best California wines in my long flirtation with the > >nectar are anything > >from Cakebread Cellars, and any cabernet sauvignon (Bordeaux > >grape) from the > >Russian River Valley. These vineyards truly rival the best > >the French have, > >and you don't have to get upset drinking them because the > >growers support > >getting rid of Suddam Insane. > > > > > >Mark Galbreath > >Principal Consultant > >Workflow Process Engineering and Systems Integration > >http://www.QAT.com > >410-703-367 / 800-799-8545 > >"Never attribute to malice that which can be adequately explained by > >stupidity." ~Hanlon's Razor > > > > > >-Original Message- > >From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] > >Sent: Monday, February 10, 2003 2:53 PM > >To: Struts Users Mailing List > >Subject: Re: [OT] Modeling tools > > > > > >To name a few at my house, but I agree that French wines are > >better. But > >California is getting close. And Australia is also getting close. > > > >Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 > >Private Reserve > >Cabernet Sauvignon, Opus One 1999 Opus One > > > > > > > >> > But we are catch up quickly, just look at the quality of > >Californian > >> >wines, they sucked in the 80's and now that are almost as > >tasty > >> > as French wines. > >> > >> I don't think you can "compare" with nice french wines (or you have > >> try only bad french wine) ;) Let's drink a Mouton Rotschild, Pétrus, > >> Chateau Margaux > >> > >> > > >> > > >> > Mark Galbreath > >> > Principal Consultant > >> > Workflow Process Engineering and Systems Integration > >> > > >> > http://www.QAT.com > >> > 410-703-367 / 800-799-8545 > >> > > >> > "Never attribute to malice that which can be adequately > >explained by > >> > stupidity." ~Hanlon's Razor > >> > > >> > > >> > > >> > -Original Message- > >> > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] > >> > Sent: Monday, February 10, 2003 11:38 AM > >> > To: Struts Users Mailing List > >> > Subject: RE: [OT] Modeling tools > >> > > >> > > >> > And we all know that in the U.S. that there is no such thing as a > >> > good > >> beer! > >> > :-P > >> > > >> > >-Original Message- > >> > >From: Robert McIntosh [mailto:[EMAIL PROTECTED]] > >> > >Sent: Monday, February 10, 2003 10:27 AM > >> > >To: Struts Users Mailing List > >> > >Subject: Re: [OT] Modeling tools > >> > > > >> > > > >> > >I agree, especially for collaboration. A whiteboard is a good > >> > >developer's best friend (short of a good beer)... > >> > > > >> > >- Robert > >> > > > >> > >Chappell, Simon P wrote: > >> > > > >> > >>It's called a whiteboard (or greaseboard if you fixate about > >> > >not refering to colours when describing inanimate objects) and it > >> > >does a better job of what I use Rose for than Rose does. > >> > >> > >> > >> > >> > >> > >> > >>>-Original Message- > >> > >>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]] > >> > >>>Sent: Monday, February 10, 2003 9:30 AM > >> > >>>To:
RE: [OT] Modeling tools
+1 >>> "Victor Soares" <[EMAIL PROTECTED]> 02/10/03 02:34PM >>> American beer is devoid of flavor!!?? That's true if you think Bud Light is the representative of American beer. You really do need to visit the west coast, my friend Portland, Oregon in particular. There are more tasty microbrews than you can shake a stick at. I'll personally take you on a tour. Unfortunately for you, the beer will be chilled... but we can leave your pint out and let it warm up. ;) Do I hear seconds for a STRUTS convention in Portland, Oregon? - vic >>> [EMAIL PROTECTED] 02/10/03 02:13PM >>> Drinking warm beer is possible when there is flavour in there in the first place. Yankee beer is devoid of flavour and then they chill it! Might as well drink mineral water. No serious red-wine drinker would drink it chilled. Each beverage has it's agreed optimum drinking temperature. To use a non-alcholic example, tea should be drunk hot and with milk in it. What those southerners do to it should be federally prohibited! Simon >-Original Message- >From: alexj [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 4:08 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >I will try this one ;) , I heard some Australian wine are >pretty good to. >(but I can't understand how English guy can drink warm beer lol) > >- Original Message - >From: "Mark Galbreath" <[EMAIL PROTECTED]> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> >Sent: Monday, February 10, 2003 8:59 PM >Subject: RE: [OT] Modeling tools > > >The best California wines in my long flirtation with the >nectar are anything >from Cakebread Cellars, and any cabernet sauvignon (Bordeaux >grape) from the >Russian River Valley. These vineyards truly rival the best >the French have, >and you don't have to get upset drinking them because the >growers support >getting rid of Suddam Insane. > > >Mark Galbreath >Principal Consultant >Workflow Process Engineering and Systems Integration >http://www.QAT.com >410-703-367 / 800-799-8545 >"Never attribute to malice that which can be adequately explained by >stupidity." ~Hanlon's Razor > > >-Original Message- >From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 2:53 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >To name a few at my house, but I agree that French wines are >better. But >California is getting close. And Australia is also getting close. > >Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 >Private Reserve >Cabernet Sauvignon, Opus One 1999 Opus One > > > >> > But we are catch up quickly, just look at the quality of >Californian >> >wines, they sucked in the 80's and now that are almost as >tasty >> > as French wines. >> >> I don't think you can "compare" with nice french wines (or you have >> try only bad french wine) ;) Let's drink a Mouton Rotschild, Pétrus, >> Chateau Margaux >> >> > >> > >> > Mark Galbreath >> > Principal Consultant >> > Workflow Process Engineering and Systems Integration >> > >> > http://www.QAT.com >> > 410-703-367 / 800-799-8545 >> > >> > "Never attribute to malice that which can be adequately >explained by >> > stupidity." ~Hanlon's Razor >> > >> > >> > >> > -Original Message- >> > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] >> > Sent: Monday, February 10, 2003 11:38 AM >> > To: Struts Users Mailing List >> > Subject: RE: [OT] Modeling tools >> > >> > >> > And we all know that in the U.S. that there is no such thing as a >> > good >> beer! >> > :-P >> > >> > >-Original Message- >> > >From: Robert McIntosh [mailto:[EMAIL PROTECTED]] >> > >Sent: Monday, February 10, 2003 10:27 AM >> > >To: Struts Users Mailing List >> > >Subject: Re: [OT] Modeling tools >> > > >> > > >> > >I agree, especially for collaboration. A whiteboard is a good >> > >developer's best friend (short of a good beer)... >> > > >> > >- Robert >> > > >> > >Chappell, Simon P wrote: >> > > >> > >>It's called a whiteboard (or greaseboard if you fixate about >> > >not refering to colours when describing inanimate objects) and it >> > >does a better job of what I use Rose for than Rose does. >> > >> >> > >> >> > >> >> > >>>-Original Message- >> > >>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]] >> > >>>Sent: Monday, February 10, 2003 9:30 AM >> > >>>To: 'Struts Users Mailing List' >> > >>>Subject: RE: [OT] Modeling tools >> > >>> >> > >>> >> > >>>There is no alternative to Rose. >> > >>> >> > >>>Mark Galbreath >> > >>>Principal Consultant, Workflow Process Engineering and Systems >> > >>>Integration http://www.QAT.com >> > >>>410-703-367 / 800-799-8545 >> > >>> >> > >>>"Never attribute to malice that which can be adequately >explained >> > >>>by stupidity." ~Hanlon's Razor >> > >>> >> > >>> >> > >>> >> > >>>-Original Message- >> > >>>From: Durham David Cntr 805CSS/SCBE >> > >>>[mailto:[EMAIL PROTECTED]] >> > >>>Sent: Monday, February >> > >>>10, 2
RE: Logging and log4j?
By using Commons, you can defer the implementation of the logging framework that clients of your components use to configuration. In most circumstances you will see log4j used, but by using Commons it is very simple to change out your logging framework. -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 6:35 PM To: Struts Users Mailing List Subject: Logging and log4j? I was just wondering what is the pro's and con's for using Commons-Logging contra log4j? Regards, BTJ --- "The stickers on the side of the box said "Supported Platforms: Windows 98, Windows NT 4.0, Windows 2000 or better", so clearly Linux was a supported platform." --- - 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]
Logging and log4j?
I was just wondering what is the pro's and con's for using Commons-Logging contra log4j? Regards, BTJ --- "The stickers on the side of the box said "Supported Platforms: Windows 98, Windows NT 4.0, Windows 2000 or better", so clearly Linux was a supported platform." --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Suggestions/best practices for accessing the same page/view from different locations within the application/workflows...
Dunno exactly what your requirements are, but you could use a history object in the session for this sorta thing. I used a List for our "breadcrumb" links once before, stored on the session. In my abstract superclass Action object, I would push the current request URL onto the head of the List with each request. I had a fixed length List, just removing the tail after it reached capacity so that it operated like a queue. If you're always going to return to the previous page, this is an easy way to deal with it. You would just do something like this in your subclasses: MyListImpl list = (MyListImpl)request.getSession().getAttribute("MY_LIST_IMPL"); String last = list.getPreviousRequest(); // This will be the second-to-last object added to the list return new ActionForward(last); If you're returning to a page 2 or 3 requests ago, things obviously get more complicated. Note that you can do this without an abstract Action superclass if you like, just stick a ServletFilter on the ActionServlet to manage your List instead. hope this helps, Joe > -Original Message- > From: Davide Bruzzone [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 2:53 PM > To: 'Struts Users Mailing List' > Subject: Suggestions/best practices for accessing the same page/view > from different locations within the application/workflows... > > > Greetings all... > > I just wanted to find out if anyone has any suggestions or > best practices > gained from experience with regard to accessing the same page > from different > locations within the application/workflows... > > Here's the scenario: > > 1) I have a page called MyPage. > 2) Its possible to access MyPage directly from the main menu. > When this > happens, clicking the "Done" or "Save" or "Cancel" or > whatever buttons on > MyPage should return the user to the main menu. > 3) Its also possible to access MyPage by going from the main menu to > AnotherPage, then to MyPage (from AnotherPage). When this > happens, clicking > the "Done" or "Save" or "Cancel" or whatever buttons on > MyPage should return > the user to AnotherPage. > 4) ...Ad nauseam... > > In short, where the buttons on a page take the user next can > change, and > depends on where they came from. > > I've taken a brief look at the Struts Workflow extensions > that I read about > on the list, but it wasn't immediately clear to me how they > could be used to > do what I just described. Should I be looking harder? > > Cheers... > > Dave Bruzzone > > - > 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: posting an alternate value to a submit button
You should look at the FindForwardAction in scaffold. It relies on you creating forwards that correspond to button names (with the .x or .y if you are using image buttons). If you can stomach a little bit of javascript (simply to set the value on a hidden field), you can use the RelayAction to do the same type of thing without worrying about button names. -Original Message- From: Garth Patil [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 5:51 PM To: [EMAIL PROTECTED] Subject: posting an alternate value to a submit button is there any way to post an alternate value for a submit button without using javascript? alternately, is there a good way to have the actionform get the name of the submit button without writing a set method for every possible case? thanks. _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - 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: posting an updated collection back to Action
It's almost the same argument as Vigay's post "general question". Basically, the simple solution is to capture all the new line information and update all of them, even it is not changed. If you are trying to avoid it, you can remember the old values and try to detect the change. In the old values cash, you can remember the index number (detail line number) and update the change. From: "MarwanSalam <[EMAIL PROTECTED]>" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: posting an updated collection back to Action Date: Mon, 10 Feb 2003 23:45:31 - Hi, I have a list of line items displayed in a JSP where some of the attributes can be edited. I would like to capture the updated data by the user to return it to my Action class so I can modify my model accordingly. Here is my JSP code: I know my ActionForm class has to have a property called orderDetailList. But the question is, how will the correct index be updated since my list can contain many OrderDetailModel's? Should I add a method in my ActionForm class like getOrderDetailList.get (index)? Help!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: posting an updated collection back to Action
You can create indexed properties ( getOrderDetail(int), setOrderDetail(int, string) ) You have to back them whatever way you see fit (I've used arrays in the past but I had to make sure they were sized propertly on each call). On your JSP, the resulting names for your input fields will need to be indexed: will work if you are using the EL version of the html taglib. (Although I'm not sure the name property has to be specified if you use the html:form tag instead of the form tag as you've shown here) -Original Message- From: MarwanSalam <[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 5:46 PM To: [EMAIL PROTECTED] Subject: posting an updated collection back to Action Hi, I have a list of line items displayed in a JSP where some of the attributes can be edited. I would like to capture the updated data by the user to return it to my Action class so I can modify my model accordingly. Here is my JSP code: I know my ActionForm class has to have a property called orderDetailList. But the question is, how will the correct index be updated since my list can contain many OrderDetailModel's? Should I add a method in my ActionForm class like getOrderDetailList.get (index)? Help!!! - 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: custom tag
The example in Ted's book shows exactly the same way to handle it. However, it would not work for me. Is that because of the way I write my custom tag? What's the order the container process the script and custom tag? Thanks From: "Derek Shen" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: custom tag Date: Mon, 10 Feb 2003 19:09:27 + Realized that custom tag can not be nested within the attribute of another custom tag. Trying to do another way, still not working, very strange. Please help. <%= myValue %> (instead of the real value) is passed in the customer tag as the attribute value. _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: posting an updated collection back to Action
For your "orderDetail" textbox you could have setOrderDetail(String[]) and String[] getOrderDetail() getter/setter in your ActionForm class. Hope this helps. ATTA - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 10, 2003 3:45 PM Subject: posting an updated collection back to Action > Hi, > > I have a list of line items displayed in a JSP where some of the > attributes can be edited. I would like to capture the updated data by > the user to return it to my Action class so I can modify my model > accordingly. > > Here is my JSP code: > > > > collection="<%= orderDetailList %>"> > > > > > > I know my ActionForm class has to have a property called > orderDetailList. But the question is, how will the correct index be > updated since my list can contain many OrderDetailModel's? Should I > add a method in my ActionForm class like getOrderDetailList.get > (index)? Help!!! > > > - > 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]
1.1 b3 default format strings for WriteTag
Hi all, So I've upgraded our rather large app. to Struts 1.1 b3, and I'm all grins except for one thing: The format options on the new WriteTag require that your MessageResources implementation return null for it to apply default formatting rules to your properties. Otherwise, when it attempts to look up the default format string key for the data type of the property being written, e.g. "org.apache.struts.taglib.bean.format.int", it will get some dummy value back (in our case, "SYMBOL VALUE NOT FOUND: "), and then of course an exception occurs when it tries to use this in a applyPattern() call to a Format object. We would really rather not return null from a call to getMessage(), as it is very useful in our app. (esp. for QA) to be able to see what message key is missing visually, rather than having to look at a log. So, I'm wondering if anyone else has had this problem and what their solution was. I'm going to solve this one in our MessageResources implementation by referring to the WriteTag's constant values for these format strings, and if the key being looked up equals any of those, return null, otherwise return our dummy "SYMBOL NOT FOUND" value (when returnNull==false). But I don't like it very much. This should really be a configuration option in struts-config or something. Does anyone know if there are plans to change this behavior? peace, Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
posting an alternate value to a submit button
is there any way to post an alternate value for a submit button without using javascript? alternately, is there a good way to have the actionform get the name of the submit button without writing a set method for every possible case? thanks. _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
posting an updated collection back to Action
Hi, I have a list of line items displayed in a JSP where some of the attributes can be edited. I would like to capture the updated data by the user to return it to my Action class so I can modify my model accordingly. Here is my JSP code: I know my ActionForm class has to have a property called orderDetailList. But the question is, how will the correct index be updated since my list can contain many OrderDetailModel's? Should I add a method in my ActionForm class like getOrderDetailList.get (index)? Help!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Modeling tools
I'll go just to watch Simon drink a beer! -Original Message- From: Victor Soares [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 5:35 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Modeling tools American beer is devoid of flavor!!?? That's true if you think Bud Light is the representative of American beer. You really do need to visit the west coast, my friend Portland, Oregon in particular. There are more tasty microbrews than you can shake a stick at. I'll personally take you on a tour. Unfortunately for you, the beer will be chilled... but we can leave your pint out and let it warm up. ;) Do I hear seconds for a STRUTS convention in Portland, Oregon? - vic >>> [EMAIL PROTECTED] 02/10/03 02:13PM >>> Drinking warm beer is possible when there is flavour in there in the first place. Yankee beer is devoid of flavour and then they chill it! Might as well drink mineral water. No serious red-wine drinker would drink it chilled. Each beverage has it's agreed optimum drinking temperature. To use a non-alcholic example, tea should be drunk hot and with milk in it. What those southerners do to it should be federally prohibited! Simon >-Original Message- >From: alexj [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 4:08 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >I will try this one ;) , I heard some Australian wine are >pretty good to. >(but I can't understand how English guy can drink warm beer lol) > >- Original Message - >From: "Mark Galbreath" <[EMAIL PROTECTED]> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> >Sent: Monday, February 10, 2003 8:59 PM >Subject: RE: [OT] Modeling tools > > >The best California wines in my long flirtation with the >nectar are anything >from Cakebread Cellars, and any cabernet sauvignon (Bordeaux >grape) from the >Russian River Valley. These vineyards truly rival the best >the French have, >and you don't have to get upset drinking them because the >growers support >getting rid of Suddam Insane. > > >Mark Galbreath >Principal Consultant >Workflow Process Engineering and Systems Integration http://www.QAT.com >410-703-367 / 800-799-8545 >"Never attribute to malice that which can be adequately explained by >stupidity." ~Hanlon's Razor > > >-Original Message- >From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 2:53 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >To name a few at my house, but I agree that French wines are >better. But >California is getting close. And Australia is also getting close. > >Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 >Private Reserve >Cabernet Sauvignon, Opus One 1999 Opus One > > > >> > But we are catch up quickly, just look at the quality of >Californian >> >wines, they sucked in the 80's and now that are almost as >tasty >> > as French wines. >> >> I don't think you can "compare" with nice french wines (or you have >> try only bad french wine) ;) Let's drink a Mouton Rotschild, Pétrus, >> Chateau Margaux >> >> > >> > >> > Mark Galbreath >> > Principal Consultant >> > Workflow Process Engineering and Systems Integration >> > >> > http://www.QAT.com >> > 410-703-367 / 800-799-8545 >> > >> > "Never attribute to malice that which can be adequately >explained by >> > stupidity." ~Hanlon's Razor >> > >> > >> > >> > -Original Message- >> > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] >> > Sent: Monday, February 10, 2003 11:38 AM >> > To: Struts Users Mailing List >> > Subject: RE: [OT] Modeling tools >> > >> > >> > And we all know that in the U.S. that there is no such thing as a >> > good >> beer! >> > :-P >> > >> > >-Original Message- >> > >From: Robert McIntosh [mailto:[EMAIL PROTECTED]] >> > >Sent: Monday, February 10, 2003 10:27 AM >> > >To: Struts Users Mailing List >> > >Subject: Re: [OT] Modeling tools >> > > >> > > >> > >I agree, especially for collaboration. A whiteboard is a good >> > >developer's best friend (short of a good beer)... >> > > >> > >- Robert >> > > >> > >Chappell, Simon P wrote: >> > > >> > >>It's called a whiteboard (or greaseboard if you fixate about >> > >not refering to colours when describing inanimate objects) and it >> > >does a better job of what I use Rose for than Rose does. >> > >> >> > >> >> > >> >> > >>>-Original Message- >> > >>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]] >> > >>>Sent: Monday, February 10, 2003 9:30 AM >> > >>>To: 'Struts Users Mailing List' >> > >>>Subject: RE: [OT] Modeling tools >> > >>> >> > >>> >> > >>>There is no alternative to Rose. >> > >>> >> > >>>Mark Galbreath >> > >>>Principal Consultant, Workflow Process Engineering and Systems >> > >>>Integration http://www.QAT.com >> > >>>410-703-367 / 800-799-8545 >> > >>> >> > >>>"Never attribute to malice that which can be adequately >explained >> > >>>by stupidity." ~Hanlon's Razor >> > >>> >> > >>> >> > >>> >> > >>>-Original
RE: Where to repopulate dynamic lists ?
I don't know if the manual approach will work in that case or not. It will be interesting to find out though. For my callback approach, I tried extending from RequestProcessor, which should have the advantage of working with the built in struts validation schemes. I was not successful at finding a good hook point to make the callback though. I needed the hook between the validation itself, and the forward to the input view, both of which are handled in the processValidate method. If someone else sees a way to hook into the RequestProcessor to handle this, I'd love to hear how! Joe > -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 5:51 PM > To: Struts Users Mailing List > Subject: Re: Where to repopulate dynamic lists ? > > > > > On Mon, 10 Feb 2003 10:16:26 -0500 > "Joseph Fifield" <[EMAIL PROTECTED]> wrote: > > > This topic seems to keep coming up, and with no real good solutions > > (IMHO). One point that seems to be made frequently though, > is that the > > logic to repopulate the lists really doesn't belong in the > ActionForm, > > yet that seems to be the most convenient place to put it. I know I > > would really like this logic to go in the Action. My solution > > currently consists of setting validate to false in > struts-config.xml, > > and validating manually in my action: > > > > ActionErrors errors = myForm.validate(); > > if (hasErrors(errors)) { > > populateLists(); > > saveErrors(errors); > > return getInputForward(mapping); > > } > > > > I'm not sure how all of this would work using > DynaValidatorForm and DispatchAction which I'm using. It > seems so simple to just have the method > BusinessLayer.populateLists() in the reset method of a form > bean that your DynaValidatorForm extends. I'll have to look > into using your approach using the built in validation and > see if I could get it to work. > > > > Although I don't particularly like this approach either, > it's the one > > I like the best (so far). > > > > One idea I had (and tried to implement) was to put a > callback in the > > Action that was invoked after validation failure, but before > > forwarding to the input view? What do others think of this > approach? > > What other solutions are there? > > > > Joe > > > > > -Original Message- > > > From: Rick Reumann [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, February 10, 2003 3:58 AM > > > To: Struts Users Mailing List > > > Subject: Where to repopulate dynamic lists ? > > > > > > > > > Sorry to repost this question but it still has me wondering... > > > > > > > > > Say you have a form where a user is to select "An Order To > > > Update" from an options list. Now also assume that these > > > orders to choose from change very frequently. You also will > > > need to validate the form when it's submitted. > > > > > > * Where is it best to repopulate this type of dynamic list > > > (example above: 'orders')? The list of orders that make up > > > the options list needs to be repopulated somewhere in case > > > validation returns false and returns the user to the form > > > page again. > > > > > > It seems like you have three choices: > > > > > > 1) In the reset method repopulate the list by making a call > > > to business layer to get back your list and put in scope (or > > > maybe even directly into FormBean). > > > > > > 2) Use session scope so the list is available at all times > > > until repopulated by some setUp type of action. > > > > > > 3) Possibly set this list in application scope upon container > > > start up and maybe have a thread running that periodically > > > updates the list and put the new list back into application scope. > > > > > > Are there any other options available? I happen to like #1 > > > the best but I'm wondering what others think. I don't really > > > like option 2 as it requires a form to be put into session > > > scope that really doesn't need to be there (apart from the > > > re-population of lists). Also a pain to monitor cleaning the > > > form out of session when it is no longer needed. Option 3 > > > would be ok if the information in the list rarely changed, > > > but if it's data that changes very frequently I wouldn't want > > > to rely on some time interval to have to go by before getting > > > fresh data. > > > > > > Curious what other's thoughts are on this situation. > > > > > > Thanks, > > > > > > -- > > > Rick > > > > > -- > Rick Reumann > > - > 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: trouble
I just saw my mapping definition was incomplete ... :)) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: trouble
Here follow my mapping - Original Message - From: "Sean Dockery" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 12:16 AM Subject: Re: trouble > What forwards are defined for your action in struts-config.xml? > > > - Original Message - > From: "alexj" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Monday, February 10, 2003 10:56 > Subject: Re: trouble > > > > (in fact when I run the app and enter bad datas I didn't get any > > errors message displayed on my login page) > > > > > > - > 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: trouble
What forwards are defined for your action in struts-config.xml? - Original Message - From: "alexj" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, February 10, 2003 10:56 Subject: Re: trouble > (in fact when I run the app and enter bad datas I didn't get any > errors message displayed on my login page) > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PropertyUtils
I guess maybe my original post was too long-winded to read because I got no replies... http://www.mail-archive.com/struts-user@jakarta.apache.org/msg57926.html but can somebody at least tell me if I'm way out to lunch here: 1. PropertyUtils.copyProperties() only performs a shallow copy, according to it's JavaDoc description. So I think this means that the form properties with nested objects could be referring to the same object instance that is actually one of the properties of a business object. Now, doesn't that mean that business objects are being modified without being mediated by the Action object? In other words, you don't get the chance to look at the input data and decide whether or not to reject it or use only some of it to change the state of the model. what I mean by this is you have a business object bizObj, which has nested javabean properties like: bizObj.property1.nestedproperty1 if you do PropertyUtils.copyProperties(myForm, bizObj), then your form property myForm.property1.nestedproperty1 is actually the same instance of the object nestedproperty1 that is being used by the business object. is that correct? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Suggestions/best practices for accessing the same page/view from different locations within the application/workflows...
Greetings all... I just wanted to find out if anyone has any suggestions or best practices gained from experience with regard to accessing the same page from different locations within the application/workflows... Here's the scenario: 1) I have a page called MyPage. 2) Its possible to access MyPage directly from the main menu. When this happens, clicking the "Done" or "Save" or "Cancel" or whatever buttons on MyPage should return the user to the main menu. 3) Its also possible to access MyPage by going from the main menu to AnotherPage, then to MyPage (from AnotherPage). When this happens, clicking the "Done" or "Save" or "Cancel" or whatever buttons on MyPage should return the user to AnotherPage. 4) ...Ad nauseam... In short, where the buttons on a page take the user next can change, and depends on where they came from. I've taken a brief look at the Struts Workflow extensions that I read about on the list, but it wasn't immediately clear to me how they could be used to do what I just described. Should I be looking harder? Cheers... Dave Bruzzone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to repopulate dynamic lists ?
On Mon, 10 Feb 2003 10:16:26 -0500 "Joseph Fifield" <[EMAIL PROTECTED]> wrote: > This topic seems to keep coming up, and with no real good solutions > (IMHO). One point that seems to be made frequently though, is that the > logic to repopulate the lists really doesn't belong in the ActionForm, > yet that seems to be the most convenient place to put it. I know I > would really like this logic to go in the Action. My solution > currently consists of setting validate to false in struts-config.xml, > and validating manually in my action: > > ActionErrors errors = myForm.validate(); > if (hasErrors(errors)) { > populateLists(); > saveErrors(errors); > return getInputForward(mapping); > } > I'm not sure how all of this would work using DynaValidatorForm and DispatchAction which I'm using. It seems so simple to just have the method BusinessLayer.populateLists() in the reset method of a form bean that your DynaValidatorForm extends. I'll have to look into using your approach using the built in validation and see if I could get it to work. > Although I don't particularly like this approach either, it's the one > I like the best (so far). > > One idea I had (and tried to implement) was to put a callback in the > Action that was invoked after validation failure, but before > forwarding to the input view? What do others think of this approach? > What other solutions are there? > > Joe > > > -Original Message- > > From: Rick Reumann [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 10, 2003 3:58 AM > > To: Struts Users Mailing List > > Subject: Where to repopulate dynamic lists ? > > > > > > Sorry to repost this question but it still has me wondering... > > > > > > Say you have a form where a user is to select "An Order To > > Update" from an options list. Now also assume that these > > orders to choose from change very frequently. You also will > > need to validate the form when it's submitted. > > > > * Where is it best to repopulate this type of dynamic list > > (example above: 'orders')? The list of orders that make up > > the options list needs to be repopulated somewhere in case > > validation returns false and returns the user to the form > > page again. > > > > It seems like you have three choices: > > > > 1) In the reset method repopulate the list by making a call > > to business layer to get back your list and put in scope (or > > maybe even directly into FormBean). > > > > 2) Use session scope so the list is available at all times > > until repopulated by some setUp type of action. > > > > 3) Possibly set this list in application scope upon container > > start up and maybe have a thread running that periodically > > updates the list and put the new list back into application scope. > > > > Are there any other options available? I happen to like #1 > > the best but I'm wondering what others think. I don't really > > like option 2 as it requires a form to be put into session > > scope that really doesn't need to be there (apart from the > > re-population of lists). Also a pain to monitor cleaning the > > form out of session when it is no longer needed. Option 3 > > would be ok if the information in the list rarely changed, > > but if it's data that changes very frequently I wouldn't want > > to rely on some time interval to have to go by before getting > > fresh data. > > > > Curious what other's thoughts are on this situation. > > > > Thanks, > > > > -- > > Rick > > -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Modeling tools
American beer is devoid of flavor!!?? That's true if you think Bud Light is the representative of American beer. You really do need to visit the west coast, my friend Portland, Oregon in particular. There are more tasty microbrews than you can shake a stick at. I'll personally take you on a tour. Unfortunately for you, the beer will be chilled... but we can leave your pint out and let it warm up. ;) Do I hear seconds for a STRUTS convention in Portland, Oregon? - vic >>> [EMAIL PROTECTED] 02/10/03 02:13PM >>> Drinking warm beer is possible when there is flavour in there in the first place. Yankee beer is devoid of flavour and then they chill it! Might as well drink mineral water. No serious red-wine drinker would drink it chilled. Each beverage has it's agreed optimum drinking temperature. To use a non-alcholic example, tea should be drunk hot and with milk in it. What those southerners do to it should be federally prohibited! Simon >-Original Message- >From: alexj [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 4:08 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >I will try this one ;) , I heard some Australian wine are >pretty good to. >(but I can't understand how English guy can drink warm beer lol) > >- Original Message - >From: "Mark Galbreath" <[EMAIL PROTECTED]> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> >Sent: Monday, February 10, 2003 8:59 PM >Subject: RE: [OT] Modeling tools > > >The best California wines in my long flirtation with the >nectar are anything >from Cakebread Cellars, and any cabernet sauvignon (Bordeaux >grape) from the >Russian River Valley. These vineyards truly rival the best >the French have, >and you don't have to get upset drinking them because the >growers support >getting rid of Suddam Insane. > > >Mark Galbreath >Principal Consultant >Workflow Process Engineering and Systems Integration >http://www.QAT.com >410-703-367 / 800-799-8545 >"Never attribute to malice that which can be adequately explained by >stupidity." ~Hanlon's Razor > > >-Original Message- >From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 2:53 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >To name a few at my house, but I agree that French wines are >better. But >California is getting close. And Australia is also getting close. > >Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 >Private Reserve >Cabernet Sauvignon, Opus One 1999 Opus One > > > >> > But we are catch up quickly, just look at the quality of >Californian >> >wines, they sucked in the 80's and now that are almost as >tasty >> > as French wines. >> >> I don't think you can "compare" with nice french wines (or you have >> try only bad french wine) ;) Let's drink a Mouton Rotschild, Pétrus, >> Chateau Margaux >> >> > >> > >> > Mark Galbreath >> > Principal Consultant >> > Workflow Process Engineering and Systems Integration >> > >> > http://www.QAT.com >> > 410-703-367 / 800-799-8545 >> > >> > "Never attribute to malice that which can be adequately >explained by >> > stupidity." ~Hanlon's Razor >> > >> > >> > >> > -Original Message- >> > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] >> > Sent: Monday, February 10, 2003 11:38 AM >> > To: Struts Users Mailing List >> > Subject: RE: [OT] Modeling tools >> > >> > >> > And we all know that in the U.S. that there is no such thing as a >> > good >> beer! >> > :-P >> > >> > >-Original Message- >> > >From: Robert McIntosh [mailto:[EMAIL PROTECTED]] >> > >Sent: Monday, February 10, 2003 10:27 AM >> > >To: Struts Users Mailing List >> > >Subject: Re: [OT] Modeling tools >> > > >> > > >> > >I agree, especially for collaboration. A whiteboard is a good >> > >developer's best friend (short of a good beer)... >> > > >> > >- Robert >> > > >> > >Chappell, Simon P wrote: >> > > >> > >>It's called a whiteboard (or greaseboard if you fixate about >> > >not refering to colours when describing inanimate objects) and it >> > >does a better job of what I use Rose for than Rose does. >> > >> >> > >> >> > >> >> > >>>-Original Message- >> > >>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]] >> > >>>Sent: Monday, February 10, 2003 9:30 AM >> > >>>To: 'Struts Users Mailing List' >> > >>>Subject: RE: [OT] Modeling tools >> > >>> >> > >>> >> > >>>There is no alternative to Rose. >> > >>> >> > >>>Mark Galbreath >> > >>>Principal Consultant, Workflow Process Engineering and Systems >> > >>>Integration http://www.QAT.com >> > >>>410-703-367 / 800-799-8545 >> > >>> >> > >>>"Never attribute to malice that which can be adequately >explained >> > >>>by stupidity." ~Hanlon's Razor >> > >>> >> > >>> >> > >>> >> > >>>-Original Message- >> > >>>From: Durham David Cntr 805CSS/SCBE >> > >>>[mailto:[EMAIL PROTECTED]] >> > >>>Sent: Monday, February >> > >>>10, 2003 10:04 AM >> > >>>To: [EMAIL PROTECTED] >> > >>>Subject: [OT]
RE: [OT] Modeling tools
I bet you like haggis, too. Blimey limey! Mark Galbreath Principal Consultant Workflow Process Engineering and Systems Integration http://www.QAT.com 410-703-367 / 800-799-8545 "Never attribute to malice that which can be adequately explained by stupidity." ~Hanlon's Razor -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 5:13 PM To: Struts Users Mailing List Subject: RE: [OT] Modeling tools Drinking warm beer is possible when there is flavour in there in the first place. Yankee beer is devoid of flavour and then they chill it! Might as well drink mineral water. No serious red-wine drinker would drink it chilled. Each beverage has it's agreed optimum drinking temperature. To use a non-alcholic example, tea should be drunk hot and with milk in it. What those southerners do to it should be federally prohibited! Simon >-Original Message- >From: alexj [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 4:08 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >I will try this one ;) , I heard some Australian wine are >pretty good to. >(but I can't understand how English guy can drink warm beer lol) > >- Original Message - >From: "Mark Galbreath" <[EMAIL PROTECTED]> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> >Sent: Monday, February 10, 2003 8:59 PM >Subject: RE: [OT] Modeling tools > > >The best California wines in my long flirtation with the >nectar are anything >from Cakebread Cellars, and any cabernet sauvignon (Bordeaux >grape) from the >Russian River Valley. These vineyards truly rival the best >the French have, >and you don't have to get upset drinking them because the >growers support >getting rid of Suddam Insane. > > >Mark Galbreath >Principal Consultant >Workflow Process Engineering and Systems Integration http://www.QAT.com >410-703-367 / 800-799-8545 >"Never attribute to malice that which can be adequately explained by >stupidity." ~Hanlon's Razor > > >-Original Message- >From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 2:53 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >To name a few at my house, but I agree that French wines are >better. But >California is getting close. And Australia is also getting close. > >Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 >Private Reserve >Cabernet Sauvignon, Opus One 1999 Opus One > > > >> > But we are catch up quickly, just look at the quality of >Californian >> >wines, they sucked in the 80's and now that are almost as >tasty >> > as French wines. >> >> I don't think you can "compare" with nice french wines (or you have >> try only bad french wine) ;) Let's drink a Mouton Rotschild, Pétrus, >> Chateau Margaux >> >> > >> > >> > Mark Galbreath >> > Principal Consultant >> > Workflow Process Engineering and Systems Integration >> > >> > http://www.QAT.com >> > 410-703-367 / 800-799-8545 >> > >> > "Never attribute to malice that which can be adequately >explained by >> > stupidity." ~Hanlon's Razor >> > >> > >> > >> > -Original Message- >> > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] >> > Sent: Monday, February 10, 2003 11:38 AM >> > To: Struts Users Mailing List >> > Subject: RE: [OT] Modeling tools >> > >> > >> > And we all know that in the U.S. that there is no such thing as a >> > good >> beer! >> > :-P >> > >> > >-Original Message- >> > >From: Robert McIntosh [mailto:[EMAIL PROTECTED]] >> > >Sent: Monday, February 10, 2003 10:27 AM >> > >To: Struts Users Mailing List >> > >Subject: Re: [OT] Modeling tools >> > > >> > > >> > >I agree, especially for collaboration. A whiteboard is a good >> > >developer's best friend (short of a good beer)... >> > > >> > >- Robert >> > > >> > >Chappell, Simon P wrote: >> > > >> > >>It's called a whiteboard (or greaseboard if you fixate about >> > >not refering to colours when describing inanimate objects) and it >> > >does a better job of what I use Rose for than Rose does. >> > >> >> > >> >> > >> >> > >>>-Original Message- >> > >>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]] >> > >>>Sent: Monday, February 10, 2003 9:30 AM >> > >>>To: 'Struts Users Mailing List' >> > >>>Subject: RE: [OT] Modeling tools >> > >>> >> > >>> >> > >>>There is no alternative to Rose. >> > >>> >> > >>>Mark Galbreath >> > >>>Principal Consultant, Workflow Process Engineering and Systems >> > >>>Integration http://www.QAT.com 410-703-367 / 800-799-8545 >> > >>> >> > >>>"Never attribute to malice that which can be adequately >explained >> > >>>by stupidity." ~Hanlon's Razor >> > >>> >> > >>> >> > >>> >> > >>>-Original Message- >> > >>>From: Durham David Cntr 805CSS/SCBE >> > >>>[mailto:[EMAIL PROTECTED]] >> > >>>Sent: Monday, February >> > >>>10, 2003 10:04 AM >> > >>>To: [EMAIL PROTECTED] >> > >>>Subject: [OT] Modeling tools >> > >>> >> > >>> >> > >>>Wondering what kind of modeling tools you w
Re: Rendering alternate rows of a table in Struts
Sorry to bring this up again, (I haven't been paying attention) but this is what I use for alternate rows. Joe - Original Message - From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Monday, February 10, 2003 11:36 PM Subject: RE: Rendering alternate rows of a table in Struts > Hi, > >I found this from the archives. > > > > > > > > > > > > > Mohan > -Original Message- > From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 6:02 PM > To: 'Struts Users Mailing List' > Subject: RE: Rendering alternate rows of a table in Struts > > > Hi, >We use this. > > indexId="index" offset="1"> > <% > if ( index.intValue() % 2 == 0 ){ > %> > > name="datalist"> > class="11pxtext"> > > > <% > } else { > %> > > name="datalist"> > class="11pxtext"> > > > <% > } > %> > > I think that there is a way to check the index value with logic compare > tags. > > Mohan > > -Original Message- > From: David Graham [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 8:30 PM > To: [EMAIL PROTECTED] > Subject: Re: Rendering alternate rows of a table in Struts > > > http://jakarta.apache.org/struts/resources/taglibs.html > > At the bottom of the page is RowTag. > > David > > > >Hi All, > >I am using logic iterate tag to iterate over a collection > >and display the contents of the collection in the > >form of a table. > >I want to render the alternate rows with different background colours. > >I don't want to use scriptlet for finding the row number and set the > >colour. > >Is there any Struts tag where I can specify such functionality. > > > >Regards, > >Ritesh. > > > _ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > > - > 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: [OT] Modeling tools
Drinking warm beer is possible when there is flavour in there in the first place. Yankee beer is devoid of flavour and then they chill it! Might as well drink mineral water. No serious red-wine drinker would drink it chilled. Each beverage has it's agreed optimum drinking temperature. To use a non-alcholic example, tea should be drunk hot and with milk in it. What those southerners do to it should be federally prohibited! Simon >-Original Message- >From: alexj [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 4:08 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >I will try this one ;) , I heard some Australian wine are >pretty good to. >(but I can't understand how English guy can drink warm beer lol) > >- Original Message - >From: "Mark Galbreath" <[EMAIL PROTECTED]> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> >Sent: Monday, February 10, 2003 8:59 PM >Subject: RE: [OT] Modeling tools > > >The best California wines in my long flirtation with the >nectar are anything >from Cakebread Cellars, and any cabernet sauvignon (Bordeaux >grape) from the >Russian River Valley. These vineyards truly rival the best >the French have, >and you don't have to get upset drinking them because the >growers support >getting rid of Suddam Insane. > > >Mark Galbreath >Principal Consultant >Workflow Process Engineering and Systems Integration >http://www.QAT.com >410-703-367 / 800-799-8545 >"Never attribute to malice that which can be adequately explained by >stupidity." ~Hanlon's Razor > > >-Original Message- >From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 2:53 PM >To: Struts Users Mailing List >Subject: Re: [OT] Modeling tools > > >To name a few at my house, but I agree that French wines are >better. But >California is getting close. And Australia is also getting close. > >Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 >Private Reserve >Cabernet Sauvignon, Opus One 1999 Opus One > > > >> > But we are catch up quickly, just look at the quality of >Californian >> >wines, they sucked in the 80's and now that are almost as >tasty >> > as French wines. >> >> I don't think you can "compare" with nice french wines (or you have >> try only bad french wine) ;) Let's drink a Mouton Rotschild, Pétrus, >> Chateau Margaux >> >> > >> > >> > Mark Galbreath >> > Principal Consultant >> > Workflow Process Engineering and Systems Integration >> > >> > http://www.QAT.com >> > 410-703-367 / 800-799-8545 >> > >> > "Never attribute to malice that which can be adequately >explained by >> > stupidity." ~Hanlon's Razor >> > >> > >> > >> > -Original Message- >> > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] >> > Sent: Monday, February 10, 2003 11:38 AM >> > To: Struts Users Mailing List >> > Subject: RE: [OT] Modeling tools >> > >> > >> > And we all know that in the U.S. that there is no such thing as a >> > good >> beer! >> > :-P >> > >> > >-Original Message- >> > >From: Robert McIntosh [mailto:[EMAIL PROTECTED]] >> > >Sent: Monday, February 10, 2003 10:27 AM >> > >To: Struts Users Mailing List >> > >Subject: Re: [OT] Modeling tools >> > > >> > > >> > >I agree, especially for collaboration. A whiteboard is a good >> > >developer's best friend (short of a good beer)... >> > > >> > >- Robert >> > > >> > >Chappell, Simon P wrote: >> > > >> > >>It's called a whiteboard (or greaseboard if you fixate about >> > >not refering to colours when describing inanimate objects) and it >> > >does a better job of what I use Rose for than Rose does. >> > >> >> > >> >> > >> >> > >>>-Original Message- >> > >>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]] >> > >>>Sent: Monday, February 10, 2003 9:30 AM >> > >>>To: 'Struts Users Mailing List' >> > >>>Subject: RE: [OT] Modeling tools >> > >>> >> > >>> >> > >>>There is no alternative to Rose. >> > >>> >> > >>>Mark Galbreath >> > >>>Principal Consultant, Workflow Process Engineering and Systems >> > >>>Integration http://www.QAT.com >> > >>>410-703-367 / 800-799-8545 >> > >>> >> > >>>"Never attribute to malice that which can be adequately >explained >> > >>>by stupidity." ~Hanlon's Razor >> > >>> >> > >>> >> > >>> >> > >>>-Original Message- >> > >>>From: Durham David Cntr 805CSS/SCBE >> > >>>[mailto:[EMAIL PROTECTED]] >> > >>>Sent: Monday, February >> > >>>10, 2003 10:04 AM >> > >>>To: [EMAIL PROTECTED] >> > >>>Subject: [OT] Modeling tools >> > >>> >> > >>> >> > >>>Wondering what kind of modeling tools you would recommended. I'm >> > >>>looking for alternatives to Rational Rose and Poseidon. Thanks. >> > >>> >> > >>>-Dave >> > >>> >> > - >> > >>> >> > >>>To unsubscribe, e-mail: >[EMAIL PROTECTED] >> > >>>For additional commands, e-mail: >[EMAIL PROTECTED] >> > >>> >> > >>> >> > >>> >> > - >> > >>> >> > >>
Re: [OT] Modeling tools
I will try this one ;) , I heard some Australian wine are pretty good to. (but I can't understand how English guy can drink warm beer lol) - Original Message - From: "Mark Galbreath" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Monday, February 10, 2003 8:59 PM Subject: RE: [OT] Modeling tools The best California wines in my long flirtation with the nectar are anything from Cakebread Cellars, and any cabernet sauvignon (Bordeaux grape) from the Russian River Valley. These vineyards truly rival the best the French have, and you don't have to get upset drinking them because the growers support getting rid of Suddam Insane. Mark Galbreath Principal Consultant Workflow Process Engineering and Systems Integration http://www.QAT.com 410-703-367 / 800-799-8545 "Never attribute to malice that which can be adequately explained by stupidity." ~Hanlon's Razor -Original Message- From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 2:53 PM To: Struts Users Mailing List Subject: Re: [OT] Modeling tools To name a few at my house, but I agree that French wines are better. But California is getting close. And Australia is also getting close. Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 Private Reserve Cabernet Sauvignon, Opus One 1999 Opus One > > But we are catch up quickly, just look at the quality of Californian > >wines, they sucked in the 80's and now that are almost as tasty > > as French wines. > > I don't think you can "compare" with nice french wines (or you have > try only bad french wine) ;) Let's drink a Mouton Rotschild, Pétrus, > Chateau Margaux > > > > > > > Mark Galbreath > > Principal Consultant > > Workflow Process Engineering and Systems Integration > > > > http://www.QAT.com > > 410-703-367 / 800-799-8545 > > > > "Never attribute to malice that which can be adequately explained by > > stupidity." ~Hanlon's Razor > > > > > > > > -Original Message- > > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 10, 2003 11:38 AM > > To: Struts Users Mailing List > > Subject: RE: [OT] Modeling tools > > > > > > And we all know that in the U.S. that there is no such thing as a > > good > beer! > > :-P > > > > >-Original Message- > > >From: Robert McIntosh [mailto:[EMAIL PROTECTED]] > > >Sent: Monday, February 10, 2003 10:27 AM > > >To: Struts Users Mailing List > > >Subject: Re: [OT] Modeling tools > > > > > > > > >I agree, especially for collaboration. A whiteboard is a good > > >developer's best friend (short of a good beer)... > > > > > >- Robert > > > > > >Chappell, Simon P wrote: > > > > > >>It's called a whiteboard (or greaseboard if you fixate about > > >not refering to colours when describing inanimate objects) and it > > >does a better job of what I use Rose for than Rose does. > > >> > > >> > > >> > > >>>-Original Message- > > >>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]] > > >>>Sent: Monday, February 10, 2003 9:30 AM > > >>>To: 'Struts Users Mailing List' > > >>>Subject: RE: [OT] Modeling tools > > >>> > > >>> > > >>>There is no alternative to Rose. > > >>> > > >>>Mark Galbreath > > >>>Principal Consultant, Workflow Process Engineering and Systems > > >>>Integration http://www.QAT.com > > >>>410-703-367 / 800-799-8545 > > >>> > > >>>"Never attribute to malice that which can be adequately explained > > >>>by stupidity." ~Hanlon's Razor > > >>> > > >>> > > >>> > > >>>-Original Message- > > >>>From: Durham David Cntr 805CSS/SCBE > > >>>[mailto:[EMAIL PROTECTED]] > > >>>Sent: Monday, February > > >>>10, 2003 10:04 AM > > >>>To: [EMAIL PROTECTED] > > >>>Subject: [OT] Modeling tools > > >>> > > >>> > > >>>Wondering what kind of modeling tools you would recommended. I'm > > >>>looking for alternatives to Rational Rose and Poseidon. Thanks. > > >>> > > >>>-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] > > >>> > > >>> > > >>> > > >>> > > >> > > >>-- > > >>--- > > >>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: General Question
Is this in J2ee design patterns, I think I will have a look at it.It might have something better - Original Message - From: "Jacob Hookom" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Monday, February 10, 2003 3:45 PM Subject: RE: General Question You may need to elaborate; but I think you might want to double the fields to compare the original against the editable if you want to keep the transaction request based, otherwise you might want to use the Unit of Work or Memento pattern in managing the transaction. Check either Design Patterns from GoF or Fowler's Patterns of Enterprise Application Architecture. | -Original Message- | From: Vinay [mailto:[EMAIL PROTECTED]] | Sent: Monday, February 10, 2003 2:27 PM | To: Struts Users Mailing List | Subject: General Question | | This is a very general question and not specifically related to struts or | tag libraries, may be naive,thought somebody could help me off the list on | the list. | | I have this very big form with list of 100's of transactions pulled from | the database base thru a select statement or a similar one. | | And this form has a lot of textfields where the user can edit the fields | and send it back to the database for updations. | | I need to get only those values which are being edited by the user for | updations in Action Class. If this looks vague , i can elaborate. | | Do i have to compare or check if user has edited. | | The solution might be very trivial , but couldn't get any idea. | | Thank you , | | Help appreciated, | | | Vinay. | | | | - 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] dummy data tool
As a Struts-based application developer and project manager living in Bend and looking at Mt Bachelor every day, I can second Craig's comments. The mountains are indeed beautiful. The ski slopes are just 3/4 hour away. Brad "Craig R. McClanahan" To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: RE: [OT] dummy data tool 10-02-03 13:10 Please respond to "Struts Users Mailing List" On Mon, 10 Feb 2003, Mark Galbreath wrote: > Not fair!!! You probably have no more than a 1/2-hour drive to great skiing > in the Crater Lake area! One of my best friends works for Intel and lives > in Seattle. He tells me the skiing is fantastic in the Cascade Range. > Crater Lake would be about six hours, but Mount Hood has several nice ski areas about 90 minutes away ... and there is nothing prettier than the Mt. Bachelor ski area in central Oregon (roughly four hours for me), near Bend. I went to college in Tacoma (just south of Seattle), and the Washington Cascades do indeed have some nice ski areas too. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reset button.
no, not really, I'll give it a try thank you! -gus Durham David Cntr 805CSS/SCBE wrote: Gus, try going back a few posts to the javascript stuff. I think it's more in line with your original question. As a test try putting: on your page. replace nameOfYourForm and firstTextField with the appropriate names. I think you'll start to see where this is going. It's not hard, and there isn't a need for server side processing, unless there is, well, a need for server side processing. Is there? You haven't mentioned any. -Dave -Original Message- From: Gus Delgado [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 3:14 PM To: Struts Users Mailing List Subject: Re: Reset button. isReset() who's method is that, action, form? I can't seem to find it. -Gus Jacky Kimmel wrote: if (isReset(httpServletRequest)) { return actionMapping.findForward(Constants.D_RESET); } As you can see, I had a constants class that I refer to. Also, in the struts-config.xml I have mapped this forward back to the original jsp. I put this snippet of code in the beginning of each action class I have. Gus Delgado <[EMAIL PROTECTED]> wrote:how do I check for the reset in the Action? Jacky Kimmel wrote: It sounds like your action does not check to see if the reset was clicked or not. What I have done is do this check at the beginning of all my action classes. If the reset has been selected then the action is redirected to the empty jsp. It sounds like your action mapping may also not be corrected in your config file. Gus Delgado wrote:I have created a JSP with a "Submit" and "Reset" button both using the and tags. When I first render the page the reset works just fine, but if I hit the submit button and the page gets render again, I try to hit the reset and the form does not get clear anymore, the reset button does not work anymore, any ideas of why this is happening? any ways to fix it? thank you -Gus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now - 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: Reset button.
Gus, try going back a few posts to the javascript stuff. I think it's more in line with your original question. As a test try putting: on your page. replace nameOfYourForm and firstTextField with the appropriate names. I think you'll start to see where this is going. It's not hard, and there isn't a need for server side processing, unless there is, well, a need for server side processing. Is there? You haven't mentioned any. -Dave > -Original Message- > From: Gus Delgado [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 3:14 PM > To: Struts Users Mailing List > Subject: Re: Reset button. > > > isReset() who's method is that, action, form? > > I can't seem to find it. > > -Gus > Jacky Kimmel wrote: > > >if (isReset(httpServletRequest)) > > { > > return actionMapping.findForward(Constants.D_RESET); > > } > > > >As you can see, I had a constants class that I refer to. > Also, in the struts-config.xml I have mapped this forward > back to the original jsp. I put this snippet of code in the > beginning of each action class I have. > > > > Gus Delgado <[EMAIL PROTECTED]> wrote:how do I > check for the reset in the Action? > > > >Jacky Kimmel wrote: > > > > > > > >>It sounds like your action does not check to see if the > reset was clicked or not. What I have done is do this check > at the beginning of all my action classes. If the reset has > been selected then the action is redirected to the empty jsp. > It sounds like your action mapping may also not be corrected > in your config file. > >>Gus Delgado wrote:I have created a JSP with a "Submit" and > "Reset" button both using the > >>and tags. When I first render the page the > >>reset works just fine, but if I hit the submit button and > the page gets > >>render again, I try to hit the reset and the form does not > get clear > >>anymore, the reset button does not work anymore, any ideas > of why this > >>is happening? any ways to fix it? > >> > >>thank you > >> > >>-Gus > >> > >> > >> > - > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > >>- > >>Do you Yahoo!? > >>Yahoo! Mail Plus - Powerful. Affordable. Sign up now > >> > >> > >> > >> > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > >- > >Do you Yahoo!? > >Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > > > > > > - > 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: General Question
Actually this might be an idea i might want to go for at this moment without needing to storing object in the application scope. Thanks a lot Robert , but if there are still any ideas of doing this in other ways would be very helpful. Vinay - Original Message - From: "Robert S. Sfeir" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, February 10, 2003 4:11 PM Subject: Re: General Question > > Well first you might find that updating all the fields is easier, but > still if you want to do it your way, you have to have something to > compare the old value to the new one, and in that case you use a hidden > field. So you'd have something like: > > > > > When the user hits submit you'll have to check to see if the values are > the same, if they are ignore and don't update otherwise update. > > You see you have to loop over all the fields anyway, it's a form submit > thing, you can't tell it to submit a form partially. > > R > > On Monday, Feb 10, 2003, at 15:46 US/Eastern, Vinay Chandupatla wrote: > > > That is exactly what I am trying to avoid. That is a the real pain I > > don't want to update all the fields , I just want to update that > > particular value based upon it's key. In this case the database in > > question is the a server socket connection which cannot take lengthy > > query strings( i was just exemplifying with a normal database, ), and > > I thought it is not efficient overriding the values which need not be > > overridden. > > > > Infact I was thinking in the lines of what dave has suggested but even > > that will still have a lot of comparisions. Has anybody encountered > > these kind of situations with user editing lot of transactions and > > posting them back to database. If so how did you deal with them > > > > Thanks Dave and Guptill for your replies, > > > > Vinay > > > > > > -- Original Message -- > > From: "Guptill, Josh" <[EMAIL PROTECTED]> > > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Date: Mon, 10 Feb 2003 15:42:14 -0500 > > > >> No, just update your database table with all the fields that come > >> back on > >> the form. If a field has changed, that value will be updated. > >> Otherwise, > >> the same value will be written to the table and you will be no worse > >> off. > >> > >> Unless this is exactly what you are trying to avoid? > >> > >> -Original Message- > >> From: Vinay [mailto:[EMAIL PROTECTED]] > >> Sent: Monday, February 10, 2003 3:27 PM > >> To: Struts Users Mailing List > >> Subject: General Question > >> > >> > >> This is a very general question and not specifically related to > >> struts or > >> tag libraries, may be naive,thought somebody could help me off the > >> list on > >> the list. > >> > >> I have this very big form with list of 100's of transactions pulled > >> from the > >> database base thru a select statement or a similar one. > >> > >> And this form has a lot of textfields where the user can edit the > >> fields and > >> send it back to the database for updations. > >> > >> I need to get only those values which are being edited by the user for > >> updations in Action Class. If this looks vague , i can elaborate. > >> > >> Do i have to compare or check if user has edited. > >> > >> The solution might be very trivial , but couldn't get any idea. > >> > >> Thank you , > >> > >> Help appreciated, > >> > >> > >> Vinay. > >> > >> > >> > >> > >> > >> > >> - > >> 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] > > > R > > -- > Robert S. Sfeir > Senior Java Engineer > National Institutes of Health > Center for Information Technology > Department of Enterprise Custom Applications > [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: General Question
If you want to go client side, you could pass a list of fields that were modified by the user from the browser, as opposed to passing all the original values which you should already know. Easy enough to put an onChange event handler into a field and it this field to list of changed fields, but what if they change it back? Well, you can store the original values in an array and then onSubmit do the comparisons, set up the hidden changedFields input and bingo, a cheap hack ... ahem a solution to the problem. I'm still partial to making the comparisons at the web tier. It's cleaner and easier to maintain. Plus a little reflection magicks could go a long way towards creating the: public static List gimmeDifferent(Object dao, Object form) throws BiffDontConMeException method. -Dave > -Original Message- > From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 3:12 PM > To: Struts Users Mailing List > Subject: Re: General Question > > > > Well first you might find that updating all the fields is easier, but > still if you want to do it your way, you have to have something to > compare the old value to the new one, and in that case you > use a hidden > field. So you'd have something like: > > > > > When the user hits submit you'll have to check to see if the > values are > the same, if they are ignore and don't update otherwise update. > > You see you have to loop over all the fields anyway, it's a > form submit > thing, you can't tell it to submit a form partially. > > R > > On Monday, Feb 10, 2003, at 15:46 US/Eastern, Vinay Chandupatla wrote: > > > That is exactly what I am trying to avoid. That is a the > real pain I > > don't want to update all the fields , I just want to update that > > particular value based upon it's key. In this case the database in > > question is the a server socket connection which cannot > take lengthy > > query strings( i was just exemplifying with a normal > database, ), and > > I thought it is not efficient overriding the values which > need not be > > overridden. > > > > Infact I was thinking in the lines of what dave has > suggested but even > > that will still have a lot of comparisions. Has anybody encountered > > these kind of situations with user editing lot of transactions and > > posting them back to database. If so how did you deal with them > > > > Thanks Dave and Guptill for your replies, > > > > Vinay > > > > > > -- Original Message -- > > From: "Guptill, Josh" <[EMAIL PROTECTED]> > > Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > > Date: Mon, 10 Feb 2003 15:42:14 -0500 > > > >> No, just update your database table with all the fields that come > >> back on > >> the form. If a field has changed, that value will be updated. > >> Otherwise, > >> the same value will be written to the table and you will > be no worse > >> off. > >> > >> Unless this is exactly what you are trying to avoid? > >> > >> -Original Message- > >> From: Vinay [mailto:[EMAIL PROTECTED]] > >> Sent: Monday, February 10, 2003 3:27 PM > >> To: Struts Users Mailing List > >> Subject: General Question > >> > >> > >> This is a very general question and not specifically related to > >> struts or > >> tag libraries, may be naive,thought somebody could help me off the > >> list on > >> the list. > >> > >> I have this very big form with list of 100's of > transactions pulled > >> from the > >> database base thru a select statement or a similar one. > >> > >> And this form has a lot of textfields where the user can edit the > >> fields and > >> send it back to the database for updations. > >> > >> I need to get only those values which are being edited by > the user for > >> updations in Action Class. If this looks vague , i can elaborate. > >> > >> Do i have to compare or check if user has edited. > >> > >> The solution might be very trivial , but couldn't get any idea. > >> > >> Thank you , > >> > >> Help appreciated, > >> > >> > >> Vinay. > >> > >> > >> > >> > >> > >> > >> > - > >> 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] > > > R > > -- > Robert S. Sfeir > Senior Java Engineer > National Institutes of Health > Center for Information Technology > Department of Enterprise Custom Applications > [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reset button.
isReset() who's method is that, action, form? I can't seem to find it. -Gus Jacky Kimmel wrote: if (isReset(httpServletRequest)) { return actionMapping.findForward(Constants.D_RESET); } As you can see, I had a constants class that I refer to. Also, in the struts-config.xml I have mapped this forward back to the original jsp. I put this snippet of code in the beginning of each action class I have. Gus Delgado <[EMAIL PROTECTED]> wrote:how do I check for the reset in the Action? Jacky Kimmel wrote: It sounds like your action does not check to see if the reset was clicked or not. What I have done is do this check at the beginning of all my action classes. If the reset has been selected then the action is redirected to the empty jsp. It sounds like your action mapping may also not be corrected in your config file. Gus Delgado wrote:I have created a JSP with a "Submit" and "Reset" button both using the and tags. When I first render the page the reset works just fine, but if I hit the submit button and the page gets render again, I try to hit the reset and the form does not get clear anymore, the reset button does not work anymore, any ideas of why this is happening? any ways to fix it? thank you -Gus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception:: tag nesting error ?
I get these if I have not closed my tag's properly.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: General Question
Well first you might find that updating all the fields is easier, but still if you want to do it your way, you have to have something to compare the old value to the new one, and in that case you use a hidden field. So you'd have something like: When the user hits submit you'll have to check to see if the values are the same, if they are ignore and don't update otherwise update. You see you have to loop over all the fields anyway, it's a form submit thing, you can't tell it to submit a form partially. R On Monday, Feb 10, 2003, at 15:46 US/Eastern, Vinay Chandupatla wrote: That is exactly what I am trying to avoid. That is a the real pain I don't want to update all the fields , I just want to update that particular value based upon it's key. In this case the database in question is the a server socket connection which cannot take lengthy query strings( i was just exemplifying with a normal database, ), and I thought it is not efficient overriding the values which need not be overridden. Infact I was thinking in the lines of what dave has suggested but even that will still have a lot of comparisions. Has anybody encountered these kind of situations with user editing lot of transactions and posting them back to database. If so how did you deal with them Thanks Dave and Guptill for your replies, Vinay -- Original Message -- From: "Guptill, Josh" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Date: Mon, 10 Feb 2003 15:42:14 -0500 No, just update your database table with all the fields that come back on the form. If a field has changed, that value will be updated. Otherwise, the same value will be written to the table and you will be no worse off. Unless this is exactly what you are trying to avoid? -Original Message- From: Vinay [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 3:27 PM To: Struts Users Mailing List Subject: General Question This is a very general question and not specifically related to struts or tag libraries, may be naive,thought somebody could help me off the list on the list. I have this very big form with list of 100's of transactions pulled from the database base thru a select statement or a similar one. And this form has a lot of textfields where the user can edit the fields and send it back to the database for updations. I need to get only those values which are being edited by the user for updations in Action Class. If this looks vague , i can elaborate. Do i have to compare or check if user has edited. The solution might be very trivial , but couldn't get any idea. Thank you , Help appreciated, Vinay. - 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] R -- Robert S. Sfeir Senior Java Engineer National Institutes of Health Center for Information Technology Department of Enterprise Custom Applications [EMAIL PROTECTED]
RE: [OT] dummy data tool
On Mon, 10 Feb 2003, Mark Galbreath wrote: > Date: Mon, 10 Feb 2003 15:41:54 -0500 > From: Mark Galbreath <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject: RE: [OT] dummy data tool > > Not fair!!! You probably have no more than a 1/2-hour drive to great skiing > in the Crater Lake area! One of my best friends works for Intel and lives > in Seattle. He tells me the skiing is fantastic in the Cascade Range. > Crater Lake would be about six hours, but Mount Hood has several nice ski areas about 90 minutes away ... and there is nothing prettier than the Mt. Bachelor ski area in central Oregon (roughly four hours for me), near Bend. I went to college in Tacoma (just south of Seattle), and the Washington Cascades do indeed have some nice ski areas too. Craig > -Original Message- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 3:27 PM > > On Mon, 10 Feb 2003, Mark Galbreath wrote: > > > Date: Mon, 10 Feb 2003 10:35:49 -0500 > > From: Mark Galbreath <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > > Subject: RE: [OT] dummy data tool > > > > Stop it! You are making me thirsty. It's hard enough to concentrate > > after getting 8 inches of snow over the weekend and it just started > > snowing - hard > > - again. We are supposed to get hit again Thursday and Friday. Man! I > am > > definitely going boarding with my wife and boys this weekend!! > > > > It was 60 and blue skies yesterday in Portland ... I even barbequed > hamburgers outside to deal with spring fever :-) > > > Mark Galbreath > > Craig > > - > 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: [Nested Tags] Problem in 1.1b3 ?
We just tried a recent build (feb 8/03) and the problem is the same... :-( Any insight? We are using jboss bundled with tomcat 4.0.6. We see the speed increase with newer tomcat and would like to go higher (4.1x) We understand that to move to newer JBoss/Tomcat 4.1x we need a newer struts, due to some class loading issue(A Digester issue? ). When we go to newer struts , nested tags act funny... Rollback to Tomcat 4.0.6 And so it goes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception:: tag nesting error ?
Hi, I am getting this strange tag nesting erorr. Does anyone any possible reason for it ? Pls see output from Tomcat log file below. Many Thanks Scot 2003-02-10 20:49:34 ApplicationDispatcher[/strutsvom] Servlet.service() for servlet jsp threw exception org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error? at org.apache.jasper.compiler.JspReader.popFile(JspReader.java:293) at org.apache.jasper.compiler.JspReader.hasMoreInput(JspReader.java:337) at org.apache.jasper.compiler.JspReader.nextChar(JspReader.java:346) at org.apache.jasper.compiler.JspReader.skipUntil(JspReader.java:473) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:868) at org.apache.jasper.compiler.Parser.parse(Parser.java:1145) at org.apache.jasper.compiler.Parser.parse(Parser.java:1103) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:892) at org.apache.jasper.compiler.Parser.parse(Parser.java:1145) at org.apache.jasper.compiler.Parser.parse(Parser.java:1103) at org.apache.jasper.compiler.Parser.parse(Parser.java:1099) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:213) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683) 2003-02-10 20:49:34 ApplicationDispatcher[/strutsvom] Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: End of content reached while more parsing required: tag nesting error? at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463) at org.apache.jsp.template$jsp._jspService(template$jsp.java:1205) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391) at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:158) at org.apache.jsp.pending_0005fuser_0005flist$jsp._jspService(pending_0005fuser_0005flist$jsp.java:1316) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1033) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:269) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:436) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:312) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:5
RE: General Question
That is exactly what I am trying to avoid. That is a the real pain I don't want to update all the fields , I just want to update that particular value based upon it's key. In this case the database in question is the a server socket connection which cannot take lengthy query strings( i was just exemplifying with a normal database, ), and I thought it is not efficient overriding the values which need not be overridden. Infact I was thinking in the lines of what dave has suggested but even that will still have a lot of comparisions. Has anybody encountered these kind of situations with user editing lot of transactions and posting them back to database. If so how did you deal with them Thanks Dave and Guptill for your replies, Vinay -- Original Message -- From: "Guptill, Josh" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Date: Mon, 10 Feb 2003 15:42:14 -0500 >No, just update your database table with all the fields that come back on >the form. If a field has changed, that value will be updated. Otherwise, >the same value will be written to the table and you will be no worse off. > >Unless this is exactly what you are trying to avoid? > >-Original Message- >From: Vinay [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 10, 2003 3:27 PM >To: Struts Users Mailing List >Subject: General Question > > >This is a very general question and not specifically related to struts or >tag libraries, may be naive,thought somebody could help me off the list on >the list. > >I have this very big form with list of 100's of transactions pulled from the >database base thru a select statement or a similar one. > >And this form has a lot of textfields where the user can edit the fields and >send it back to the database for updations. > >I need to get only those values which are being edited by the user for >updations in Action Class. If this looks vague , i can elaborate. > >Do i have to compare or check if user has edited. > >The solution might be very trivial , but couldn't get any idea. > >Thank you , > >Help appreciated, > > >Vinay. > > > > > > >- >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: General Question
You may need to elaborate; but I think you might want to double the fields to compare the original against the editable if you want to keep the transaction request based, otherwise you might want to use the Unit of Work or Memento pattern in managing the transaction. Check either Design Patterns from GoF or Fowler's Patterns of Enterprise Application Architecture. | -Original Message- | From: Vinay [mailto:[EMAIL PROTECTED]] | Sent: Monday, February 10, 2003 2:27 PM | To: Struts Users Mailing List | Subject: General Question | | This is a very general question and not specifically related to struts or | tag libraries, may be naive,thought somebody could help me off the list on | the list. | | I have this very big form with list of 100's of transactions pulled from | the database base thru a select statement or a similar one. | | And this form has a lot of textfields where the user can edit the fields | and send it back to the database for updations. | | I need to get only those values which are being edited by the user for | updations in Action Class. If this looks vague , i can elaborate. | | Do i have to compare or check if user has edited. | | The solution might be very trivial , but couldn't get any idea. | | Thank you , | | Help appreciated, | | | Vinay. | | | | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: General Question
No, just update your database table with all the fields that come back on the form. If a field has changed, that value will be updated. Otherwise, the same value will be written to the table and you will be no worse off. Unless this is exactly what you are trying to avoid? -Original Message- From: Vinay [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 3:27 PM To: Struts Users Mailing List Subject: General Question This is a very general question and not specifically related to struts or tag libraries, may be naive,thought somebody could help me off the list on the list. I have this very big form with list of 100's of transactions pulled from the database base thru a select statement or a similar one. And this form has a lot of textfields where the user can edit the fields and send it back to the database for updations. I need to get only those values which are being edited by the user for updations in Action Class. If this looks vague , i can elaborate. Do i have to compare or check if user has edited. The solution might be very trivial , but couldn't get any idea. Thank you , Help appreciated, Vinay. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] dummy data tool
Not fair!!! You probably have no more than a 1/2-hour drive to great skiing in the Crater Lake area! One of my best friends works for Intel and lives in Seattle. He tells me the skiing is fantastic in the Cascade Range. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 3:27 PM On Mon, 10 Feb 2003, Mark Galbreath wrote: > Date: Mon, 10 Feb 2003 10:35:49 -0500 > From: Mark Galbreath <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject: RE: [OT] dummy data tool > > Stop it! You are making me thirsty. It's hard enough to concentrate > after getting 8 inches of snow over the weekend and it just started > snowing - hard > - again. We are supposed to get hit again Thursday and Friday. Man! I am > definitely going boarding with my wife and boys this weekend!! > It was 60 and blue skies yesterday in Portland ... I even barbequed hamburgers outside to deal with spring fever :-) > Mark Galbreath Craig - 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: General Question
Since you are more than likely retrieving a data access object to set up the form object, why not just keep it hanging around in some kind of cache (application scope should do), and then compare it with the values that user submits to see what they changed. -Dave > -Original Message- > From: Vinay [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 2:27 PM > To: Struts Users Mailing List > Subject: General Question > > > This is a very general question and not specifically related > to struts or tag libraries, may be naive,thought somebody > could help me off the list on the list. > > I have this very big form with list of 100's of transactions > pulled from the database base thru a select statement or a > similar one. > > And this form has a lot of textfields where the user can edit > the fields and send it back to the database for updations. > > I need to get only those values which are being edited by the > user for updations in Action Class. If this looks vague , i > can elaborate. > > Do i have to compare or check if user has edited. > > The solution might be very trivial , but couldn't get any idea. > > Thank you , > > Help appreciated, > > > Vinay. > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange Validator Problem
Hello, I have a very strange validator problem with 1.1-b3. I have a simple logon form (ValidatorForm) that accepts a userid and password. In my validation.xml file I'm specifying that the fields are required. The struts-config.xml file has the validate="true". When I execute this, I get the logon.jsp page successfully displayed, but if I leave the fields blank and submit, no errors occur, but a blank white display shows up in the browser. Now the strange part, if I change validate="false", check for non-existent password or userid in the Action, and use errors.add() to add the appropriate errors; this time when I submit with the fields blank, I get the form re-displayed with errors. The 'input' key remains the same between both versions. If I set up a log4.properties file with the level set to DEBUG, I can see that the resource keys for the error messages are being loaded, and I get a message saying that the validation failed -- so I know the validator is being called. The last message I get tells me: Validation failed, returning to '/logon/logon.jsp'. But all I get after that is a blank white page, yet the '/logon/logon.jsp' is the correct path and works when validate='false'. Any ideas? Thanks! -robert. -- "All motion is not progress, and all movement is not forward" (anon) Key ID: F0533BB6 Finger Print: 7F07 D9CD 266F 29D4 3616 164D F055 6E4C F053 3BB6 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Nested Tags] Problem in 1.1b3 ?
I have read a couple of posts regarding a situation where the nested tags are calling properties on the wrong bean. We are using a nightly build just after 1.1b2 and all seem to work fine. Once we try b3 then we get the odd problem. I have been using nested tags for all my pages without much problem. In this case all objects and Lists are stored in the formbean (not using root tag or the name attribute at all). A property that is several levels deep is being called on the form bean itself where is should be on the bean at it's own level. No getter method for property fullList of bean customerCreditForm' //snippet ... . ... <- wrapper object .. My problem seems similar to this recent post but the other way around.. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg57884.html Is anyone else having this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
General Question
This is a very general question and not specifically related to struts or tag libraries, may be naive,thought somebody could help me off the list on the list. I have this very big form with list of 100's of transactions pulled from the database base thru a select statement or a similar one. And this form has a lot of textfields where the user can edit the fields and send it back to the database for updations. I need to get only those values which are being edited by the user for updations in Action Class. If this looks vague , i can elaborate. Do i have to compare or check if user has edited. The solution might be very trivial , but couldn't get any idea. Thank you , Help appreciated, Vinay.
RE: Struts 1.1b Memory Leak?
It might just be jasper with all of the custom tags. Latter Tomcat 4.1 releases greatly increase performance with custom tags. | -Original Message- | From: Rich Snowdon-Smith [mailto:[EMAIL PROTECTED]] | Sent: Monday, February 10, 2003 2:13 PM | To: Struts Users Mailing List | Subject: Re: Struts 1.1b Memory Leak? | | Some of our apps in the container are written in Struts but others are | written in straight JSP (no Struts libraries). Only the Struts apps fail | to | execute. It looks like it's when it tries to parse the custom HTML: FORM | tag. | | People are trying to convince me it's the app server on Linux that's the | problem not the struts libraries. I hope that's the only problem. I'd hate | to see this happen on our production machine. Any ideas? | | Thanks, | Rich | | > Actually, having the library with each app is the preferred way to do | it, | > unless you want to force upgrades to EVERY application's version of | Struts | > at once. | > | > What do you mean by apps written in the struts framework refuse to | execute? | > Is it just any app in the web container, or just Action classes? | > | | >> -Original Message- | >> From: Rich Snowdon-Smith [mailto:[EMAIL PROTECTED]] | >> Sent: Friday, February 07, 2003 9:22 AM | >> To: [EMAIL PROTECTED] | >> Subject: Struts 1.1b Memory Leak? | >> | >> We're using Struts 1.1b and what I'm seeing is that our test | application | >> server is running into a problem. After a while all the apps written in | the | >> struts framework refuse to execute. Other apps not written in struts | but | >> still executing in the container work fine. We couldn't get container | to | >> recognize the struts libraries in the CLASSPATH of the server so | currently | >> each app has it's own set of the libs deployed with it (Yeah I know | that | >> sucks). Restarting the container fixes the problem. Has anyone else run | into | >> this? | >> | >> Environment | >> Hardware: Intel | >> RAM: 512MB | >> O/S: RH Linux 7.1 | >> App Server: Oracle OC4J 9.0.3 | >> Struts 1.1b | | | - | 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] dummy data tool
On Mon, 10 Feb 2003, Mark Galbreath wrote: > Date: Mon, 10 Feb 2003 10:35:49 -0500 > From: Mark Galbreath <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject: RE: [OT] dummy data tool > > Stop it! You are making me thirsty. It's hard enough to concentrate after > getting 8 inches of snow over the weekend and it just started snowing - hard > - again. We are supposed to get hit again Thursday and Friday. Man! I am > definitely going boarding with my wife and boys this weekend!! > It was 60 and blue skies yesterday in Portland ... I even barbequed hamburgers outside to deal with spring fever :-) > Mark Galbreath Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: data acquisition and control
On Mon, 10 Feb 2003, Jason Vinson wrote: > Date: Mon, 10 Feb 2003 08:23:10 -0500 (EST) > From: Jason Vinson <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]>, > Taylor Cowan <[EMAIL PROTECTED]> > Subject: data acquisition and control > > Hi folks, > > I am having a few issues this morning determining the proper way to > control the data of my current web application. From what I have read, > I see that the proper place to acquire data from the system is in the > Action class. This data should be put on the request (correct?) and > retrieved by the proper ActionForm to populate the jsp. Maybe monday > morning has my brain working slow, but I am a little mixed up on a few > points here. > > 1. Pulling the data from the system in the Action Class actually > requires you to gather data in the Action Class of the page prior to the > one you want to render the information in. Doesn't this defy the > separation of logic and business in the MVC design paradigm? That's what the form bean does for you -- it combines all the "interesting" stuff from the form that was just submitted into one bean, and supports validating it (via the validate() method), *before* your Action is called. > > 2. To be completely honest, I am not seeing a convenient way to gather > the data off the request in the ActionForm class of my page. I feel I > may be completely overlooking the obvious, but I know I need to grab the > request in the ActionForm, and I can't see a convenient way to do that > by studying the javadocs. > The typical pattern for using the UI part of Struts is to put all the input fields into a form bean, so that is what you would typically interact with in your Action (rather than the underlying request object directly), although you can still get to that if you need it. Think of an Action as an adapter between the Servlet API tier (which thinks of things as request parameters and cookies) and the business logic tier (which should be designed to manipulate JavaBean-like objects that are not tied to the web tier, for reusability). A common requirement, then, would be to want to copy the contents of a form bean (after validation) into a JavaBean with native data types. This can be accomplished fairly simply (requires the recent versions of commons-beanutils included in Struts 1.1b3 or later). Assume you have a form bean with input fields for a name and a number. Following the recommended design pattern, you used a String for both fields in the form bean: public class MyActionForm extends ActionForm { public String getName(); public void setName(String name); public String getNumber(); public void setNumber(String number); } Now, your business logic includes a method that accepts a value object with name and number properties, but it wants an integer: public class MyValueObject { public String getName(); public void seName(String name); public int getNumber(); public void setNumber(int number); } To do the conversion, BeanUtils includes a nice simple method for you: MyValueObject myVO = new MyValueObject(); BeanUtils.copyProperties(myVO, form); This is extendable to any number of properties, as long as they have the same name -- see the commons-beanutils APIs for more info. > can anyone clear this up for me?? > Jason Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.1b Memory Leak?
Some of our apps in the container are written in Struts but others are written in straight JSP (no Struts libraries). Only the Struts apps fail to execute. It looks like it's when it tries to parse the custom HTML: FORM tag. People are trying to convince me it's the app server on Linux that's the problem not the struts libraries. I hope that's the only problem. I'd hate to see this happen on our production machine. Any ideas? Thanks, Rich > Actually, having the library with each app is the preferred way to do it, > unless you want to force upgrades to EVERY application's version of Struts > at once. > > What do you mean by apps written in the struts framework refuse to execute? > Is it just any app in the web container, or just Action classes? > >> -Original Message- >> From: Rich Snowdon-Smith [mailto:[EMAIL PROTECTED]] >> Sent: Friday, February 07, 2003 9:22 AM >> To: [EMAIL PROTECTED] >> Subject: Struts 1.1b Memory Leak? >> >> We're using Struts 1.1b and what I'm seeing is that our test application >> server is running into a problem. After a while all the apps written in the >> struts framework refuse to execute. Other apps not written in struts but >> still executing in the container work fine. We couldn't get container to >> recognize the struts libraries in the CLASSPATH of the server so currently >> each app has it's own set of the libs deployed with it (Yeah I know that >> sucks). Restarting the container fixes the problem. Has anyone else run into >> this? >> >> Environment >> Hardware: Intel >> RAM: 512MB >> O/S: RH Linux 7.1 >> App Server: Oracle OC4J 9.0.3 >> Struts 1.1b - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Modeling tools
Here, Here, Here. I did not say this as well, but well said (Spec the CakeBread) Dan - Original Message - From: "Mark Galbreath" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Monday, February 10, 2003 2:59 PM Subject: RE: [OT] Modeling tools The best California wines in my long flirtation with the nectar are anything from Cakebread Cellars, and any cabernet sauvignon (Bordeaux grape) from the Russian River Valley. These vineyards truly rival the best the French have, and you don't have to get upset drinking them because the growers support getting rid of Suddam Insane. Mark Galbreath Principal Consultant Workflow Process Engineering and Systems Integration http://www.QAT.com 410-703-367 / 800-799-8545 "Never attribute to malice that which can be adequately explained by stupidity." ~Hanlon's Razor -Original Message- From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 2:53 PM To: Struts Users Mailing List Subject: Re: [OT] Modeling tools To name a few at my house, but I agree that French wines are better. But California is getting close. And Australia is also getting close. Diamond Creek 1985 VH Cabernet Sauvignon, , Beringer 1997 Private Reserve Cabernet Sauvignon, Opus One 1999 Opus One > > But we are catch up quickly, just look at the quality of Californian > >wines, they sucked in the 80's and now that are almost as tasty > > as French wines. > > I don't think you can "compare" with nice french wines (or you have > try only bad french wine) ;) Let's drink a Mouton Rotschild, Pétrus, > Chateau Margaux > > > > > > > Mark Galbreath > > Principal Consultant > > Workflow Process Engineering and Systems Integration > > > > http://www.QAT.com > > 410-703-367 / 800-799-8545 > > > > "Never attribute to malice that which can be adequately explained by > > stupidity." ~Hanlon's Razor > > > > > > > > -Original Message- > > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 10, 2003 11:38 AM > > To: Struts Users Mailing List > > Subject: RE: [OT] Modeling tools > > > > > > And we all know that in the U.S. that there is no such thing as a > > good > beer! > > :-P > > > > >-Original Message- > > >From: Robert McIntosh [mailto:[EMAIL PROTECTED]] > > >Sent: Monday, February 10, 2003 10:27 AM > > >To: Struts Users Mailing List > > >Subject: Re: [OT] Modeling tools > > > > > > > > >I agree, especially for collaboration. A whiteboard is a good > > >developer's best friend (short of a good beer)... > > > > > >- Robert > > > > > >Chappell, Simon P wrote: > > > > > >>It's called a whiteboard (or greaseboard if you fixate about > > >not refering to colours when describing inanimate objects) and it > > >does a better job of what I use Rose for than Rose does. > > >> > > >> > > >> > > >>>-Original Message- > > >>>From: Mark Galbreath [mailto:[EMAIL PROTECTED]] > > >>>Sent: Monday, February 10, 2003 9:30 AM > > >>>To: 'Struts Users Mailing List' > > >>>Subject: RE: [OT] Modeling tools > > >>> > > >>> > > >>>There is no alternative to Rose. > > >>> > > >>>Mark Galbreath > > >>>Principal Consultant, Workflow Process Engineering and Systems > > >>>Integration http://www.QAT.com > > >>>410-703-367 / 800-799-8545 > > >>> > > >>>"Never attribute to malice that which can be adequately explained > > >>>by stupidity." ~Hanlon's Razor > > >>> > > >>> > > >>> > > >>>-Original Message- > > >>>From: Durham David Cntr 805CSS/SCBE > > >>>[mailto:[EMAIL PROTECTED]] > > >>>Sent: Monday, February > > >>>10, 2003 10:04 AM > > >>>To: [EMAIL PROTECTED] > > >>>Subject: [OT] Modeling tools > > >>> > > >>> > > >>>Wondering what kind of modeling tools you would recommended. I'm > > >>>looking for alternatives to Rational Rose and Poseidon. Thanks. > > >>> > > >>>-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] > > >>> > > >>> > > >>> > > >>> > > >> > > >>-- > > >>--- > > >>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] > > > > > > > > > > - > > T