Re: Tiles Factory use
Hi, To insert a definition from the factory, you simply call insert definition=defName / or insert name=defName /. Check the tiles tags syntax for other options: http://jakarta.apache.org/struts/userGuide/struts-tiles.html#insert Cedric Jay Burrill wrote: I'm a Tiles newbie and am having difficulty implementing a tiles definition factory properly. I've created the definitions XML file, added the struts-config plug-in/, and the taglib/ in web.xml. And I see the factory created in the appserver console. But how do I then access the definition using that factory in my JSP? I have successfully used a definition/layout combo with an insert of the definition file and put's to specify the tiles content, but I would rather use the factory. _ The new MSN 8: smart spam protection and 3 months FREE*. http://join.msn.com/?page=features/junkmailxAPID=42PS=47575PI=7324DI=7474SU= http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_smartspamprotection_3mf -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Login filter
Hi, I wanted to clear a doubt about this. Do I remove the conventional login check from my LoginAction to the filter ? That seems to be the right way to use a filter. 1. Check for the user container( username,password object ) in the session. 2. Call the isNew() method of the session. The first method might be like this. session = req.getSession( true ); if( session.getAttribute( WebConstants.USER_KEY ) == null ){ session.getServletContext().getRequestDispatcher(login.action); } else{ chain.doFilter( req, response ); } What about the second method ? I need to restrict the login action from being filtered itself. Any advice is appreciated. Thanks, Mohan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Login filter
The authentication filter will check for a valid flag in the session indicating the user has logged in. I use a Person object identifying the user for this. If it's not there, send them to the login screen. Just put the login page outside the protection of the filter to prevent the filter from denying access to the login page. David From: Mohan Radhakrishnan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Login filter Date: Tue, 24 Dec 2002 14:09:03 +0530 Hi, I wanted to clear a doubt about this. Do I remove the conventional login check from my LoginAction to the filter ? That seems to be the right way to use a filter. 1. Check for the user container( username,password object ) in the session. 2. Call the isNew() method of the session. The first method might be like this. session = req.getSession( true ); if( session.getAttribute( WebConstants.USER_KEY ) == null ){ session.getServletContext().getRequestDispatcher(login.action); } else{ chain.doFilter( req, response ); } What about the second method ? I need to restrict the login action from being filtered itself. Any advice is appreciated. Thanks, Mohan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 limited-time offer: Join now and get 3 months FREE*. http://join.msn.com/?page=dept/dialupxAPID=42PS=47575PI=7324DI=7474SU= http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_newmsn8ishere_3mf -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: struts-layout taglibraries
The easiest way in 1.0.2 would be to use the template library. You can also integrate Tiles but that's a bit more work. Tiles is integrated in 1.1 and the template library is deprecated. See the user's guide for details. David From: usha [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: struts-layout taglibraries Date: Tue, 24 Dec 2002 14:26:51 +0800 Hi anybody is using the struts-layout taglibraries. i wanted to know how to use this with strutsv1.0.2. thanks usha -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 3 months FREE*. http://join.msn.com/?page=features/junkmailxAPID=42PS=47575PI=7324DI=7474SU= http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_stopmorespam_3mf -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Can't map HTML form action to Struts action
hi! I am not sure if this is the correct way to call an action from HTML .. if we want to call it as form action .. then we should give full path like /foo/login.do . try and enlighten me too :-) cheers! Jitendra - Original Message - From: otisg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 10:51 AM Subject: Can't map HTML form action to Struts action Hello, I am having difficulties hooking up an HTML form action to an action mapping defined in struts-config.xml. This is the Struts HEAD from CVS. I am using Struts with Velocity. I can get .vm templates to load, but can't get things like HTML form submission action to map to a Struts action. My web.xml contains: servlet servlet-nameMyVelocityViewServlet/servlet-name servlet-classorg.apache.velocity.tools.view.servlet.VelocityViewServlet/s ervlet-class ... !-- Map *.vm files to Velocity -- servlet-mapping servlet-nameMyVelocityViewServlet/servlet-name url-pattern*.vm/url-pattern /servlet-mapping My struts-config.xml contains: action-mappings action type =foo.bar.webapp.actions.LoginAction name =loginF validate =true path =/login scope=request input=/login.vm forward name=success path=/home.vm/ forward name=failure path=/login.vm/ /action /action-mappings My HTML form contains this: form method=POST action=/foo/login When I submit this form I get a 404 from the servlet container: 404 Not Found /foo/login was not found on this server. I've looked at several configuration examples, and what I have looks fine, but unfortunately it is not. I am using this with Resin 2.1.6. One suspicious thing that I notice in Resin's log after I submit the HTML form is this: [2002/12/24 00:05:24] file: init [2002/12/24 00:05:24] com.caucho.server.http.DirectoryServlet: init This looks as if Resin is not mapping my /foo/action to the action servlet defined in my web app's web.xml...maybe, not sure. I have tried mapping /foo/* to MyVelocityViewServlet in web.xml, but that resulted in .vm pages being rendered as text/plain. That may be fixed by associating .vm extension with text/html, but I'm not sure how to do this under Resin yet. But I think I have something else wrong, anyway. Thank you, Otis Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems with Eclipse and Struts
Hi, I hope anybody can help me with this issue. I have a web application, which runs under Tomcat 4.1.18. It uses Struts 1.1B2. I also use Eclipse 2.0.2 with the Lomboz and the Sysdeo plugins. Now I run into the following problem: When I try to start Tomcat through one of the plugins to debug the application I always get the following error 24.12.2002 09:57:38 org.apache.commons.digester.Digester startElement SCHWERWIEGEND: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252 ) at org.apache.commons.digester.Digester.startElement(Digester.java:1237) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332) at org.apache.commons.digester.Digester.startElement(Digester.java:1240) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at
Re: Problems with Eclipse and Struts
Hi, I use much the same set up as you and had lots of problems with those plugins. Personally I don't use them, I find it *much* easier just to keep a terminal/dos window open and use Ant to build and test the application. The Ant build script that is described in the Tomcat documentation (although it has a couple of mistakes!), gets the job done. I take the attitude that I always want to be able to modify and build my applications from the command line if I'm stuck and can't use the IDE. HM On 24 Dec 2002 at 10:10, Oliver Adolph wrote: Hi, I hope anybody can help me with this issue. I have a web application, which runs under Tomcat 4.1.18. It uses Struts 1.1B2. I also use Eclipse 2.0.2 with the Lomboz and the Sysdeo plugins. Now I run into the following problem: When I try to start Tomcat through one of the plugins to debug the application I always get the following error 24.12.2002 09:57:38 org.apache.commons.digester.Digester startElement SCHWERWIEGEND: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252 ) at org.apache.commons.digester.Digester.startElement(Digester.java:1237) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332) at org.apache.commons.digester.Digester.startElement(Digester.java:1240) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at
AW: Problems with Eclipse and Struts
Hi Howard, But how do you debug your application ? Oliver Adolph -Ursprüngliche Nachricht- Von: Howard Miller [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 24. Dezember 2002 10:30 An: Struts Users Mailing List Betreff: Re: Problems with Eclipse and Struts Hi, I use much the same set up as you and had lots of problems with those plugins. Personally I don't use them, I find it *much* easier just to keep a terminal/dos window open and use Ant to build and test the application. The Ant build script that is described in the Tomcat documentation (although it has a couple of mistakes!), gets the job done. I take the attitude that I always want to be able to modify and build my applications from the command line if I'm stuck and can't use the IDE. HM On 24 Dec 2002 at 10:10, Oliver Adolph wrote: Hi, I hope anybody can help me with this issue. I have a web application, which runs under Tomcat 4.1.18. It uses Struts 1.1B2. I also use Eclipse 2.0.2 with the Lomboz and the Sysdeo plugins. Now I run into the following problem: When I try to start Tomcat through one of the plugins to debug the application I always get the following error 24.12.2002 09:57:38 org.apache.commons.digester.Digester startElement SCHWERWIEGEND: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.ja va:252 ) at org.apache.commons.digester.Digester.startElement(Digester.java:1237) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332) at org.apache.commons.digester.Digester.startElement(Digester.java:1240) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
Re: AW: Problems with Eclipse and Struts
Well. Maybe I'm just getting old, but I tend to add additional debug code into my applications and use a lot of log statements. I am in the position that I sometimes (well often) have to debug client's applications over a Telnet connection, so I can't rely on the abilities of an IDE. I have got used to working in this way, although I accept that it probably isn't very efficient. You may not have these restrictions of course. HM On 24 Dec 2002 at 10:33, Oliver Adolph wrote: Hi Howard, But how do you debug your application ? Oliver Adolph -Ursprüngliche Nachricht- Von: Howard Miller [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 24. Dezember 2002 10:30 An: Struts Users Mailing List Betreff: Re: Problems with Eclipse and Struts Hi, I use much the same set up as you and had lots of problems with those plugins. Personally I don't use them, I find it *much* easier just to keep a terminal/dos window open and use Ant to build and test the application. The Ant build script that is described in the Tomcat documentation (although it has a couple of mistakes!), gets the job done. I take the attitude that I always want to be able to modify and build my applications from the command line if I'm stuck and can't use the IDE. HM On 24 Dec 2002 at 10:10, Oliver Adolph wrote: Hi, I hope anybody can help me with this issue. I have a web application, which runs under Tomcat 4.1.18. It uses Struts 1.1B2. I also use Eclipse 2.0.2 with the Lomboz and the Sysdeo plugins. Now I run into the following problem: When I try to start Tomcat through one of the plugins to debug the application I always get the following error 24.12.2002 09:57:38 org.apache.commons.digester.Digester startElement SCHWERWIEGEND: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.ja va:252 ) at org.apache.commons.digester.Digester.startElement(Digester.java:1237) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332) at org.apache.commons.digester.Digester.startElement(Digester.java:1240) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at
RE: Problems with Eclipse and Struts
HI, From the stack trace it seems that it is not finding the core classes for catalina...I had similar problems with my laptop and I solved it somehow..I dont remember exactly but vaguely this is what i did.(But i am using tomcat 4.1.12 and Eclipse 2.0 ) Go to wnodow-preferences-plugin development-targetPlatform.There is a list of plug ins that u can include in the classpath(Actually I am not very sure what this setup does as the text is not clear to me atleast...)And check the plug in that is giving problems...In your case i thnik it should be com.sysdeo.eclipse.tomcatAnd restart eclipse and see if the plugin works... regards, Shirish. -Original Message- From: Oliver.Adolph [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 10:11 AM To: struts-user Subject: Problems with Eclipse and Struts Hi, I hope anybody can help me with this issue. I have a web application, which runs under Tomcat 4.1.18. It uses Struts 1.1B2. I also use Eclipse 2.0.2 with the Lomboz and the Sysdeo plugins. Now I run into the following problem: When I try to start Tomcat through one of the plugins to debug the application I always get the following error 24.12.2002 09:57:38 org.apache.commons.digester.Digester startElement SCHWERWIEGEND: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252 ) at org.apache.commons.digester.Digester.startElement(Digester.java:1237) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332) at org.apache.commons.digester.Digester.startElement(Digester.java:1240) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
RE: [OT] HAPPY HOLIDAYS, EVERYONE
Van nuys, James. Cheers. At 11:27 PM 12/23/02 -0500, you wrote: With apologies to Clement Clarke Moore 'twas the night before Christmas, and all 'cross the net. Not a user was typing, the code was all set. The patches were entered and each file was checked in, In hopes that 1.2 New Years would bring. The coders were nestled all snug by their LANs. With visions of post-release features and plans. When up on the screen there appeared such a sight. I opened the e-Mail, sent that very night. Quickly I read the contents of the letter, With each word, my mood became better and better. From craigmcc at apache dot org. Subject: Let's ship it with no more reorg. He went on to say that each package was done. And called their names out like each one was his son. Ship DynaForms, Taglibs, Controller and Actions. Ship EL and Tiles with no further distractions. To the centers of business and learning they'll ship. Now download and install using dialup and SLIP. And as he was ending his RELEASE-NOTES.TXT With nary a sign he was bothered or vexed. He added one note, which I read with delight. MVC use to all, and to all a good night! - Wishing everyone a wonderful holidays (including those already celebrated [who was the joker who put Chanukah the week after Thanksgiving this year? Latkes + Turkey + Stuffing = weeklong coma]), and may NullPointerExceptions stay far from your code. James -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: AW: Problems with Eclipse and Struts
Hi everybody. I finally figured a way out to debug my web application. I start Tomcat standalone, but changed the start command to C:\j2sdk1.4.1_01\bin\java.exe -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000 -jar -Duser.dir=C:\Tomcat4.1 c:\Tomcat4.1\bin\bootstrap.jar start That enables the remote dubgging feature of the JSDK. Then I attach my Eclipse debugger using the Remote Java Application-Debugger-Option in Eclipse. For now it seems to work! Thanks everybody for the help!! Oliver Adolph -Ursprüngliche Nachricht- Von: Howard Miller [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 24. Dezember 2002 10:41 An: Struts Users Mailing List Betreff: Re: AW: Problems with Eclipse and Struts Well. Maybe I'm just getting old, but I tend to add additional debug code into my applications and use a lot of log statements. I am in the position that I sometimes (well often) have to debug client's applications over a Telnet connection, so I can't rely on the abilities of an IDE. I have got used to working in this way, although I accept that it probably isn't very efficient. You may not have these restrictions of course. HM On 24 Dec 2002 at 10:33, Oliver Adolph wrote: Hi Howard, But how do you debug your application ? Oliver Adolph -Ursprüngliche Nachricht- Von: Howard Miller [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 24. Dezember 2002 10:30 An: Struts Users Mailing List Betreff: Re: Problems with Eclipse and Struts Hi, I use much the same set up as you and had lots of problems with those plugins. Personally I don't use them, I find it *much* easier just to keep a terminal/dos window open and use Ant to build and test the application. The Ant build script that is described in the Tomcat documentation (although it has a couple of mistakes!), gets the job done. I take the attitude that I always want to be able to modify and build my applications from the command line if I'm stuck and can't use the IDE. HM On 24 Dec 2002 at 10:10, Oliver Adolph wrote: Hi, I hope anybody can help me with this issue. I have a web application, which runs under Tomcat 4.1.18. It uses Struts 1.1B2. I also use Eclipse 2.0.2 with the Lomboz and the Sysdeo plugins. Now I run into the following problem: When I try to start Tomcat through one of the plugins to debug the application I always get the following error 24.12.2002 09:57:38 org.apache.commons.digester.Digester startElement SCHWERWIEGEND: Begin event threw exception java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.ja va:252 ) at org.apache.commons.digester.Digester.startElement(Digester.java:1237) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPa rser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBin der.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidato r.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement (XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRo otElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD ispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XML Docume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java :525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java :581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.ja va:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j ava:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess orImpl .java:25) at
RE: [OT] HAPPY HOLIDAYS, EVERYONE
Amen, Craig. Have a Merry Christmas everyone! Justin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:41 PM To: Struts Users Mailing List Subject: RE: [OT] HAPPY HOLIDAYS, EVERYONE On Mon, 23 Dec 2002, James Mitchell wrote: +1 trying-to-stay-politically-correct ...and a very Merry Christmas to you (if you believe in that sort of thing). /trying-to-stay-politically-correct not-giving-a-rip-about-political-correctness Let us all spend some time this joyous season reflecting on the magnitude of a God that would bother to create the likes of us, and His willingness to sacrifice a Son to maintain a relationship with all the idiots and dirtbags we have to deal with every day (including ourselves :-). Without Christ, there's nothing particularly interesting about Christmas, except for a determined marketing campaign by all the stores to imply how inadequate we are if we don't spend lots of money giving each other gifts. Oh, and a guilt trip to care about the needs of others for a couple of weeks every year, instead of all the time ... If all you care about during this season is excuses to party, New Year's Eve will suffice for that :-). /not-giving-a-rip-about-political-correctness James Mitchell Craig McClanahan (unashamedly wishing everyone a Merry Christmas!) -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
struts books - review
Hi all. I'm considering of getting one of Struts books, which one should I get? Thanx.
Re: [OT] HAPPY HOLIDAYS, EVERYONE
Happy holidays also from me! kiuma Justin Ashworth ha scritto: Amen, Craig. Have a Merry Christmas everyone! Justin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:41 PM To: Struts Users Mailing List Subject: RE: [OT] HAPPY HOLIDAYS, EVERYONE On Mon, 23 Dec 2002, James Mitchell wrote: +1 trying-to-stay-politically-correct ...and a very Merry Christmas to you (if you believe in that sort of thing). /trying-to-stay-politically-correct not-giving-a-rip-about-political-correctness Let us all spend some time this joyous season reflecting on the magnitude of a God that would bother to create the likes of us, and His willingness to sacrifice a Son to maintain a relationship with all the idiots and dirtbags we have to deal with every day (including ourselves :-). Without Christ, there's nothing particularly interesting about Christmas, except for a determined marketing campaign by all the stores to imply how inadequate we are if we don't spend lots of money giving each other gifts. Oh, and a guilt trip to care about the needs of others for a couple of weeks every year, instead of all the time ... If all you care about during this season is excuses to party, New Year's Eve will suffice for that :-). /not-giving-a-rip-about-political-correctness James Mitchell Craig McClanahan (unashamedly wishing everyone a Merry Christmas!) -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] . -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
select, options, define???
I am still fighting .. help help!! I have a form with 10 login id displayed as text field and ther admin rights chosen from a drop down lists .. all drop down lists are same. looks like this .. Login Id1 AdminRight1 Login Id2AdminRight2 Login Id3AdminRight2 . . . Login IdnAdminRight1 How do i do it ??? any help, suggestion, advice hint .. all welcome .. thanks in advance ... Jitendra
Re: struts books - review
Arik, If you are a newcomer to Struts, 'Struts in Action' from Manning publishing is a great place to start. It is more of a tutorial, explaining everything in detail, as opposed to assuming that the reader is a Java expert. It has certainly helped me. David R Arik Levin ( Tikal ) [EMAIL PROTECTED] wrote: Hi all. I'm considering of getting one of Struts books, which one should I get? Thanx.
RE: struts books - review
I forgot to mention that I'm familiar with struts 1.1b2. I'm looking for a book for advanced users. -Original Message- From: David Rothschadl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 2:41 PM To: Struts Users Mailing List Subject: Re: struts books - review Arik, If you are a newcomer to Struts, 'Struts in Action' from Manning publishing is a great place to start. It is more of a tutorial, explaining everything in detail, as opposed to assuming that the reader is a Java expert. It has certainly helped me. David R Arik Levin ( Tikal ) [EMAIL PROTECTED] wrote: Hi all. I'm considering of getting one of Struts books, which one should I get? Thanx. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: struts books - review
David, There are number of books available on struts right now. The O'reilly book does not seem to be up-to-date with latest version of struts. Do you think this book is the best buy. Regards Puneet - Original Message - From: David Rothschadl [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 12:41 PM Subject: Re: struts books - review Arik, If you are a newcomer to Struts, 'Struts in Action' from Manning publishing is a great place to start. It is more of a tutorial, explaining everything in detail, as opposed to assuming that the reader is a Java expert. It has certainly helped me. David R Arik Levin ( Tikal ) [EMAIL PROTECTED] wrote: Hi all. I'm considering of getting one of Struts books, which one should I get? Thanx. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] HAPPY HOLIDAYS, EVERYONE
Have a Merry Christmas everyone! +1 here the beer-ed santa claus : http://www.a-very-merry-christmas-from.com/miniworldgames/sobersanta.html My score is 952 ;) --- kiuma [EMAIL PROTECTED] a écrit : Happy holidays also from me! kiuma Justin Ashworth ha scritto: Amen, Craig. Have a Merry Christmas everyone! Justin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:41 PM To: Struts Users Mailing List Subject: RE: [OT] HAPPY HOLIDAYS, EVERYONE On Mon, 23 Dec 2002, James Mitchell wrote: +1 trying-to-stay-politically-correct ...and a very Merry Christmas to you (if you believe in that sort of thing). /trying-to-stay-politically-correct not-giving-a-rip-about-political-correctness Let us all spend some time this joyous season reflecting on the magnitude of a God that would bother to create the likes of us, and His willingness to sacrifice a Son to maintain a relationship with all the idiots and dirtbags we have to deal with every day (including ourselves :-). Without Christ, there's nothing particularly interesting about Christmas, except for a determined marketing campaign by all the stores to imply how inadequate we are if we don't spend lots of money giving each other gifts. Oh, and a guilt trip to care about the needs of others for a couple of weeks every year, instead of all the time ... If all you care about during this season is excuses to party, New Year's Eve will suffice for that :-). /not-giving-a-rip-about-political-correctness James Mitchell Craig McClanahan (unashamedly wishing everyone a Merry Christmas!) -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] . -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts books - review
Best Buy doesn't carry any books on Struts, you may want to try Borders or Bookpool.com -Original Message- From: Puneet Agarwal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 7:04 AM To: Struts Users Mailing List Subject: Re: struts books - review David, There are number of books available on struts right now. The O'reilly book does not seem to be up-to-date with latest version of struts. Do you think this book is the best buy. Regards Puneet - Original Message - From: David Rothschadl [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 12:41 PM Subject: Re: struts books - review Arik, If you are a newcomer to Struts, 'Struts in Action' from Manning publishing is a great place to start. It is more of a tutorial, explaining everything in detail, as opposed to assuming that the reader is a Java expert. It has certainly helped me. David R Arik Levin ( Tikal ) [EMAIL PROTECTED] wrote: Hi all. I'm considering of getting one of Struts books, which one should I get? Thanx. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Nested Iterate and Dynamic Radio Button generating
We have a client server application that we are taking to the web using Struts 1.1. I have the following code using select boxes. This allows users to set privilege levels on differing sections of the application when creating new users. The only problem is that select boxes require two clicks (one to select the box and one to select the item) and the users are used to a radio button interface in the current client server environment. Also, this requires a leap of faith that these items are going to stay in a one-to-one matching in the two arrays used to retrieve the values on the form side. Is there any way to do this with radio buttons? I've been through the archives and it looks like it's possible - but only if we use scriptlets. Any help would be appreciated. logic:present name=menuItems logic:iterate id=curLevel name=menuItems tr td colspan=4bean:write name=curLevel property=id /nbsp;bean:write name=curLevel property=description //td td html:select name=curLevel property=privileges html:option value=FALSEREAD/html:option html:option value=TRUEWRITE/html:option html:option value=NONENONE/html:option /html:select html:hidden name=curLevel property=id/ /td /tr logic:present name=curLevel property=subItems logic:iterate id=curGroup name=curLevel property=subItems trtdnbsp;nbsp;/td td colspan=3bean:write name=curGroup property=id /nbsp;bean:write name=curGroup property=description //td td html:select name=curGroup property=privileges html:option value=FALSEREAD/html:option html:option value=TRUEWRITE/html:option html:option value=NONENONE/html:option /html:select html:hidden name=curGroup property=id/ /td /tr logic:present name=curGroup property=subItems logic:iterate id=curSection name=curGroup property=subItems trtdnbsp;nbsp;/tdtdnbsp;nbsp;/td td colspan=2bean:write name=curSection property=id /nbsp;bean:write name=curSection property=description //td td html:select name=curSection property=privileges html:option value=FALSEREAD/html:option html:option value=TRUEWRITE/html:option html:option value=NONENONE/html:option /html:select html:hidden name=curSection property=id/ /td /tr logic:present name=curSection property=subItems logic:iterate id=curPage name=curSection property=subItems trtdnbsp;nbsp;/tdtdnbsp;nbsp;/tdtdnbsp;nbsp;/td tdbean:write name=curPage property=id /nbsp;bean:write name=curPage property=description //td td html:select name=curPage property=privileges html:option value=FALSEREAD/html:option html:option value=TRUEWRITE/html:option html:option value=NONENONE/html:option /html:select html:hidden name=curPage property=id/ /td /tr /logic:iterate /logic:present /logic:iterate /logic:present /logic:iterate /logic:present /logic:iterate /logic:present /logic:iterate /logic:present /table html:submit property=submit value=save/ /html:form Melonie Brown Programmer Analyst (404) 464-6216 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts books - review
Struts in Action is very good. It deals with 1.0.2 and 1.1 as well, and the differences are clearly stated. I highly recommend it. -= J -Original Message- From: Puneet Agarwal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 7:04 AM To: Struts Users Mailing List Subject: Re: struts books - review David, There are number of books available on struts right now. The O'reilly book does not seem to be up-to-date with latest version of struts. Do you think this book is the best buy. Regards Puneet - Original Message - From: David Rothschadl [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 12:41 PM Subject: Re: struts books - review Arik, If you are a newcomer to Struts, 'Struts in Action' from Manning publishing is a great place to start. It is more of a tutorial, explaining everything in detail, as opposed to assuming that the reader is a Java expert. It has certainly helped me. David R Arik Levin ( Tikal ) [EMAIL PROTECTED] wrote: Hi all. I'm considering of getting one of Struts books, which one should I get? Thanx. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] HAPPY HOLIDAYS, EVERYONE
Amen Craig. Christ is the reason for the season! :-) \o/ Praise the Lord. Simon Acts 2:38 Chappell - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 9:41 PM To: Struts Users Mailing List Subject: RE: [OT] HAPPY HOLIDAYS, EVERYONE On Mon, 23 Dec 2002, James Mitchell wrote: +1 trying-to-stay-politically-correct ...and a very Merry Christmas to you (if you believe in that sort of thing). /trying-to-stay-politically-correct not-giving-a-rip-about-political-correctness Let us all spend some time this joyous season reflecting on the magnitude of a God that would bother to create the likes of us, and His willingness to sacrifice a Son to maintain a relationship with all the idiots and dirtbags we have to deal with every day (including ourselves :-). Without Christ, there's nothing particularly interesting about Christmas, except for a determined marketing campaign by all the stores to imply how inadequate we are if we don't spend lots of money giving each other gifts. Oh, and a guilt trip to care about the needs of others for a couple of weeks every year, instead of all the time ... If all you care about during this season is excuses to party, New Year's Eve will suffice for that :-). /not-giving-a-rip-about-political-correctness James Mitchell Craig McClanahan (unashamedly wishing everyone a Merry Christmas!) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts books - review
Well, I just reviewed Struts Kick Start and posted that yesterday to the list, so I think that I can recommend that to you. Sue Spielman's The Struts Framework: Practical Guide for Java Programmers is also good if you are past the newbie stage. I haven't read Ted's book yet (Oh the shame! :-) Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 7:01 AM To: 'Struts Users Mailing List' Subject: RE: struts books - review I forgot to mention that I'm familiar with struts 1.1b2. I'm looking for a book for advanced users. -Original Message- From: David Rothschadl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 2:41 PM To: Struts Users Mailing List Subject: Re: struts books - review Arik, If you are a newcomer to Struts, 'Struts in Action' from Manning publishing is a great place to start. It is more of a tutorial, explaining everything in detail, as opposed to assuming that the reader is a Java expert. It has certainly helped me. David R Arik Levin ( Tikal ) [EMAIL PROTECTED] wrote: Hi all. I'm considering of getting one of Struts books, which one should I get? Thanx. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Can't map HTML form action to Struts action
Hello, I see. I thought org.apache.velocity.tools.view.servlet.VelocityViewServlet replaces Struts' ActionServlet. However, it seems that it is not an alternative Action Servlet for use with Velocity, as I thought, but rather an additional servlet capable of dealing with Velocity templates, and not with action mappings and such. I still have a slight problem: [2002/12/24 09:26:18] init exception for `action' javax.servlet.UnavailableException: Parsing error processing resource path at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:931) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:454) That 'action' must be referring to this part from web.xml: servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping Am I doing something wrong? This is a copied from one of the Struts examples. It looks fine to me... Thanks, Otis On Tue, 24 Dec 2002, Jitendra Singh ([EMAIL PROTECTED]) wrote: hi! I am not sure if this is the correct way to call an action from HTML .. if we want to call it as form action .. then we should give full path like /foo/login.do . try and enlighten me too :-) cheers! Jitendra - Original Message - From: otisg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 10:51 AM Subject: Can't map HTML form action to Struts action Hello, I am having difficulties hooking up an HTML form action to an action mapping defined in struts-config.xml. This is the Struts HEAD from CVS. I am using Struts with Velocity. I can get .vm templates to load, but can't get things like HTML form submission action to map to a Struts action. My web.xml contains: servlet servlet-nameMyVelocityViewServlet/servlet-name servlet-classorg.apache.velocity.tools.view.servlet.VelocityViewServlet/s ervlet-class ... !-- Map *.vm files to Velocity -- servlet-mapping servlet-nameMyVelocityViewServlet/servlet-name url-pattern*.vm/url-pattern /servlet-mapping My struts-config.xml contains: action-mappings action type =foo.bar.webapp.actions.LoginAction name =loginF validate =true path =/login scope=request input=/login.vm forward name=success path=/home.vm/ forward name=failure path=/login.vm/ /action /action-mappings My HTML form contains this: form method=POST action=/foo/login When I submit this form I get a 404 from the servlet container: 404 Not Found /foo/login was not found on this server. I've looked at several configuration examples, and what I have looks fine, but unfortunately it is not. I am using this with Resin 2.1.6. One suspicious thing that I notice in Resin's log after I submit the HTML form is this: [2002/12/24 00:05:24] file: init [2002/12/24 00:05:24] com.caucho.server.http.DirectoryServlet: init This looks as if Resin is not mapping my /foo/action to the action servlet defined in my web app's web.xml...maybe, not sure. I have tried mapping /foo/* to MyVelocityViewServlet in web.xml, but that resulted in .vm pages being rendered as text/plain. That may be fixed by associating .vm extension with text/html, but I'm not sure how to do this under Resin yet. But I think I have something else wrong, anyway. Thank you, Otis Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Getting a Bean
One approach is to use the nested tag library (if you are using Struts 1.0.2 it's a separate download from www.keyboardmonkey.com/next/index.jsp). Using it you can display questionText for example as : nested:form action=foo nested:write property=pageObject.questionObject.text/ /nested:form if _formBean is the form-bean associated with the action 'foo'. Sri -Original Message- From: Michael P. Jones [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 6:53 PM To: Struts Users Mailing List Subject: JSP: Getting a Bean Hello- I have been using Struts for about a year now, however I have only used it with Stxx. All of these taglibs are new to me. I'm certain this is a very basic question but I have yet to figure it out... I have an Object in a FormBean I want to pull the Object from the FormBean and then get another object from that Object. Once I get the second object I want to get values from it. PageObject po = _formBean.getPageObject(); QuestionObject qo = po.getQuestionObject(); String questionText = qo.getText(); How do I do this with JSP? Can you point me in a direction that will explain this or just post a code clip? Thanks in advance- Michael -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How do I do this, input field retains value
Hi, I have one jsp page with 2 text fields, I am using DynaValidatorForm, I have an action form where in i call an program to update the database with these vaues. and reloads the same jsp Now the problem is 1 I have defined the 2 text fields as following html:text property=input1 size=15 maxlength=8 / html:text property=input2 size=15 maxlength=8 / When there is some error, i get the error message and also the retain the values entered by the user in these fields. But the values are also retained even if those are updated in data base?? so how can i avoid reloading of these values when there is no error = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
2 submit buttons with different action
Hi, I have 2 buttons on one jsp, one is submit button and the other is back. I want to use only one action form to handle both the events, I am using DynaValidatorForm. So the problem i amfacing is, the fields get validated even if i press the back button, Is there a way to make sure that the validation occurs only when i press submit button = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] HAPPY HOLIDAYS, EVERYONE
+1 on that!! -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 9:41 PM To: Struts Users Mailing List Subject: RE: [OT] HAPPY HOLIDAYS, EVERYONE On Mon, 23 Dec 2002, James Mitchell wrote: +1 trying-to-stay-politically-correct ...and a very Merry Christmas to you (if you believe in that sort of thing). /trying-to-stay-politically-correct not-giving-a-rip-about-political-correctness Let us all spend some time this joyous season reflecting on the magnitude of a God that would bother to create the likes of us, and His willingness to sacrifice a Son to maintain a relationship with all the idiots and dirtbags we have to deal with every day (including ourselves :-). Without Christ, there's nothing particularly interesting about Christmas, except for a determined marketing campaign by all the stores to imply how inadequate we are if we don't spend lots of money giving each other gifts. Oh, and a guilt trip to care about the needs of others for a couple of weeks every year, instead of all the time ... If all you care about during this season is excuses to party, New Year's Eve will suffice for that :-). /not-giving-a-rip-about-political-correctness James Mitchell Craig McClanahan (unashamedly wishing everyone a Merry Christmas!) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 2 submit buttons with different action
you can define a property in your form bean with a different value if you use one button or the other. In your validation method you test this property to verify if you check the others fields or not. Arnaud -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:29 A : Struts Users Mailing List Objet : 2 submit buttons with different action Hi, I have 2 buttons on one jsp, one is submit button and the other is back. I want to use only one action form to handle both the events, I am using DynaValidatorForm. So the problem i amfacing is, the fields get validated even if i press the back button, Is there a way to make sure that the validation occurs only when i press submit button = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] HAPPY HOLIDAYS, EVERYONE
Merry Xmas and Happy new year everybody. Good luck for all of those who try to finalize a b3. Thanks a lot for all the dev team. cheer ! Arnaud. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mardi 24 décembre 2002 16:43 À : [EMAIL PROTECTED] Objet : RE: [OT] HAPPY HOLIDAYS, EVERYONE +1 on that!! -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 9:41 PM To: Struts Users Mailing List Subject: RE: [OT] HAPPY HOLIDAYS, EVERYONE On Mon, 23 Dec 2002, James Mitchell wrote: +1 trying-to-stay-politically-correct ...and a very Merry Christmas to you (if you believe in that sort of thing). /trying-to-stay-politically-correct not-giving-a-rip-about-political-correctness Let us all spend some time this joyous season reflecting on the magnitude of a God that would bother to create the likes of us, and His willingness to sacrifice a Son to maintain a relationship with all the idiots and dirtbags we have to deal with every day (including ourselves :-). Without Christ, there's nothing particularly interesting about Christmas, except for a determined marketing campaign by all the stores to imply how inadequate we are if we don't spend lots of money giving each other gifts. Oh, and a guilt trip to care about the needs of others for a couple of weeks every year, instead of all the time ... If all you care about during this season is excuses to party, New Year's Eve will suffice for that :-). /not-giving-a-rip-about-political-correctness James Mitchell Craig McClanahan (unashamedly wishing everyone a Merry Christmas!) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] attachment: winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 2 submit buttons with different action
Hi, I m using DynaVaidationForm so struts automatically checks for the validation depending upon the defination in validation.xml is there a way out by using DynaValidationForm Ashish --- Arnaud HERITIER [EMAIL PROTECTED] wrote: you can define a property in your form bean with a different value if you use one button or the other. In your validation method you test this property to verify if you check the others fields or not. Arnaud -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:29 A : Struts Users Mailing List Objet : 2 submit buttons with different action Hi, I have 2 buttons on one jsp, one is submit button and the other is back. I want to use only one action form to handle both the events, I am using DynaValidatorForm. So the problem i amfacing is, the fields get validated even if i press the back button, Is there a way to make sure that the validation occurs only when i press submit button = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 2 submit buttons with different action
Sorry but I don't use yet the DynaValidationForm, so I don't know how to configure it :-( I don't know how is defined a validation.xml file but it is not possible to define dependencies between several fields ?? If this field equals bidule then this other field should be equal to truc ??? If it doesn't exist, it could be a good enhancement to propose I think. Arnaud -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:53 A : Struts Users Mailing List; [EMAIL PROTECTED] Objet : RE: 2 submit buttons with different action Hi, I m using DynaVaidationForm so struts automatically checks for the validation depending upon the defination in validation.xml is there a way out by using DynaValidationForm Ashish --- Arnaud HERITIER [EMAIL PROTECTED] wrote: you can define a property in your form bean with a different value if you use one button or the other. In your validation method you test this property to verify if you check the others fields or not. Arnaud -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:29 A : Struts Users Mailing List Objet : 2 submit buttons with different action Hi, I have 2 buttons on one jsp, one is submit button and the other is back. I want to use only one action form to handle both the events, I am using DynaValidatorForm. So the problem i amfacing is, the fields get validated even if i press the back button, Is there a way to make sure that the validation occurs only when i press submit button = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 2 submit buttons with different action
Look at the requiredif validation in the current nightly builds. James -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 11:07 AM To: 'Struts Users Mailing List' Subject: RE: 2 submit buttons with different action Sorry but I don't use yet the DynaValidationForm, so I don't know how to configure it :-( I don't know how is defined a validation.xml file but it is not possible to define dependencies between several fields ?? If this field equals bidule then this other field should be equal to truc ??? If it doesn't exist, it could be a good enhancement to propose I think. Arnaud -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:53 A : Struts Users Mailing List; [EMAIL PROTECTED] Objet : RE: 2 submit buttons with different action Hi, I m using DynaVaidationForm so struts automatically checks for the validation depending upon the defination in validation.xml is there a way out by using DynaValidationForm Ashish --- Arnaud HERITIER [EMAIL PROTECTED] wrote: you can define a property in your form bean with a different value if you use one button or the other. In your validation method you test this property to verify if you check the others fields or not. Arnaud -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:29 A : Struts Users Mailing List Objet : 2 submit buttons with different action Hi, I have 2 buttons on one jsp, one is submit button and the other is back. I want to use only one action form to handle both the events, I am using DynaValidatorForm. So the problem i amfacing is, the fields get validated even if i press the back button, Is there a way to make sure that the validation occurs only when i press submit button = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 2 submit buttons with different action
Have two submit buttons with different names and values. Have a property for each in your form. In your validate method check the value of each. Only the button that was clicked will have a nonnull value. Example: html: input type=submit name=submit value=foo input type=submit name=back value=bar form class: ... private String submit; private String back; ... validate method: if (foo.equals(getSubmit())){ //do validation }else{//getBack() should return null or empty string //skip validation } I hope this helps. BAL -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:29 A : Struts Users Mailing List Objet : 2 submit buttons with different action Hi, I have 2 buttons on one jsp, one is submit button and the other is back. I want to use only one action form to handle both the events, I am using DynaValidatorForm. So the problem i amfacing is, the fields get validated even if i press the back button, Is there a way to make sure that the validation occurs only when i press submit button = A$HI$H _ The new MSN 8: smart spam protection and 3 months FREE*. http://join.msn.com/?page=features/junkmailxAPID=42PS=47575PI=7324DI=7474SU= http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_smartspamprotection_3mf -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 2 submit buttons with different action
In this page : http://jakarta.apache.org/struts/userGuide/dev_validator.html the doc says : The most fundamental change is the ability to conditionally require validator fields based on the value of other fields. It allows you to define logic like only validate this field if field X is non- null and field Y equals male. I think it is possible to do what you want with the validator but don't know how. -Message d'origine- De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 17:07 A : 'Struts Users Mailing List' Objet : RE: 2 submit buttons with different action Sorry but I don't use yet the DynaValidationForm, so I don't know how to configure it :-( I don't know how is defined a validation.xml file but it is not possible to define dependencies between several fields ?? If this field equals bidule then this other field should be equal to truc ??? If it doesn't exist, it could be a good enhancement to propose I think. Arnaud -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:53 A : Struts Users Mailing List; [EMAIL PROTECTED] Objet : RE: 2 submit buttons with different action Hi, I m using DynaVaidationForm so struts automatically checks for the validation depending upon the defination in validation.xml is there a way out by using DynaValidationForm Ashish --- Arnaud HERITIER [EMAIL PROTECTED] wrote: you can define a property in your form bean with a different value if you use one button or the other. In your validation method you test this property to verify if you check the others fields or not. Arnaud -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:29 A : Struts Users Mailing List Objet : 2 submit buttons with different action Hi, I have 2 buttons on one jsp, one is submit button and the other is back. I want to use only one action form to handle both the events, I am using DynaValidatorForm. So the problem i amfacing is, the fields get validated even if i press the back button, Is there a way to make sure that the validation occurs only when i press submit button = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] HAPPY HOLIDAYS, EVERYONE
+1 on not-giving-a-rip-about-political-correctness :) -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 7:41 PM To: Struts Users Mailing List Subject: RE: [OT] HAPPY HOLIDAYS, EVERYONE On Mon, 23 Dec 2002, James Mitchell wrote: +1 trying-to-stay-politically-correct ...and a very Merry Christmas to you (if you believe in that sort of thing). /trying-to-stay-politically-correct not-giving-a-rip-about-political-correctness Let us all spend some time this joyous season reflecting on the magnitude of a God that would bother to create the likes of us, and His willingness to sacrifice a Son to maintain a relationship with all the idiots and dirtbags we have to deal with every day (including ourselves :-). Without Christ, there's nothing particularly interesting about Christmas, except for a determined marketing campaign by all the stores to imply how inadequate we are if we don't spend lots of money giving each other gifts. Oh, and a guilt trip to care about the needs of others for a couple of weeks every year, instead of all the time ... If all you care about during this season is excuses to party, New Year's Eve will suffice for that :-). /not-giving-a-rip-about-political-correctness James Mitchell Craig McClanahan (unashamedly wishing everyone a Merry Christmas!) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: AW: Problems with Eclipse and Struts
On Tue, 24 Dec 2002, Oliver Adolph wrote: Date: Tue, 24 Dec 2002 11:45:09 +0100 From: Oliver Adolph [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: AW: AW: Problems with Eclipse and Struts Hi everybody. I finally figured a way out to debug my web application. I start Tomcat standalone, but changed the start command to C:\j2sdk1.4.1_01\bin\java.exe -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000 -jar -Duser.dir=C:\Tomcat4.1 c:\Tomcat4.1\bin\bootstrap.jar start With Tomcat, you can avoid the need for modifying the Tomcat startup script by putting stuff like this in an environment variable: set CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000 and these options will get automatically merged into the command line that is actually executed. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
(solved) Re: Re: Can't map HTML form action to Struts action
For those who see this error in the future: This turned out to be a problem with slightly invalid XML in struts-config.xml, not web.xml, as the error may lead you to believe. The tool that helped me figure this out was James Holmes' Struts Console application. Nice work, thanks. Otis On Tue, 24 Dec 2002, otisg ([EMAIL PROTECTED]) wrote: Hello, I see. I thought org.apache.velocity.tools.view.servlet.VelocityViewServlet replaces Struts' ActionServlet. However, it seems that it is not an alternative Action Servlet for use with Velocity, as I thought, but rather an additional servlet capable of dealing with Velocity templates, and not with action mappings and such. I still have a slight problem: [2002/12/24 09:26:18] init exception for `action' javax.servlet.UnavailableException: Parsing error processing resource path at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:931) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:454) That 'action' must be referring to this part from web.xml: servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping Am I doing something wrong? This is a copied from one of the Struts examples. It looks fine to me... Thanks, Otis On Tue, 24 Dec 2002, Jitendra Singh ([EMAIL PROTECTED]) wrote: hi! I am not sure if this is the correct way to call an action from HTML .. if we want to call it as form action .. then we should give full path like /foo/login.do . try and enlighten me too :-) cheers! Jitendra - Original Message - From: otisg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 10:51 AM Subject: Can't map HTML form action to Struts action Hello, I am having difficulties hooking up an HTML form action to an action mapping defined in struts-config.xml. This is the Struts HEAD from CVS. I am using Struts with Velocity. I can get .vm templates to load, but can't get things like HTML form submission action to map to a Struts action. My web.xml contains: servlet servlet-nameMyVelocityViewServlet/servlet-name servlet-classorg.apache.velocity.tools.view.servlet.VelocityViewServlet/s ervlet-class ... !-- Map *.vm files to Velocity -- servlet-mapping servlet-nameMyVelocityViewServlet/servlet-name url-pattern*.vm/url-pattern /servlet-mapping My struts-config.xml contains: action-mappings action type =foo.bar.webapp.actions.LoginAction name =loginF validate =true path =/login scope=request input=/login.vm forward name=success path=/home.vm/ forward name=failure path=/login.vm/ /action /action-mappings My HTML form contains this: form method=POST action=/foo/login When I submit this form I get a 404 from the servlet container: 404 Not Found /foo/login was not found on this server. I've looked at several configuration examples, and what I have looks fine, but unfortunately it is not. I am using this with Resin 2.1.6. One suspicious thing that I notice in Resin's log after I submit the HTML form is this: [2002/12/24 00:05:24] file: init [2002/12/24 00:05:24] com.caucho.server.http.DirectoryServlet: init This looks as if Resin is not mapping my /foo/action to the action servlet defined in my web app's web.xml...maybe, not sure. I have tried mapping /foo/* to MyVelocityViewServlet in web.xml, but that resulted in .vm pages being rendered as text/plain. That may be fixed by associating .vm extension with text/html, but I'm not sure how to do this under Resin yet. But I think I have something else wrong, anyway. Thank you, Otis Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] HAPPY HOLIDAYS, EVERYONE
To everyone: I am not of the Christian faith, so I do not join in the Christ in Christmas, but do have my own faith which also celebrates this time of year, and I wish you all the best of Holidays. Jerusalem turned out to be the hub of many major world religions, and so did this time of year. Following Thanksgiving and the season of gratitude, this time of year is especially good to take stock, and then to start the New Year with new growth and new hope. I don't know if you have heard this before, but I like the explanation of what the eye of the needle was when Jesus made the comparison between a camel going through the eye of the needle and a rich man going to heaven. The gates of towns in those regions and East were open in the day and closed at night. In the gate itself was another thin and short gate, which was called the eye of the needle. For a camel to get through the smaller gate, the camel had to disgorge its baggage, load, etc. and then to get on its knees. Thus, the whole point is not that redemption is impossible, but that redemption is impossible without humility. I think that will be my goal this year: to become truly humble, which I am, whether I realize it or not. Cheers, Micael At 01:21 PM 12/24/02 +0100, you wrote: Happy holidays also from me! kiuma Justin Ashworth ha scritto: Amen, Craig. Have a Merry Christmas everyone! Justin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:41 PM To: Struts Users Mailing List Subject: RE: [OT] HAPPY HOLIDAYS, EVERYONE On Mon, 23 Dec 2002, James Mitchell wrote: +1 trying-to-stay-politically-correct ...and a very Merry Christmas to you (if you believe in that sort of thing). /trying-to-stay-politically-correct not-giving-a-rip-about-political-correctness Let us all spend some time this joyous season reflecting on the magnitude of a God that would bother to create the likes of us, and His willingness to sacrifice a Son to maintain a relationship with all the idiots and dirtbags we have to deal with every day (including ourselves :-). Without Christ, there's nothing particularly interesting about Christmas, except for a determined marketing campaign by all the stores to imply how inadequate we are if we don't spend lots of money giving each other gifts. Oh, and a guilt trip to care about the needs of others for a couple of weeks every year, instead of all the time ... If all you care about during this season is excuses to party, New Year's Eve will suffice for that :-). /not-giving-a-rip-about-political-correctness James Mitchell Craig McClanahan (unashamedly wishing everyone a Merry Christmas!) -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] . -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Reaching the ServletContext from Action class
Hello, I'm a struts newbie, so my question may seem somewhat simple or silly. I'm trying to learn how to use the struts JDBC Connection Pooling facility. Here's what I've done 1.Defined a datasource in struts-config.xml data-sources data-source set-property property=driverClass value=COM.ibm.db2.jdbc.app.DB2Driver/ set-property property=url value=jdbc:db2:struts/ set-property property=maxcount value=5/ set-property property=mincount value=1/ set-property property=user value=db2admin/ set-property property=password value=db2admin/ /data-source /data-sources 2.Created my Action class: 3.Try to reach to SefvletContext from within the action class to get the DataSource object from ServletContext like following; ServletContext context = servlet.getServletContext(); DataSource dataSource = (DataSource) context.getAttribute(Action.DATA_SOURCE_KEY); However the ServletContext is out of the scope of Action class and is not visible. I could not find any methods to get the ServletContext. My questions are; 1.Isn't it weird that the framework does not let me reach the ServletContext? Is there a way to get the ServletContext from within Action class? 2.What is the preffered and best way to get a reference to the DataSource? Thanks in advance... __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Reaching the ServletContext from Action class
Are you importing import javax.servlet.ServletContext; ??? Ilya -Original Message- From: Fatih Algan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: Reaching the ServletContext from Action class Hello, I'm a struts newbie, so my question may seem somewhat simple or silly. I'm trying to learn how to use the struts JDBC Connection Pooling facility. Here's what I've done 1.Defined a datasource in struts-config.xml data-sources data-source set-property property=driverClass value=COM.ibm.db2.jdbc.app.DB2Driver/ set-property property=url value=jdbc:db2:struts/ set-property property=maxcount value=5/ set-property property=mincount value=1/ set-property property=user value=db2admin/ set-property property=password value=db2admin/ /data-source /data-sources 2.Created my Action class: 3.Try to reach to SefvletContext from within the action class to get the DataSource object from ServletContext like following; ServletContext context = servlet.getServletContext(); DataSource dataSource = (DataSource) context.getAttribute(Action.DATA_SOURCE_KEY); However the ServletContext is out of the scope of Action class and is not visible. I could not find any methods to get the ServletContext. My questions are; 1.Isn't it weird that the framework does not let me reach the ServletContext? Is there a way to get the ServletContext from within Action class? 2.What is the preffered and best way to get a reference to the DataSource? Thanks in advance... __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Best way to do database update forms
Hi, I just wanted to ask for a recommendation on doing say a member update form. Do I need two Actions, one for retrieving the data and populating the form, then forwarding to a jsp page, and one for validating and updating the db? This is the first thing that came to my mind, so I wondered if someone had a better solution, if they deem this one not the best:-) i was planning on forwarding the update link to the member_show.do servlet first, then it will forward to jsp page once it populates the form, but that's an issue, do to below... Also, I plan on having the update_member jsp page in the member directory, which will be filtered for logon criteria and if not forwarded to the logon page, my question is... Because I need to execute the Servlet which populates the jsp form first and then it is forwarded to the update_member jsp form, I can't use the filter since the servlet would already require the logon information. I can ofcourse put in a small check in the servlet and forward to logon if needed, but what about the rest of the servlets that will need such a check, would I not have the ability to filter those as the jsp pages? I think the issue goes back to the design of my initial paragraph question, where the update member functionality might need to be designed differently. I appreciate any feedback on this. Thanks a bunch. Ilya -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 2 submit buttons with different action
you can configure your action mapping with validation=false and do the validation in ur action class by calling the validation method of your form(DynaValidatorForm). struts does not call the validation method, as validation=false you can check in ur action class which button was pressed and call the validate method only when submit is pressed. you still dont have to write ur validate method as long as u have the form in the validation.xml. to check which button was pressed you can use the following in ur jsp html:submit property=action Submit /html:submit html:submit property=action Back /html:submit and in ur action class String buttonPressed = form.getAction(); if(buttonPressed.equals(Submit)) form.validate(request.errors); if(!errors.empty) { return mapping.getInputForward(); } note that action should be a property in ur form. as u are using dynavalidator form it should be present in ur form declaration in ur struts-config.xml -rana -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 11:14 AM To: 'Struts Users Mailing List' Subject: RE: 2 submit buttons with different action In this page : http://jakarta.apache.org/struts/userGuide/dev_validator.html the doc says : The most fundamental change is the ability to conditionally require validator fields based on the value of other fields. It allows you to define logic like only validate this field if field X is non- null and field Y equals male. I think it is possible to do what you want with the validator but don't know how. -Message d'origine- De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 17:07 A : 'Struts Users Mailing List' Objet : RE: 2 submit buttons with different action Sorry but I don't use yet the DynaValidationForm, so I don't know how to configure it :-( I don't know how is defined a validation.xml file but it is not possible to define dependencies between several fields ?? If this field equals bidule then this other field should be equal to truc ??? If it doesn't exist, it could be a good enhancement to propose I think. Arnaud -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:53 A : Struts Users Mailing List; [EMAIL PROTECTED] Objet : RE: 2 submit buttons with different action Hi, I m using DynaVaidationForm so struts automatically checks for the validation depending upon the defination in validation.xml is there a way out by using DynaValidationForm Ashish --- Arnaud HERITIER [EMAIL PROTECTED] wrote: you can define a property in your form bean with a different value if you use one button or the other. In your validation method you test this property to verify if you check the others fields or not. Arnaud -Message d'origine- De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Envoye : mardi 24 decembre 2002 16:29 A : Struts Users Mailing List Objet : 2 submit buttons with different action Hi, I have 2 buttons on one jsp, one is submit button and the other is back. I want to use only one action form to handle both the events, I am using DynaValidatorForm. So the problem i amfacing is, the fields get validated even if i press the back button, Is there a way to make sure that the validation occurs only when i press submit button = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How do I do this, input field retains value
you can remove the form from request or session based on the scope in which u stored the form after database is updated succesfully. // Remove the obsolete form bean if (mapping.getAttribute() != null) { if (request.equals(mapping.getScope())) request.removeAttribute(mapping.getAttribute()); else session.removeAttribute(mapping.getAttribute()); } this will make struts create a new form. -rana. -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 10:26 AM To: Struts Users Mailing List Subject: How do I do this, input field retains value Hi, I have one jsp page with 2 text fields, I am using DynaValidatorForm, I have an action form where in i call an program to update the database with these vaues. and reloads the same jsp Now the problem is 1 I have defined the 2 text fields as following html:text property=input1 size=15 maxlength=8 / html:text property=input2 size=15 maxlength=8 / When there is some error, i get the error message and also the retain the values entered by the user in these fields. But the values are also retained even if those are updated in data base?? so how can i avoid reloading of these values when there is no error = A$HI$H __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: select, options, define???
you can create a collection for the rights and store it in application context when your application starts(may be in an initialization servlet). then use the html:select tag and html:options tag to render the admin picklist(s). you can use ten html:text tags for login fields or look into the possibility of using an array for login fields. -rana. -Original Message- From: Jitendra Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 7:25 AM To: [EMAIL PROTECTED] Subject: select, options, define??? I am still fighting .. help help!! I have a form with 10 login id displayed as text field and ther admin rights chosen from a drop down lists .. all drop down lists are same. looks like this .. Login Id1 AdminRight1 Login Id2AdminRight2 Login Id3AdminRight2 . . . Login IdnAdminRight1 How do i do it ??? any help, suggestion, advice hint .. all welcome .. thanks in advance ... Jitendra -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT] Merry Xmas. Kwanza, Navidad, Weihnacht
This is Peter Pilgrim, live en la casa en London Merry Christmas, Happy Kwanza, Happy Holidays, or Winter Festival, Schoene Weihnachten, Buena Navidad and Bottom Solstice Interlude to everybody. Keep on moving -- Peter Pilgrim ServerSide Java Specialist My on-line resume and for interview videos about myself, J2EE Open Source, Struts and Expresso. || \\=== `` http://www.xenonsoft.demon.co.uk/no-it-striker.html '' -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Happy Holidays from our judical system
Just in time for Xmas BALTIMORE - Microsoft must include rival Sun Microsystems' Java programming language in its Windows operating system, a federal judge ruled Monday. http://story.news.yahoo.com/news?tmpl=storyu=/ap/20021224/ap_on_hi_te/m icrosoft_sun_7 I'm sure they will find a way around it, but it's a nice thought... (PS Before you get to excited it's a temporary order) William B Chmura Director of Internet Technology Explosivo Internet Technology Group http://www.Explosivo.com Tel: (888) 560-YWEB -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ImageBeanButton attributes not populated
having read the tip about ImageButtonBean, i decided to give it a go with one of my forms. i added the relevant properties and accessor methods to my form [actually to a superclass of my form] (shown below) and changed the properties of each button in the associated jsp (i'm using several html:image elements) to cancel, ok, and reset. when i click any of the buttons, even tho ok.x=24 and ok.y=15 are being passed as request parameters, the form population is failing to set the associated attributes on the various ImageButtonBean objects. below i've included relevant trace data. i certainly wasn't expecting to see Target bean = false. i waded through the BeanUtils source code, but i got lost in the PropertyDescriptor mess. anyway, i'm betting i got something simple wrong in the struts layer. i thought there might have been an introspection problem since the form bean that's instantiated by struts is actually a subclass of SpiderForm, but i copied and pasted the attributes and methods into the subclass and got the same result- no go. any ideas where i might have flubbed? thanks! * trace data from server log: 2002-12-24 14:32:19,404 DEBUG [org.apache.commons.beanutils.BeanUtils] setProperty(cancel=ImageButtonBean[null, null] ok=ImageButtonBean[null, null] reset=ImageButtonBean[null, null] id=null cpuCount=null cpuSpeed=null customProperties={null} description=null dhcpServer=null dnsServer=null gateway=null ipAddress=null location=null macAddress=null machineType=null name=null ram=null subnet=null , ok.y, [15]) 2002-12-24 14:32:19,404 DEBUG [org.apache.commons.beanutils.BeanUtils] Target bean = false 2002-12-24 14:32:19,405 DEBUG [org.apache.commons.beanutils.BeanUtils] Target name = y * SpiderForm.java: //-instance variables private ImageButtonBean cancel; private ImageButtonBean ok; private ImageButtonBean reset; //-constructors public SpiderForm() { super(); this.cancel = new ImageButtonBean(); this.ok = new ImageButtonBean(); this.reset = new ImageButtonBean(); } //-public methods public void setCancel(ImageButtonBean cancel) { this.cancel = cancel; } public ImageButtonBean getCancel() { return this.cancel; } public void setOk(ImageButtonBean ok) { this.ok = ok; } public ImageButtonBean getOk() { return this.ok; } public void setReset(ImageButtonBean reset) { this.reset = reset; } public ImageButtonBean getReset() { return this.reset; } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] HAPPY HOLIDAYS, EVERYONE
Micael wrote: To everyone: I am not of the Christian faith, so I do not join in the Christ in Christmas, but do have my own faith which also celebrates this time of year, and I wish you all the best of Holidays. Jerusalem turned out to be the hub of many major world religions, and so did this time of year. Following Thanksgiving and the season of gratitude, this time of year is especially good to take stock, and then to start the New Year with new growth and new hope. I don't know if you have heard this before, but I like the explanation of what the eye of the needle was when Jesus made the comparison between a camel going through the eye of the needle and a rich man going to heaven. The gates of towns in those regions and East were open in the day and closed at night. In the gate itself was another thin and short gate, which was called the eye of the needle. For a camel to get through the smaller gate, the camel had to disgorge its baggage, load, etc. and then to get on its knees. Thus, the whole point is not that redemption is impossible, but that redemption is impossible without humility. I think that will be my goal this year: to become truly humble, which I am, whether I realize it or not. Cheers, Micael Amen, from the agnostic. Enjoy the Time everyone! smime.p7s Description: S/MIME Cryptographic Signature