Re: Passing JSP Variable Values to html:link tag - Ryan Norman
Why using scriplet when you have struts ? A better solution should be html:link page=/viewUser.do paramId=UserID paramName=userid link string /html:link the paramName parameter is a bean which contains the value to pass to request. hope this helps Ivan. - Original Message - From: Mittar, Harpreet [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 29, 2002 2:15 PM Subject: Re: Passing JSP Variable Values to html:link tag - Ryan Norman try putiing the expression tag within double quotes. %=userID% - Original Message - From: Ryan Norman [EMAIL PROTECTED] To: Struts User Mailing List [EMAIL PROTECTED] Sent: Thursday, March 28, 2002 05:45 PM Subject: Passing JSP Variable Values to html:link tag - Ryan Norman Hi, I am Ryan Norman. The JSP variable userID is never evaluated. It displays the URL as a href=/strutstest1/viewUser.do?UserID=%= userID %ADMINISTRATOR/a Does anybody know how to make this work. html:link page=/viewUser.do?UserID=%= userID % %= userID % /html:link Thanks Ryan Norman -- 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]
Installation of Struts 1.1b + Apache1.3.24 + Tomcat 4.0
Hi! uhm... ok... Let me get to the point real quick.. I am having trouble getting Apache to forward the .do call to the ActionServlet.. it think .do call is an actual file sitting somewhere in the webserver and gives me the dreaded 404 error(File not found). I have successfully installed Apache1.3.24 + Tomcat4.0 with Warp connector(the recommended connector for tomcat 4.0) and all jsps, servlets(the servlets included in TOMCAT, using /ExampleServlet call to call servlets) work fine. BUT my Tomcat server did not produced the tomcat-apache.conf file(which used ajp and mod_jserv connector.. so I wouldn't have needed it anyway...) and my Apache doesn't even have mod_jserv.so sitting in libexec folder.. So.. here's my questions.. Can anyone make struts work with the configuration similar to mine?? If yes, how?? OR How the hell can i make my apache forward the .do call to ActionServlet?? it seems as if the warp connector assumes url with extension(.something) is A FILE and tries to find it. Is there a configuration option for the warp connector?? Should I use /execute/* call to call ActionServlet(which I do not want...)?? All you Java/Struts/Apache/Tomcat gurus' help would be really appreciated. And oh.. I somehow could not join the mailing list(my mail server won't send my mail to jakarta.apache.org), so.. if you can CC my email([EMAIL PROTECTED]), i will thank you very much.. (;)) Thank you and have a nice day. Jason Kim _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error Explanation Needed - Ryan Norman
hello, This could be a nesting error. Take a look at struts developer guide http://jakarta.apache.org/struts/doc-1.0.2/index.html It is possible that u have a html:text tag not in html:form. This is just an example. regards, srinivas. -Original Message- From: Ryan Norman [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:07 AM To: Struts User Mailing List Subject: Error Explanation Needed - Ryan Norman Hi, Can somebody tell me what this error message mean? Also can you please tell me what I should do to solve this problem. Thanks in advance Ryan Norman javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:457) at org.apache.jsp.dsp_0005fUser$jsp._jspService(dsp_0005fUser$jsp.java:207) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:679) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:431) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:355) at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:21 49) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106 ) at java.lang.Thread.run(Thread.java:484) root cause javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493) at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:188) at org.apache.jsp.dsp_0005fUser$jsp._jspService(dsp_0005fUser$jsp.java:104) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at
ExceptionInInitializerError in JDeveloper
Hi, I've been using Struts and JDeveloper RC1 for a while without any problems. I just got RC2 and was trying to compile my system and I keep getting errors such as: Error: java.lang.ExceptionInInitializerError: org.apache.struts.taglib.logic.EqualTag As far as I could see in the javadocs, this means something wrong happened when a static variable was initialized. My suspicion is that this might have to do with the taglib's Resource file, but I'm not sure. I'd appreciate if anyone has any idea about this issue. Thanks! Otavio -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: errors tag
hi, the reason is that errors tag looks for errors.header,errors.footer properties. the first null is because of errors.header last one is because of the errors.footer regards, srinivas. -Original Message- From: Juan Alvarado [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 11:53 PM To: Struts Subject: errors tag Does anyone know why in Struts 1.02 when using the html:errors/ tag, any error that gets added to the ActionErrors object is displayed in the following format: null message string null An example would be as follows The html output of my errors tag in Struts 1.02 would yield the following when a user leaves a text field blank: ul null liSu búsqueda no devolvio resultados null p /ul With Struts 1.0: ul liSu búsqueda no devolvio resultados p /ul I apologize about the spanish bit, it's a straight copy and paste from our app. Thanks in advance ** Juan Alvarado Internet Developer -- Manduca Management (786)552-0504 [EMAIL PROTECTED] AOL Instant Messenger: [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: Managing Form without a FormBean
hi, you don't need a form bean to call struts action. a simple form with action to the main search page would do, or u can have a link to the struts action which forwards to the main search page. hope this helps, regards, srinivas -Original Message- From: sanjeev_dutt [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 9:14 AM To: Struts Users Mailing List Subject: Managing Form without a FormBean Hi All, Is it possible to have a form on my JSP without having a bean associated with it ? Actually on my JSP, I have a button New Search and when the user clicks on it, he/she should be taken to main search page. I have an action class associated with this. But since user is not submitting any value here, does it make sense to have a form bean here ? Can't we directly call the action class through ActionServlet without have a form in the whole scene. TIA Sanjeev -- 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: Preview OReilly Struts Chapters Online - Soon
My vote:Chapter 21. Struts Design Strategies It looks like I'm going to get approval to post preview chapters from my OReilly Struts book somewhere on the net. There are still a few preliminary things that have to be worked out, but I don't think they will be a big deal. There are a few things that I'm not sure about yet. If anyone has an opinion, please let me know. First, where to post them. I was thinking about talking with the folks at theserverside.com, but might also be worth posting them here in the user mailing list as well. I'm not sure. Anyone know of a good reason to go either way. I'm a little afraid of the flood of emails to everyone's box that this could generate, but it might also generate some good discussions? Also, because of time and everything that's going on, I doubt that I'll be able to post all of them. So which ones are of the most interest? Here's what I thought: Chapter 2.The Web Server/Servlet Container Relationship Chapter 3.Overview of the Struts Framework Chapter 4.Configuring web.xml and struts-config.xml Chapter 5.Struts Controller Components Chapter 6.Struts Model Components Chapter 8.Custom Tag Libraries Chapter 10. Exception Handling Chapter 12. Internationalization and Localization Chapter 13. Struts and Enterprise JavaBeans (EJB) Chapter 16. Using Alternate Presentation Technologies Chapter 18. Logging in a Struts Application Chapter 19. Addressing Performance Chapter 20. Packaging your Struts Application Chapter 21. Struts Design Strategies (As many as I could get to before I finish the book) Anyone would be able to download the chapters, read them, and send me their comments (both good and bad). I'll make any neccessary changes to the source document. I would probably post a new one every week or so. This may take a couple of weeks to get everything setup, but I have 9 that are ready to go. I also have a complete 1.1 storefront application that I could make available. It's what I'm using to showcase the Struts framework. It will eventually include every 1.1 feature in it. Let me know what everyone thinks. Chuck Cavaness -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Ultradev extension for Struts JSP Tags
Hello, I'm trying to use DreamWeaver Ultradev 4 for Struts JSP developpement. I followed the tutorial of jakarta ultradev extension, but I've got a NullPointerException when Dreamweaver requests the http://localhost:8080/TLDParser/servlet/TLDParser Her is what I've done: I use a local Tomcat 3.3.1 on Windows 2000. I put the Struts tlds in webapps\TLDParser\tld I put the struts 1.0.2 jar in webapps\TLDParser\lib I started tomcat I started dreamweaver with declaration of taglibs and ultradev4-tutorial conforming to tutorial. As I wanted to Use a Custom TagLibrary The drop dowmn menu shows me the servlet error message : Error: 500 Location: /TLDParser/servlet/TLDParser Erreur interne de servlet: java.lang.NullPointerException at org.apache.taglibs.tools.ultradev.ctlx.TLDParser.doGet(TLDParser.java:124) Do you have an idea ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Preview OReilly Struts Chapters Online - Soon
I vote to start with Chapters 2 3. People who have reviewed them can then vote for or review other chapters. -Original Message- From: Thinh Doan [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 5:39 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Preview OReilly Struts Chapters Online - Soon My vote: Chapter 13. Struts and Enterprise JavaBeans (EJB) Thank you, Thinh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 3:32 PM To: [EMAIL PROTECTED] Subject: Preview OReilly Struts Chapters Online - Soon It looks like I'm going to get approval to post preview chapters from my OReilly Struts book somewhere on the net. There are still a few preliminary things that have to be worked out, but I don't think they will be a big deal. There are a few things that I'm not sure about yet. If anyone has an opinion, please let me know. First, where to post them. I was thinking about talking with the folks at theserverside.com, but might also be worth posting them here in the user mailing list as well. I'm not sure. Anyone know of a good reason to go either way. I'm a little afraid of the flood of emails to everyone's box that this could generate, but it might also generate some good discussions? Also, because of time and everything that's going on, I doubt that I'll be able to post all of them. So which ones are of the most interest? Here's what I thought: Chapter 2. The Web Server/Servlet Container Relationship Chapter 3. Overview of the Struts Framework Chapter 4. Configuring web.xml and struts-config.xml Chapter 5. Struts Controller Components Chapter 6. Struts Model Components Chapter 8. Custom Tag Libraries Chapter 10. Exception Handling Chapter 12. Internationalization and Localization Chapter 13. Struts and Enterprise JavaBeans (EJB) Chapter 16. Using Alternate Presentation Technologies Chapter 18. Logging in a Struts Application Chapter 19. Addressing Performance Chapter 20. Packaging your Struts Application Chapter 21. Struts Design Strategies (As many as I could get to before I finish the book) Anyone would be able to download the chapters, read them, and send me their comments (both good and bad). I'll make any neccessary changes to the source document. I would probably post a new one every week or so. This may take a couple of weeks to get everything setup, but I have 9 that are ready to go. I also have a complete 1.1 storefront application that I could make available. It's what I'm using to showcase the Struts framework. It will eventually include every 1.1 feature in it. Let me know what everyone thinks. Chuck Cavaness -- Sent via jApache.org -- 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]
Accessing ActionServlet from Action class
Hi, is there anyway to access the ActionServlet from inside a formBean or Action class? Thnx, Bhaskar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Accessing ActionServlet from Action class
Bhaskar Gopalan [EMAIL PROTECTED] writes: Hi, is there anyway to access the ActionServlet from inside a formBean or Action class? Both Action and ActionForm have a protected member called servlet, to which all subclasses have access. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Accessing ActionServlet from Action class
The Action.getServlet() method provides access to the ActionServlet. -Original Message- From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 9:09 AM To: Struts Group (E-mail) Subject: Accessing ActionServlet from Action class Hi, is there anyway to access the ActionServlet from inside a formBean or Action class? Thnx, Bhaskar -- 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: Accessing ActionServlet from Action class
Hi, I have extended the ActionServlet, so can I access the ExtendedActionServlet from MyAction class? Any help would be highly appreciated. --Ajay -Original Message- From: Jim Crossley [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 6:23 AM To: Struts Users Mailing List Subject: Re: Accessing ActionServlet from Action class Bhaskar Gopalan [EMAIL PROTECTED] writes: Hi, is there anyway to access the ActionServlet from inside a formBean or Action class? Both Action and ActionForm have a protected member called servlet, to which all subclasses have access. -- 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: Accessing ActionServlet from Action class
Sure, assuming you've called super.init(config) in your init method, which of course you did, or little else would be working. :-) Of course, you may need to downcast it if you need to invoke a non-overridden method. -- Jim Ajay Mallik [EMAIL PROTECTED] writes: Hi, I have extended the ActionServlet, so can I access the ExtendedActionServlet from MyAction class? Any help would be highly appreciated. --Ajay -Original Message- From: Jim Crossley [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 6:23 AM To: Struts Users Mailing List Subject: Re: Accessing ActionServlet from Action class Bhaskar Gopalan [EMAIL PROTECTED] writes: Hi, is there anyway to access the ActionServlet from inside a formBean or Action class? Both Action and ActionForm have a protected member called servlet, to which all subclasses have access. -- 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] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Does Struts have some kinds of global dictionary object?
Here is my problem, I have a java bean class that keeps track of who changes what on the table (e.g. modifiedby). When a caller class changes something to the underlying table, I want to know who. The problem is that this Java bean class doesn't have access to the session object. In addition, I want to keep servlet layer separated from the backend java bean layer. Again, does Struts have some kinds of global dictionary object so I can keep information in there and ask for it when I need it...this dictionary object should be available to everyone? Thank You, Hai Hoang
javax.servlet.jsp.JspException: No getter method for property action of bean org .apache.struts.taglib.html.BEAN
Hi, I am implementing Struts on Weblogic 6 and i am getting the error: Feb 20, 2002 6:19:43 PM IST Error HTTP [WebAppServletContext(4865448,Defa ultWebApp,/DefaultWebApp)] Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property action of bean org .apache.struts.taglib.html.BEAN at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517) at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.ja va:188) at jsp_servlet._psychology.__viewclients._jspService(__viewclients.java: 162) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) pls reply..immediately Murali
RE: javax.servlet.jsp.JspException: No getter method for property action of bean org .apache.struts.taglib.html.BEAN
Your html:form is trying to use a field action that is not part of your form declared on struts-config.xml. -Original Message- From: Murali SN Rao [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: javax.servlet.jsp.JspException: No getter method for property action of bean org .apache.struts.taglib.html.BEAN Hi, I am implementing Struts on Weblogic 6 and i am getting the error: Feb 20, 2002 6:19:43 PM IST Error HTTP [WebAppServletContext(4865448,Defa ultWebApp,/DefaultWebApp)] Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property action of bean org .apache.struts.taglib.html.BEAN at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517) at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.ja va:188) at jsp_servlet._psychology.__viewclients._jspService(__viewclients.java: 162) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) pls reply..immediately Murali -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Preview OReilly Struts Chapters Online - Soon
Hmm. Sure are a lot of people interested in a chapter on EJBs when this is supposed to be a book about Struts. ;-) -Original Message- From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:19 AM To: Struts Users Mailing List Subject: Re: Preview OReilly Struts Chapters Online - Soon + EJBs and Addressing performance, please! At 09:03 2002-03-29 +0100, you wrote: so am I ! i vote for the struts design strategies, packaging, and taglibs as the most interesting. rjsjr Chapter 2. The Web Server/Servlet Container Relationship Chapter 3. Overview of the Struts Framework Chapter 4. Configuring web.xml and struts-config.xml Chapter 5. Struts Controller Components Chapter 6. Struts Model Components Chapter 8. Custom Tag Libraries Chapter 10. Exception Handling Chapter 12. Internationalization and Localization Chapter 13. Struts and Enterprise JavaBeans (EJB) Chapter 16. Using Alternate Presentation Technologies Chapter 18. Logging in a Struts Application Chapter 19. Addressing Performance Chapter 20. Packaging your Struts Application Chapter 21. Struts Design Strategies -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ExceptionInInitializerError and others - JDeveloper
Hi all, I keep getting errors when using the latest builds or the Beta 1.1-b1. When I turn back to a version from January 19, all errors disappear and I can work. This is very strange and I couldn't figure out what if the problem is with JDeveloper. I'd appreciate any suggestions.. Thanks! Otavio Error: java.lang.ExceptionInInitializerError: java.lang.NullPointerException Error: java.lang.ExceptionInInitializerError: org.apache.struts.taglib.logic.EqualTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag Error: java.lang.ExceptionInInitializerError: java.lang.NullPointerException Error: java.lang.ExceptionInInitializerError: org.apache.struts.taglib.html.HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag Error: java.lang.ExceptionInInitializerError: org.apache.struts.taglib.html.BaseFieldTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag Error: java.lang.ExceptionInInitializerError: java.lang.NullPointerException Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.ExceptionInInitializerError: java.lang.NullPointerException Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/MessageTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/MessageTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/MessageTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.ExceptionInInitializerError: java.lang.NullPointerException Error: java.lang.ExceptionInInitializerError: java.lang.NullPointerException Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.ClassFormatError: app.RowTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.ClassFormatError: org.apache.struts.taglib.html.TextTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HiddenTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/bean/WriteTag Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/logic/EqualTag -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Console and JDeveloper 9i
Subject: Struts Console and JDeveloper 9i From: Patrick Schilling [EMAIL PROTECTED] === Hello, Does anyone use the struts-console, http://www.jamesholmes.com/struts/console/index.html , as an add in for JDeveloper 9i? I have been unable to get it to work correctly and was wondering if anyone has had any luck with it. Works great as a standalone, would just be nice as an integrated part of the IDE. Thanks, Patrick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Preview OReilly Struts Chapters Online - Soon
My vote is for 21, 16, 8 and as many others as you can get out there. I wouldn't object to any additional email on the list if you post there. Thanks for doing this - you're providing us all with a real service. I *will* buy the book. George Phillips [EMAIL PROTECTED] Chapter 2. The Web Server/Servlet Container Relationship Chapter 3. Overview of the Struts Framework Chapter 4. Configuring web.xml and struts-config.xml Chapter 5. Struts Controller Components Chapter 6. Struts Model Components Chapter 8. Custom Tag Libraries Chapter 10.Exception Handling Chapter 12.Internationalization and Localization Chapter 13.Struts and Enterprise JavaBeans (EJB) Chapter 16.Using Alternate Presentation Technologies Chapter 18.Logging in a Struts Application Chapter 19.Addressing Performance Chapter 20.Packaging your Struts Application Chapter 21.Struts Design Strategies -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Console and JDeveloper 9i
I was trying to download the latest rev today but the website for Struts Console seemed to be down. One thing that could be an issue is that, as noted in the release notes of our Release Candidate 2 build that was published this week on OTN, the format of the Addin manifest file changed between RC1 and RC2 releases. Addin suppliers would need a small tweak to their supplied manifest file to adapt to the new format. The symptom of the format being wrong for RC2 would be that the addin is ignored at startup time. __ Steve Muench - Developer, Product Mgr, Evangelist, Author Simplify J2EE and EJB Development with BC4J http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp - Original Message - From: Struts Newsgroup @[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 17:10 Subject: Struts Console and JDeveloper 9i | Subject: Struts Console and JDeveloper 9i | From: Patrick Schilling [EMAIL PROTECTED] | === | Hello, | | Does anyone use the struts-console, | http://www.jamesholmes.com/struts/console/index.html , as an add in for | JDeveloper 9i? I have been unable to get it to work correctly and was | wondering if anyone has had any luck with it. Works great as a standalone, | would just be nice as an integrated part of the IDE. | | Thanks, | | Patrick | | | | -- | 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 Console and JDeveloper 9i
I works just fine. Download 1.7 and unzip in a new directory, then copy console.jar from the struts-console\lib directory to jdev\lib\ext directory. Start JDeveloper and include your struts-config.xml file in your project. Double-clicking on the file in system navigator automatically loads struts-config.xml into the struts console within JDeveloper. I just did this entire process in about 5 minutes. Mark -Original Message- From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 11:10 AM To: [EMAIL PROTECTED] Subject: Struts Console and JDeveloper 9i Subject: Struts Console and JDeveloper 9i From: Patrick Schilling [EMAIL PROTECTED] === Hello, Does anyone use the struts-console, http://www.jamesholmes.com/struts/console/index.html , as an add in for JDeveloper 9i? I have been unable to get it to work correctly and was wondering if anyone has had any luck with it. Works great as a standalone, would just be nice as an integrated part of the IDE. Thanks, Patrick -- 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 Console and JDeveloper 9i
Subject: Re: Struts Console and JDeveloper 9i From: Patrick Schilling [EMAIL PROTECTED] === Thanks for the response. Actually, I have tried it for both RC1 and RC2, both with no results. I even tried creating my own new manifest file with the correct format for RC2. Is there any way to tell if JDeveloper is recognizing the add in correctly? BTW, The Struts Console web site comes up for me. The address that google gives on a search appears to be incorrect. Try http://www.jamesholmes.com/struts/console/index.html if you have not already. -Patrick Steve Muench [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I was trying to download the latest rev today but the website for Struts Console seemed to be down. One thing that could be an issue is that, as noted in the release notes of our Release Candidate 2 build that was published this week on OTN, the format of the Addin manifest file changed between RC1 and RC2 releases. Addin suppliers would need a small tweak to their supplied manifest file to adapt to the new format. The symptom of the format being wrong for RC2 would be that the addin is ignored at startup time. __ Steve Muench - Developer, Product Mgr, Evangelist, Author Simplify J2EE and EJB Development with BC4J http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp - Original Message - From: Struts Newsgroup @[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 17:10 Subject: Struts Console and JDeveloper 9i | Subject: Struts Console and JDeveloper 9i | From: Patrick Schilling [EMAIL PROTECTED] | === | Hello, | | Does anyone use the struts-console, | http://www.jamesholmes.com/struts/console/index.html , as an add in for | JDeveloper 9i? I have been unable to get it to work correctly and was | wondering if anyone has had any luck with it. Works great as a standalone, | would just be nice as an integrated part of the IDE. | | Thanks, | | Patrick | | | | -- | 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]
Problem with Tomcat's security manager and DataSource in struts-config.xml
All, I have been migrating a smaller Tomcat/MySQL application to Struts and have run into a problem. I have completely converted the app to Struts and hit a snag when I inserted the DataSource tag into the struts-config.xml. It began to generate Cannot fond ActionMappings errors in the html and in the logs could not find the database, asking Is there a MySQL database running on this server? My Tomcat 4.0 (on RH 7.1) is running with security and I added these lines to the conf/catalina.policy file, each on as nothing else seemed to work: grant CodeBase file:${catalina.home}/webapps/myapp/- { permission java.security.AllPermission; }; grant CodeBase file:${catalina.home}/webapps/myapp/- { permission java.security.AllPermission; };
RE: Preview OReilly Struts Chapters Online - Soon
I vote for chapters 8, 10 and 21. Thanks for giving us the opportunity to see it. -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 12:03 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Preview OReilly Struts Chapters Online - Soon so am I ! i vote for the struts design strategies, packaging, and taglibs as the most interesting. rjsjr Chapter 2. The Web Server/Servlet Container Relationship Chapter 3. Overview of the Struts Framework Chapter 4. Configuring web.xml and struts-config.xml Chapter 5. Struts Controller Components Chapter 6. Struts Model Components Chapter 8. Custom Tag Libraries Chapter 10. Exception Handling Chapter 12. Internationalization and Localization Chapter 13. Struts and Enterprise JavaBeans (EJB) Chapter 16. Using Alternate Presentation Technologies Chapter 18. Logging in a Struts Application Chapter 19. Addressing Performance Chapter 20. Packaging your Struts Application Chapter 21. Struts Design Strategies -- 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]
Does this tag exist architecture [was] This hopefully is a simple question that has been dealt with
On Friday, March 29, 2002, 11:19:25 AM, Maturo, Larry wrote: ML We define a separate bean that mirrors our ML EmployeeBean, but has string fields. We then ML get a list of EmployeeBeans and manually convert ML them to a list of EmployeeStringBeans. :-) It's ML a pain, but it works. Note that we only populate ML the fields we actually plan on displaying, since ML it is pointless to populate the other fields. Thanks for your feedback Larry. (By the way nice job on that AthensGroup paper on Struts if you wrote it). Currently I already have an EmployeeForm bean (all String fields) and an EmployeeBean (Strings, ints, etc.). The business tier does the DB query and returns an ArrayList of EmployeeBeans. Now the question becomes what next in order to iterate through this list and display the EmployeeBean fields in a nice way (ie. proper date format, currency format, etc.) ?... I'm assuming from your reply that you might have extra logic somewhere that will take that ArrayList of EmployeeBeans and loop through the list and populate a new List of EmployeeForm beans. In this step calls will be made to make sure the Strings in each EmployeeForm object are correctly formatted. I see how this idea will work, although it seems a shame that you have a perfectly good ArrayList of Employee objects and now you are iterating through it just to populate another ArrayList of Employee objects with all String fields. Before I looked into Struts I didn't see the big deal of iterating though this list of regular EmployeeBean objects and then where formatting was needed just call my helper util class to change the format. For example: %= RickUtils.displayDateAsString( bean.getBirthDate() ) % I know, everyone says the above it bad because you now have scriplets in your JSP code. Still, though, this seems to make more sense to me than to going through the overhead of looping through possibly a large ArrayList of beans in order to just populate a similar ArrayList with just String fields. I suppose I will go the later route in order to maintain the Struts architecture of perfectly clean JSP pages. Being new to struts and new to using tags, would it be that difficult to create a tag that when passed a double it new to spit out a display in some currency format or if it received a Date it would display it in the proper format. I noticed there is a tag library out there for display dates, but ideally I would like one tag that would just pick up the datatype and if datatype is double display this way, if Date display this way. Does a tag library like the above already exist? Thanks again for your feedback. I'm posting this to the list as well for any other ideas. ML There is a utility in Struts to help with this, but ML I have never used it, since it always seemed like ML learning to use it was more work than doing it ML manually. ML -- Larry Maturo ML[EMAIL PROTECTED] ML -Original Message- ML From: Rick Reumann [mailto:[EMAIL PROTECTED]] ML Sent: Thursday, March 28, 2002 9:09 PM ML To: Struts Users Mailing List ML Subject: This hopefully is a simple question that has been dealt with ML Sorry to post this question again, but I'm still curious about this ML ... ML I'm sure this question has come up but I'm not having much luck ML searching the archives. I'm really new to Struts so I hope this ML question isn't too out of place for this list. Lets say we are dealing ML with Employee beans. I would my EmployeeBean to be able to have ML members that are not all Strings. (In this example say Age would be an ML int, birthDate a java.util.Date, etc.). Now in the sample app I'm ML developing I have an EmployeeForm class also that currently has just ML String datatypes for these fields. Having the information from the ML actual form jsp's going to the EmployeeForm in as all Strings without ML any conversions is not that big of a deal since wherever I do anything ML with this data (jdbc inserts in the business logic I could always ML covert them there if I need to ). However, I'm more concerned with ML getting this information displayed correctly using the iterate tag. ML For example, say I have on an Action class that gets back and ML ArrayList of EmployeeBean objects and puts this list into the request ML before forwarding. I really can't do: ML logic:iterate id=row name=employeeList ML bean:write name=row property=firstName/BR ML bean:write name=row property=lastName/BR ML bean:write name=row property=age/BR ML bean:write name=row property=birthDate/BR ML BR ML /logic:iterate ML since I won't have birthDate formatted correctly, or say I was ML returning a Double that I needed in a currency format. What is the ML best way to deal with this situation? I could of course maybe have my ML business logic return me a Collection of
RE: ExceptionInInitializerError in JDeveloper
I am using JDeveloper too with Struts 1.0.1 and it works fine. But when I upgraded to Struts 1.1 I was receiving the same problem except it was with the InsertTag instead of the EqualTag. I am planning to upgrade to RC2 relatively soon so I will let you know if I run into similar issues. -Original Message- From: Otavio Decio [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 7:36 PM To: Struts Users Mailing List Subject: ExceptionInInitializerError in JDeveloper Hi, I've been using Struts and JDeveloper RC1 for a while without any problems. I just got RC2 and was trying to compile my system and I keep getting errors such as: Error: java.lang.ExceptionInInitializerError: org.apache.struts.taglib.logic.EqualTag As far as I could see in the javadocs, this means something wrong happened when a static variable was initialized. My suspicion is that this might have to do with the taglib's Resource file, but I'm not sure. I'd appreciate if anyone has any idea about this issue. Thanks! Otavio -- 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]
Problem with tomcat's security manager and dataSource in the struts_config.xml file
All, I have been migrating a smaller Tomcat/MySQL application to Struts and have run into a problem. I have completely converted the app to Struts and hit a snag when I inserted the DataSource tag into the struts-config.xml. It began to generate Cannot find ActionMappings errors in the html and in the logs it could not find the database, asking Is there a MySQL database running on this server? My Tomcat 4.0 (on RH 7.1) is running with security and I added these lines to the conf/catalina.policy file, each on as nothing else seemed to work: grant CodeBase file:${catalina.home}/webapps/myapp/- { permission java.security.AllPermission; }; grant CodeBase file:${catalina.home}/webapps/myapp/WEB-INF/classes/- { permission java.security.AllPermission; }; grant CodeBase file:${catalina.home}/webapps/myapp/WEB-INF/lib- { permission java.security.AllPermission; }; grant CodeBase file:${catalina.home}/webapps/myapp/WEb-INF/lib/mm.mysql-2.0.11-bin.jar!/- { permission java.security.AllPermission; }; None of these worked either. When I commented out the datasource tag everything except the database started working and then when I commented it back in, nothing. I finally turned off the security manager and everything including the database works now, with the datasource tag in the struts-config.xml in there as it should be. Has anyone else had this problem? In the local user's group, someone else had the same problem on a WIN2K box with MySQL (and a different version of the mm.mysql.driver as well) and they still haven't solved it either. The appropriate section of the struts-config.xml looks like the following: data-sources data-source autoCommit=false autoReconnect=true description=Data Source driverClass=org.gjt.mm.mysql.Driver maxCount=4 minCount=2 password=whatever url=jdbc:mysql://myserver:3306/4po user=servlet / /data-sources What is the conflict with the security manager or am I messing something up myself? Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help with select tag once again
Thanks Jim that took care of it. Jose Casas E-Commerce Applications (501) 277-3112 [EMAIL PROTECTED] ** Notice: The area code for the Wal-Mart General Office has changed from 501 to 479. Please make sure that you are dialing 479 when making calls to any General Office location. ** This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
about ArrayList
Hi My question is not really related to Struts, but i thought i could ask you guys about this so that i can get some answer this might help some developers. When i looked at the source code for Sun's Java class ArrayList i found something interesting. The private member of the ArrayList class, which holds the objects added to list, is transient which means indication to the Java virtual machine that the indicated variable is not part of the persistent state of the object. So My question is if i have an ArrayList object, can i save this object into a file read the same object from the file without loosing data ? (Keep in mind the member variable, private transient Object elementData[]; , which holds tha actual data is transient in ArrayList) Please see below for Some code from java.util.ArrayList.java Thanks in advance Ramana public class ArrayList extends AbstractList implements List, Cloneable, java.io.Serializable { private transient Object elementData[]; private int size; public ArrayList(int initialCapacity) { super(); this.elementData = new Object[initialCapacity]; } public ArrayList() { this(10); } public ArrayList(Collection c) { size = c.size(); elementData = new Object[(size*110)/100]; // Allow 10% room for growth c.toArray(elementData); } public void trimToSize() { modCount++; int oldCapacity = elementData.length; if (size oldCapacity) { Object oldData[] = elementData; elementData = new Object[size]; System.arraycopy(oldData, 0, elementData, 0, size); } } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
about ArrayList
Hi My question is not really related to Struts, but i thought i could ask you guys about this so that i can get some answer this might help some developers. When i looked at the source code for Sun's Java class ArrayList i found something interesting. The private member of the ArrayList class, which holds the objects added to list, is transient which means indication to the Java virtual machine that the indicated variable is not part of the persistent state of the object. So My question is if i have an ArrayList object, can i save this object into a file read the same object from the file without loosing data ? (Keep in mind the member variable, private transient Object elementData[]; , which holds tha actual data is transient in ArrayList) Please see below for Some code from java.util.ArrayList.java Thanks in advance Ramana public class ArrayList extends AbstractList implements List, Cloneable, java.io.Serializable { private transient Object elementData[]; private int size; public ArrayList(int initialCapacity) { super(); this.elementData = new Object[initialCapacity]; } public ArrayList() { this(10); } public ArrayList(Collection c) { size = c.size(); elementData = new Object[(size*110)/100]; // Allow 10% room for growth c.toArray(elementData); } public void trimToSize() { modCount++; int oldCapacity = elementData.length; if (size oldCapacity) { Object oldData[] = elementData; elementData = new Object[size]; System.arraycopy(oldData, 0, elementData, 0, size); } } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
about ArrayList
Hi My question is not really related to Struts, but i thought i could ask you guys about this so that i can get some answer this might help some developers. When i looked at the source code for Sun's Java class ArrayList i found something interesting. The private member of the ArrayList class, which holds the objects added to list, is transient which means indication to the Java virtual machine that the indicated variable is not part of the persistent state of the object. So My question is if i have an ArrayList object, can i save this object into a file read the same object from the file without loosing data ? (Keep in mind the member variable, private transient Object elementData[]; , which holds tha actual data is transient in ArrayList) Please see below for Some code from java.util.ArrayList.java Thanks in advance Ramana public class ArrayList extends AbstractList implements List, Cloneable, java.io.Serializable { private transient Object elementData[]; private int size; public ArrayList(int initialCapacity) { super(); this.elementData = new Object[initialCapacity]; } public ArrayList() { this(10); } public ArrayList(Collection c) { size = c.size(); elementData = new Object[(size*110)/100]; // Allow 10% room for growth c.toArray(elementData); } public void trimToSize() { modCount++; int oldCapacity = elementData.length; if (size oldCapacity) { Object oldData[] = elementData; elementData = new Object[size]; System.arraycopy(oldData, 0, elementData, 0, size); } } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
about ArrayList
Hi My question is not really related to Struts, but i thought i could ask you guys about this so that i can get some answer this might help some developers. When i looked at the source code for Sun's Java class ArrayList i found something interesting. The private member of the ArrayList class, which holds the objects added to list, is transient which means indication to the Java virtual machine that the indicated variable is not part of the persistent state of the object. So My question is if i have an ArrayList object, can i save this object into a file read the same object from the file without loosing data ? (Keep in mind the member variable, private transient Object elementData[]; , which holds tha actual data is transient in ArrayList) Please see below for Some code from java.util.ArrayList.java Thanks in advance Ramana public class ArrayList extends AbstractList implements List, Cloneable, java.io.Serializable { private transient Object elementData[]; private int size; public ArrayList(int initialCapacity) { super(); this.elementData = new Object[initialCapacity]; } public ArrayList() { this(10); } public ArrayList(Collection c) { size = c.size(); elementData = new Object[(size*110)/100]; // Allow 10% room for growth c.toArray(elementData); } public void trimToSize() { modCount++; int oldCapacity = elementData.length; if (size oldCapacity) { Object oldData[] = elementData; elementData = new Object[size]; System.arraycopy(oldData, 0, elementData, 0, size); } } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ExceptionInInitializerError in JDeveloper
Thanks, at least I know I'm not alone on this. - Original Message - From: Honman Lee [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 29, 2002 12:07 PM Subject: RE: ExceptionInInitializerError in JDeveloper I am using JDeveloper too with Struts 1.0.1 and it works fine. But when I upgraded to Struts 1.1 I was receiving the same problem except it was with the InsertTag instead of the EqualTag. I am planning to upgrade to RC2 relatively soon so I will let you know if I run into similar issues. -Original Message- From: Otavio Decio [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 7:36 PM To: Struts Users Mailing List Subject: ExceptionInInitializerError in JDeveloper Hi, I've been using Struts and JDeveloper RC1 for a while without any problems. I just got RC2 and was trying to compile my system and I keep getting errors such as: Error: java.lang.ExceptionInInitializerError: org.apache.struts.taglib.logic.EqualTag As far as I could see in the javadocs, this means something wrong happened when a static variable was initialized. My suspicion is that this might have to do with the taglib's Resource file, but I'm not sure. I'd appreciate if anyone has any idea about this issue. Thanks! Otavio -- 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]
help with select tag once again
Jim, Making the s in property=selectBox1List lower case helped fix the error that I was getting. Now that I added my select tag I get another one which says java.lang.IllegalArgumentException: No name specified Does this mean I'm missing a name attribute in either the select or options tag? I tried changing the s in property=selectBox1 to a capital s but that gave me a no getter method for SelectBox1 error. Also, when I get the No name specified error, when I view my browser, there is a select box in the browser, but it's got no values. Please help. bean:define id=somebean name=logonForm property=selectBox1List type=java.util.ArrayList/ html:select property=selectBox1 html:options collection=somebean/ /html:select Jose Casas E-Commerce Applications (501) 277-3112 [EMAIL PROTECTED] ** Notice: The area code for the Wal-Mart General Office has changed from 501 to 479. Please make sure that you are dialing 479 when making calls to any General Office location. ** This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: about ArrayList
Kumari, Ramana [EMAIL PROTECTED] writes: My question is not really related to Struts, but i thought i could ask you guys about this so that i can get some answer this might help some developers. Maybe, but it's still not an appropriate list topic. So My question is if i have an ArrayList object, can i save this object into a file read the same object from the file without loosing data ? Yes. All java.util.Collection implementations are serializable. (Keep in mind the member variable, private transient Object elementData[]; , which holds tha actual data is transient in ArrayList) That's only half the story. The rest of the story may be read in the ArrayList's readObject and writeObject methods. -- Jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ExceptionInInitializerError in JDeveloper
As a tip, if you do run into the problem with RC2, please let us know what JVM you're using when you hit the problem in case that's relevant to investigating the issue. __ Steve Muench - Developer, Product Mgr, Evangelist, Author Oracle JDeveloper Dev Team Simplify J2EE and EJB Development with BC4J http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp - Original Message - From: Otavio Decio [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 29, 2002 18:34 Subject: Re: ExceptionInInitializerError in JDeveloper | Thanks, at least I know I'm not alone on this. | | | - Original Message - | From: Honman Lee [EMAIL PROTECTED] | To: Struts Users Mailing List [EMAIL PROTECTED] | Sent: Friday, March 29, 2002 12:07 PM | Subject: RE: ExceptionInInitializerError in JDeveloper | | | I am using JDeveloper too with Struts 1.0.1 and it works fine. But when I | upgraded to Struts 1.1 I was receiving the same problem except it was with | the InsertTag instead of the EqualTag. I am planning to upgrade to RC2 | relatively soon so I will let you know if I run into similar issues. | | -Original Message- | From: Otavio Decio [mailto:[EMAIL PROTECTED]] | Sent: Thursday, March 28, 2002 7:36 PM | To: Struts Users Mailing List | Subject: ExceptionInInitializerError in JDeveloper | | | Hi, | | I've been using Struts and JDeveloper RC1 for a while without any problems. | I just got RC2 and was trying to compile my system and I keep getting errors | such as: | | Error: java.lang.ExceptionInInitializerError: | org.apache.struts.taglib.logic.EqualTag | | As far as I could see in the javadocs, this means something wrong happened | when a static variable was initialized. My suspicion is that this might have | to do with the taglib's Resource file, but I'm not sure. | | I'd appreciate if anyone has any idea about this issue. | | Thanks! | | Otavio | | | | -- | 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: help with select tag once again
You're not specifying enough attributes in html:options. See the docs for that tag, and previous examples recently posted to this list. Jose Casas [EMAIL PROTECTED] writes: Jim, Making the s in property=selectBox1List lower case helped fix the error that I was getting. Now that I added my select tag I get another one which says java.lang.IllegalArgumentException: No name specified Does this mean I'm missing a name attribute in either the select or options tag? I tried changing the s in property=selectBox1 to a capital s but that gave me a no getter method for SelectBox1 error. Also, when I get the No name specified error, when I view my browser, there is a select box in the browser, but it's got no values. Please help. bean:define id=somebean name=logonForm property=selectBox1List type=java.util.ArrayList/ html:select property=selectBox1 html:options collection=somebean/ /html:select Jose Casas E-Commerce Applications (501) 277-3112 [EMAIL PROTECTED] ** Notice: The area code for the Wal-Mart General Office has changed from 501 to 479. Please make sure that you are dialing 479 when making calls to any General Office location. ** This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts-config.xml Explanation Needed - Ryan Norman
Ryan, . Go to http://jakarta.apache.org/struts/doc-1.0.2/api/index.html read Class ActionMapping . ActionMapping is the object that holds the value of action tag validate is explained here . same for ActionFormBean only name and type. . html:form action=X with the action X is equal to path in action + .do have fun, Leonardo Maciel -Original Message- From: Ryan Norman [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 12:40 PM To: Struts User Mailing List Subject: struts-config.xml Explanation Needed - Ryan Norman Hi, I am Ryan Norman. I started with struts about a week ago. I went through the documentation. Still I could not understand some portions of struts. Can somebody explain me the following: . Dissection of this tag. !-- Add User action -- action path=/addUser type=strutstest1.SystemUserAction name=userForm scope=request input=/admin/dsp_User.jsp validate=false forward name=success path=/admin/dsp_User.jsp/ forward name=failure path=/admin/search/dsp_SearchUser.jsp/ /action . What am I achieving by giving the validate=false in the above tag. . Dissection of this tag form-bean name=userForm type=strutstest1.SystemUserForm / What is the association of of the html:form action=X with the action tag. Thanks in advance Ryan Norman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ExceptionInInitializerError in JDeveloper
I'm using RC2 as it comes out of the box (or out of the zip). I also emptied all system CLASSPATH to try to avoid conflicts and still can't compile JSP when they make references to the Struts tag libraries. In RC1 the JVM was clearly jdk1.3 as per the directory installation, whereas now for RC2 it just says jdk although the timestamps are recent. Also there are two JspException constructors that Struts utilize that RC2's servlet.jar doesn't support. I got that when I tried to add the whole Struts source code to my project instead of using the jars. The issue is very easy to repro, just have a small project using Struts and use the latest builds or the Beta. When you put older versions back everything works fine. Otavio - Original Message - From: Steve Muench [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 29, 2002 12:37 PM Subject: Re: ExceptionInInitializerError in JDeveloper As a tip, if you do run into the problem with RC2, please let us know what JVM you're using when you hit the problem in case that's relevant to investigating the issue. __ Steve Muench - Developer, Product Mgr, Evangelist, Author Oracle JDeveloper Dev Team Simplify J2EE and EJB Development with BC4J http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp - Original Message - From: Otavio Decio [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 29, 2002 18:34 Subject: Re: ExceptionInInitializerError in JDeveloper | Thanks, at least I know I'm not alone on this. | | | - Original Message - | From: Honman Lee [EMAIL PROTECTED] | To: Struts Users Mailing List [EMAIL PROTECTED] | Sent: Friday, March 29, 2002 12:07 PM | Subject: RE: ExceptionInInitializerError in JDeveloper | | | I am using JDeveloper too with Struts 1.0.1 and it works fine. But when I | upgraded to Struts 1.1 I was receiving the same problem except it was with | the InsertTag instead of the EqualTag. I am planning to upgrade to RC2 | relatively soon so I will let you know if I run into similar issues. | | -Original Message- | From: Otavio Decio [mailto:[EMAIL PROTECTED]] | Sent: Thursday, March 28, 2002 7:36 PM | To: Struts Users Mailing List | Subject: ExceptionInInitializerError in JDeveloper | | | Hi, | | I've been using Struts and JDeveloper RC1 for a while without any problems. | I just got RC2 and was trying to compile my system and I keep getting errors | such as: | | Error: java.lang.ExceptionInInitializerError: | org.apache.struts.taglib.logic.EqualTag | | As far as I could see in the javadocs, this means something wrong happened | when a static variable was initialized. My suspicion is that this might have | to do with the taglib's Resource file, but I'm not sure. | | I'd appreciate if anyone has any idea about this issue. | | Thanks! | | Otavio | | | | -- | 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Comments on Struts framework
Subject: Comments on Struts framework From: Sriniavs Paruchuri [EMAIL PROTECTED] === Gurus, I started reading about Struts only y'day and thanks to many articles, I could get some knowledge about Struts in a short time. Here are some of the comments made by my colleague and I want your opinion on them 1) Struts is a framework for a web application (web server centric) not for an Enterprise J2EE Application (EJB centric). [srinivas] As per my reading till now I disagree with him. Struts does not limit us to go for EJB 2) Structs framework is designed based on the Model-View-Controller architecture and it wraps the Controller part and does a little bit for the View, but does nothing for the Model. [srinivas] I understand the strong point of this framework is Controller and View and it is upto developer to have a model. No limitations by framework. 3) Must spend time to learn its syntax and structures [srinivas] Same with any other framework? 4)Even for a web application, developer still need to do the major work including business object, transaction management, and complicated connection pool management. [srinivas] I guess web app server provides transaction and connection pool management but still we need to develop our own business objects. 5) For EJB centric application, most work will be in EJB objects which has nothing to do with this framework [srinivas] Can EJB be part of this framework? 6) If use Struts framework, our product will rely on its libraries which may have bugs and not so liable like Sun's java libraries. So it may cause maintenance problems. ?? 7) If we choose EJB centric design, all the transaction, session, thread, connection pool, and resource management will be very well handled by the EJB container. In the case of Struts, web container is used only as request dispatcher or request controller plus the View part ?? thanks, Srinivas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Comments on Struts framework
I'm new to struts too. All this is my opinion, older hands may have better explanations. 1) Struts is a framework for a web application (web server centric) not for an Enterprise J2EE Application (EJB centric). [srinivas] As per my reading till now I disagree with him. Struts does not limit us to go for EJB You are correct. Struts presents the business model (your EJBs) to web users. Struts is the front end. It does not constrain your business logic in any way. I'm using it as a front for a Forte 4GL based system, where the struts layer communicates with the back end via XML. 2) Structs framework is designed based on the Model-View-Controller architecture and it wraps the Controller part and does a little bit for the View, but does nothing for the Model. [srinivas] I understand the strong point of this framework is Controller and View and it is upto developer to have a model. No limitations by framework. Correct. Struts is presentation only, it doesn't constrain the model. It is there to expose the model to a user, via a web interface. A little bit for the view? I think it does a lot. 3) Must spend time to learn its syntax and structures [srinivas] Same with any other framework? Same with any new style of development. Gains come with a better architecure. The architecture constrains the way you develop and so points you towards a better solution. 4)Even for a web application, developer still need to do the major work including business object, transaction management, and complicated connection pool management. [srinivas] I guess web app server provides transaction and connection pool management but still we need to develop our own business objects. Yep, as per the model/presentation split covered above. 5) For EJB centric application, most work will be in EJB objects which has nothing to do with this framework [srinivas] Can EJB be part of this framework? This framework is for presentation. Pick a different framework for your EJBs (isn't EJB in itself a framework?). Struts just presents the EJB functionality to the user...you have to do it somehow. EJBs aren't usable on their own... 6) If use Struts framework, our product will rely on its libraries which may have bugs and not so liable like Sun's java libraries. So it may cause maintenance problems. ?? Oooh look, it's the old we can build this ourselves with no bugs in vs lets uses this tried and tested code that many hundreds of developers are using in their own products argument. Methinks you'll get better support for bugs in Struts than bugs in Sun's code. 7) If we choose EJB centric design, all the transaction, session, thread, connection pool, and resource management will be very well handled by the EJB container. In the case of Struts, web container is used only as request dispatcher or request controller plus the View part ?? Correct. But that's not a reason not to use Struts. I would find the decision to use EJBs more difficult than the decision to use Struts. Hope my ramblings are useful! Tim. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
error
Hello, It's me again. Yesterday and this morning I posed a question about a bean:define tag problem. I was getting a Cannot find bean logonForm in scope null error. Somebody told me that i was getting this error because I was accessing the jsp directly. Well, now I'm using a login.jsp which validates that I'm in a database, if I am then it directs me to another jsp(f_Relocation.jsp). In this jsp, I have the bean:define tag. The code is as follows: In jsp: bean:define id=somebean name=logonForm property=selectBox1List type=java.util.ArrayList/ in struts-config file: form-bean name=logonForm type=com.walmart.telecomorder.formbeans.RelocationForm / action path=/logon type=com.walmart.telecomorder.formbeans.RelocationAction name=logonForm scope=session input=f_Relocation.jsp forward name=success path=/success.jsp / forward name=failure path=/failure.jsp / /action Does anybody have an idea as to why I'm getting the following eror? Cannot find bean logonForm in scope null error I thought that by going through the login.jsp (which invokes my actionservlet) and being directed from it to the f_Relcoation.jsp, I would avoid this error. Can somebody help? Thanks. Jose Casas E-Commerce Applications (501) 277-3112 [EMAIL PROTECTED] ** Notice: The area code for the Wal-Mart General Office has changed from 501 to 479. Please make sure that you are dialing 479 when making calls to any General Office location. ** This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: error
I thought that by going through the login.jsp (which invokes my actionservlet) Do you mean going through the login.do ? -Original Message- From: Jose Casas [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:40 PM To: 'Struts Users Mailing List' Subject: error Hello, It's me again. Yesterday and this morning I posed a question about a bean:define tag problem. I was getting a Cannot find bean logonForm in scope null error. Somebody told me that i was getting this error because I was accessing the jsp directly. Well, now I'm using a login.jsp which validates that I'm in a database, if I am then it directs me to another jsp(f_Relocation.jsp). In this jsp, I have the bean:define tag. The code is as follows: In jsp: bean:define id=somebean name=logonForm property=selectBox1List type=java.util.ArrayList/ in struts-config file: form-bean name=logonForm type=com.walmart.telecomorder.formbeans.RelocationForm / action path=/logon type=com.walmart.telecomorder.formbeans.RelocationAction name=logonForm scope=session input=f_Relocation.jsp forward name=success path=/success.jsp / forward name=failure path=/failure.jsp / /action Does anybody have an idea as to why I'm getting the following eror? Cannot find bean logonForm in scope null error I thought that by going through the login.jsp (which invokes my actionservlet) and being directed from it to the f_Relcoation.jsp, I would avoid this error. Can somebody help? Thanks. Jose Casas E-Commerce Applications (501) 277-3112 [EMAIL PROTECTED] ** Notice: The area code for the Wal-Mart General Office has changed from 501 to 479. Please make sure that you are dialing 479 when making calls to any General Office location. ** This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. ** -- 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]
Cannot find message resources - URGENT
Hi, I am getting the following error ServletException in:/delegateIds1.jsp] Cannot find message resources under key org.apache.struts.action.MESSAGE' I tried looking at the archive but none of the solution mentioned in there resolved it. I am using nightly build from 03/27. I am also using tiles defination to create my pages. Following is my JSP. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ page language=java% %@ taglib uri=/WEB-INF/struts-html.tld prefix=html% %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean% %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic% %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested % !--html:html-- % System.out.println(Inside delegateIds1.jsp); % html:form action=/delegatordelegatename.do CENTER TABLE border=0 cellpadding=0 cellspacing=0 TBODY TR TD colspan=12 align=center class=pageHeaderbean:message key=title.DELEGATOR_DELEGATE_DETAILS//TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=pageHeader TD nbsp;/TD TDnbsp;/TD TD align=centerbean:message key=prompt.LASTNAME//TD TD/TD TD class=pageHeader align=centernbsp;bean:message key=prompt.FIRSTNAME//TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=cellTooLightGrayBGFont9 TDnbsp;/TD TDbean:message key=prompt.DELEGATOR/nbsp; /TD TDhtml:text size=15 property=delegator.last_Name//TD TD/TD TDhtml:text size=15 property=delegator.first_Name//TD TDnbsp;/TD TD html:link name=FDAForm property=delegator.name titleKey=prompt.SEARCHDELEGATORNAME href=javascript:openWindow('searchPeople.jsp?') ? /html:link /TD TDnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/TD TDbean:message key=prompt.TITLE/nbsp;/TD TD html:select property=delegator.title_Desc html:options property=titles/ /html:select /TD TDnbsp;/TD /TR TR class=pageSubHeaderNOFont TDnbsp;input type=hidden name=Page value=/TD TDbean:message key=prompt.DELEGATE/nbsp; /TD TDhtml:text size=15 property=delegate.last_Name//TD TD/TD TDhtml:text size=15 property=delegate.first_Name//TD TDnbsp;/TD TD html:link name=FDAForm property=delegate.name titleKey=prompt.SEARCHDELEGATENAME href=javascript:openWindow('searchPeople.jsp'); ? /html:link /TD TDnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/TD TDbean:message key=prompt.TITLE/ nbsp;/TD TD html:select property=delegate.title_Desc html:options name=FDAForm property=titles/ /html:select /TD TDnbsp;/TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=cellTooLightGrayBG TD align=center colspan=3IMG src=images/showDetails.jpg width=123 height=20 border=0 onclick=javascript:Delegate('Go');/TD TD/TD TD/TD TD/TD TD/TD TD/TD TD colspan=4 align=centerIMG src=images/save1.jpg width=70 height=18 border=0/TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR /TBODY /TABLE /CENTER /html:form -Sanjay __ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Automatically reloading defination file of Tiles
Is there a way to configure so that if we make any change in application defination files for Tiles, it can get automatically be reloaded. Right now I have to reboot the web server every time I make changes to it and at times its really frustrating. -Sanjay __ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple Selects in a JSP
Subject: Re: Multiple Selects in a JSP From: Ken Holzer [EMAIL PROTECTED] === Thanks Larry, I was able to get this to work. I do have a related question. I have a jsp page that shows a history of activities I have the same two select fields on this jsp. Each row on the page is its own form so that they can be updated seperately. Is there a way to fill the second select list based on the value of the first list when the page is populated. I have gotten it to change when the 1st select is changed, but ai want it to display correctly when the page is first displayed. Thanks, Ken Maturo, Larry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi Ken, I have a Struts white paper, with an example of this. It also has lots of other examples as well. You can get it at: http://stealthis.athensgroup.com/presentations/ under Model Layer Framework. Basically you set up both lists in the Action Class and put them into the session or request (depends on how you set this action up in struts-config.xml). When the user selects an item in the first list it submits the form, and in your action you retrieve the variable from the form that gets set. This allows you to redo the second list to match the first list, and then you put the new list back into the session (or request) and go back to your jsp to redisplay the new list. -- Larry -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 12:55 PM To: [EMAIL PROTECTED] Subject: Re: Multiple Selects in a JSP Subject: Re: Multiple Selects in a JSP From: Ken Holzer [EMAIL PROTECTED] === Hi Larry, Do you have a sample app demoing this concept? I am not sure how the Action Form, Action Class and JSP should be setup. Are the lists built in the Action Form or the Action Class? Thanks for your help, Ken Maturo, Larry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi Ken, Yes, but by using a small amount of JavaScript: html:select property=orgId onchange='document.forms[0].submit()' html:options collection=orgList property=value labelProperty=shortName/ /html:select You should 0 out the string field orgId in your form bean so that you can tell a selection was made comparing it to 0. -- Larry Maturo [EMAIL PROTECTED] -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 4:25 PM To: [EMAIL PROTECTED] Subject: Multiple Selects in a JSP Subject: Multiple Selects in a JSP From: Ken Holzer [EMAIL PROTECTED] === I have two selects in my JSP and I want to be able to dynamically change the options of the 2nd select based on the choice selected from the 1st select. Is there a way to do that using the Struts tags? Thanks, Ken -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
error
Actually, no. this is what I have in my login.jsp html:form action=login.do and this is in the struts-config file: form-bean name=loginForm type=com.walmart.telecomorder.formbeans.LoginForm / action path=/login type=com.walmart.telecomorder.formbeans.LoginAction name=loginForm forward name=success path=/f_Relocation.jsp / forward name=failure path=/failure.jsp / /action Am I doing this all wrong? Thanks. I thought that by going through the login.jsp (which invokes my actionservlet) Do you mean going through the login.do ? -Original Message- From: Jose Casas [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:40 PM To: 'Struts Users Mailing List' Subject: error Hello, It's me again. Yesterday and this morning I posed a question about a bean:define tagproblem. I was getting a Cannot find bean logonForm in scope null error. Somebody told me that i was getting this error because I was accessing thejsp directly. Well, now I'm using a login.jsp which validates that I'm in adatabase, if I am then it directs me to another jsp(f_Relocation.jsp). In this jsp, I have the bean:define tag. The code is as follows: In jsp: bean:define id=somebean name=logonForm property=selectBox1List type=java.util.ArrayList/ in struts-config file: form-bean name=logonForm type=com.walmart.telecomorder.formbeans.RelocationForm / action path=/logon type=com.walmart.telecomorder.formbeans.RelocationAction name=logonForm scope=session input=f_Relocation.jsp forward name=success path=/success.jsp / forward name=failure path=/failure.jsp / /action Does anybody have an idea as to why I'm getting the following eror? Cannot find bean logonForm in scope null error I thought that by going through the login.jsp (which invokes my actionservlet) and being directed from it to the f_Relcoation.jsp, I wouldavoid this error.Can somebody help? Thanks. ** Notice: The area code for the Wal-Mart General Office has changed from 501 to 479. Please make sure that you are dialing 479 when making calls to any General Office location. ** This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot find message resources - URGENT
do u have the XML parsers in your class path. -Original Message- From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 10:50 PM To: Struts Users Mailing List Subject: Cannot find message resources - URGENT Hi, I am getting the following error ServletException in:/delegateIds1.jsp] Cannot find message resources under key org.apache.struts.action.MESSAGE' I tried looking at the archive but none of the solution mentioned in there resolved it. I am using nightly build from 03/27. I am also using tiles defination to create my pages. Following is my JSP. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ page language=java% %@ taglib uri=/WEB-INF/struts-html.tld prefix=html% %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean% %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic% %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested % !--html:html-- % System.out.println(Inside delegateIds1.jsp); % html:form action=/delegatordelegatename.do CENTER TABLE border=0 cellpadding=0 cellspacing=0 TBODY TR TD colspan=12 align=center class=pageHeaderbean:message key=title.DELEGATOR_DELEGATE_DETAILS//TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=pageHeader TD nbsp;/TD TDnbsp;/TD TD align=centerbean:message key=prompt.LASTNAME//TD TD/TD TD class=pageHeader align=centernbsp;bean:message key=prompt.FIRSTNAME//TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=cellTooLightGrayBGFont9 TDnbsp;/TD TDbean:message key=prompt.DELEGATOR/nbsp; /TD TDhtml:text size=15 property=delegator.last_Name//TD TD/TD TDhtml:text size=15 property=delegator.first_Name//TD TDnbsp;/TD TD html:link name=FDAForm property=delegator.name titleKey=prompt.SEARCHDELEGATORNAME href=javascript:openWindow('searchPeople.jsp?') ? /html:link /TD TDnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/TD TDbean:message key=prompt.TITLE/nbsp;/TD TD html:select property=delegator.title_Desc html:options property=titles/ /html:select /TD TDnbsp;/TD /TR TR class=pageSubHeaderNOFont TDnbsp;input type=hidden name=Page value=/TD TDbean:message key=prompt.DELEGATE/nbsp; /TD TDhtml:text size=15 property=delegate.last_Name//TD TD/TD TDhtml:text size=15 property=delegate.first_Name//TD TDnbsp;/TD TD html:link name=FDAForm property=delegate.name titleKey=prompt.SEARCHDELEGATENAME href=javascript:openWindow('searchPeople.jsp'); ? /html:link /TD TDnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/TD TDbean:message key=prompt.TITLE/ nbsp;/TD TD html:select property=delegate.title_Desc html:options name=FDAForm property=titles/ /html:select /TD TDnbsp;/TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=cellTooLightGrayBG TD align=center colspan=3IMG src=images/showDetails.jpg width=123 height=20 border=0 onclick=javascript:Delegate('Go');/TD TD/TD TD/TD TD/TD TD/TD TD/TD TD colspan=4 align=centerIMG src=images/save1.jpg width=70 height=18 border=0/TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR /TBODY /TABLE /CENTER /html:form -Sanjay __ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.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: Cannot find message resources - URGENT
Yes, I am using xerces.jar -Sanjay --- srinivas [EMAIL PROTECTED] wrote: do u have the XML parsers in your class path. -Original Message- From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 10:50 PM To: Struts Users Mailing List Subject: Cannot find message resources - URGENT Hi, I am getting the following error ServletException in:/delegateIds1.jsp] Cannot find message resources under key org.apache.struts.action.MESSAGE' I tried looking at the archive but none of the solution mentioned in there resolved it. I am using nightly build from 03/27. I am also using tiles defination to create my pages. Following is my JSP. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ page language=java% %@ taglib uri=/WEB-INF/struts-html.tld prefix=html% %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean% %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic% %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested % !--html:html-- % System.out.println(Inside delegateIds1.jsp); % html:form action=/delegatordelegatename.do CENTER TABLE border=0 cellpadding=0 cellspacing=0 TBODY TR TD colspan=12 align=center class=pageHeaderbean:message key=title.DELEGATOR_DELEGATE_DETAILS//TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=pageHeader TD nbsp;/TD TDnbsp;/TD TD align=centerbean:message key=prompt.LASTNAME//TD TD/TD TD class=pageHeader align=centernbsp;bean:message key=prompt.FIRSTNAME//TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=cellTooLightGrayBGFont9 TDnbsp;/TD TDbean:message key=prompt.DELEGATOR/nbsp; /TD TDhtml:text size=15 property=delegator.last_Name//TD TD/TD TDhtml:text size=15 property=delegator.first_Name//TD TDnbsp;/TD TD html:link name=FDAForm property=delegator.name titleKey=prompt.SEARCHDELEGATORNAME href=javascript:openWindow('searchPeople.jsp?') ? /html:link /TD TDnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/TD TDbean:message key=prompt.TITLE/nbsp;/TD TD html:select property=delegator.title_Desc html:options property=titles/ /html:select /TD TDnbsp;/TD /TR TR class=pageSubHeaderNOFont TDnbsp;input type=hidden name=Page value=/TD TDbean:message key=prompt.DELEGATE/nbsp; /TD TDhtml:text size=15 property=delegate.last_Name//TD TD/TD TDhtml:text size=15 property=delegate.first_Name//TD TDnbsp;/TD TD html:link name=FDAForm property=delegate.name titleKey=prompt.SEARCHDELEGATENAME href=javascript:openWindow('searchPeople.jsp'); ? /html:link /TD TDnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/TD TDbean:message key=prompt.TITLE/ nbsp;/TD TD html:select property=delegate.title_Desc html:options name=FDAForm property=titles/ /html:select /TD TDnbsp;/TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=cellTooLightGrayBG TD align=center colspan=3IMG src=images/showDetails.jpg width=123 height=20 border=0 onclick=javascript:Delegate('Go');/TD TD/TD TD/TD TD/TD TD/TD TD/TD TD colspan=4 align=centerIMG src=images/save1.jpg width=70 height=18 border=0/TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR /TBODY /TABLE /CENTER /html:form -Sanjay __ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ -- === message truncated === __ Do You Yahoo!? Yahoo!
RE: error
html:form action=/login.do should be the right way of accessing login action hope this helps, srinivas. -Original Message- From: Jose Casas [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 11:07 PM To: 'Struts Users Mailing List' Subject: error Actually, no. this is what I have in my login.jsp html:form action=login.do and this is in the struts-config file: form-bean name=loginForm type=com.walmart.telecomorder.formbeans.LoginForm / action path=/login type=com.walmart.telecomorder.formbeans.LoginAction name=loginForm forward name=success path=/f_Relocation.jsp / forward name=failure path=/failure.jsp / /action Am I doing this all wrong? Thanks. I thought that by going through the login.jsp (which invokes my actionservlet) Do you mean going through the login.do ? -Original Message- From: Jose Casas [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:40 PM To: 'Struts Users Mailing List' Subject: error Hello, It's me again. Yesterday and this morning I posed a question about a bean:define tagproblem. I was getting a Cannot find bean logonForm in scope null error. Somebody told me that i was getting this error because I was accessing thejsp directly. Well, now I'm using a login.jsp which validates that I'm in adatabase, if I am then it directs me to another jsp(f_Relocation.jsp). In this jsp, I have the bean:define tag. The code is as follows: In jsp: bean:define id=somebean name=logonForm property=selectBox1List type=java.util.ArrayList/ in struts-config file: form-bean name=logonForm type=com.walmart.telecomorder.formbeans.RelocationForm / action path=/logon type=com.walmart.telecomorder.formbeans.RelocationAction name=logonForm scope=session input=f_Relocation.jsp forward name=success path=/success.jsp / forward name=failure path=/failure.jsp / /action Does anybody have an idea as to why I'm getting the following eror? Cannot find bean logonForm in scope null error I thought that by going through the login.jsp (which invokes my actionservlet) and being directed from it to the f_Relcoation.jsp, I wouldavoid this error.Can somebody help? Thanks. ** Notice: The area code for the Wal-Mart General Office has changed from 501 to 479. Please make sure that you are dialing 479 when making calls to any General Office location. ** This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. ** -- 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]
error
I changed my action to action=/login.do. I still get the Cannot find bean logonForm in scope null error. Thanks for your suggestion. html:form action=/login.do should be the right way of accessing login actionhope this helps, srinivas. ** Notice: The area code for the Wal-Mart General Office has changed from 501 to 479. Please make sure that you are dialing 479 when making calls to any General Office location. ** This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Setting Color inside logic:iterate
Hi, is there anyway to set the color of a row from the bean being iterated? My code is given below: logic:iterate id=loan name=loans type=com.mortgagehub.cba.business.LoanSummaryBean tr td align=left valign=middle colspan=1 font size=2 color=#00 face=Verdana bean:write name=loan property=status filter=true/ /font /td /logic:iterate loan has a property called color that I'd like to use instead of =#00. Pls tell me how to do it. Thnx, GB -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Setting Color inside logic:iterate
Bhaskar, Try looking at http://www.husted.com/struts/resources.htm#taglibs from Amarda. -Sanjay --- Bhaskar Gopalan [EMAIL PROTECTED] wrote: Hi, is there anyway to set the color of a row from the bean being iterated? My code is given below: logic:iterate id=loan name=loans type=com.mortgagehub.cba.business.LoanSummaryBean tr td align=left valign=middle colspan=1 font size=2 color=#00 face=Verdana bean:write name=loan property=status filter=true/ /font /td /logic:iterate loan has a property called color that I'd like to use instead of =#00. Pls tell me how to do it. Thnx, GB -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Setting Color inside logic:iterate
Try this logic:iterate id=loan name=loans type=com.mortgagehub.cba.business.LoanSummaryBean tr td align=left valign=middle colspan=1 font size=2 color=%=loan.color()% face=Verdana bean:write name=loan property=status filter=true/ /font /td /logic:iterate -Original Message- From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:30 PM To: Struts Group (E-mail) Subject: Setting Color inside logic:iterate Hi, is there anyway to set the color of a row from the bean being iterated? My code is given below: logic:iterate id=loan name=loans type=com.mortgagehub.cba.business.LoanSummaryBean tr td align=left valign=middle colspan=1 font size=2 color=#00 face=Verdana bean:write name=loan property=status filter=true/ /font /td /logic:iterate loan has a property called color that I'd like to use instead of =#00. Pls tell me how to do it. Thnx, GB -- 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: Setting Color inside logic:iterate
sorry that should be loan.getColor() -Original Message- From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:41 PM To: 'Struts Users Mailing List' Subject: RE: Setting Color inside logic:iterate Try this logic:iterate id=loan name=loans type=com.mortgagehub.cba.business.LoanSummaryBean tr td align=left valign=middle colspan=1 font size=2 color=%=loan.color()% face=Verdana bean:write name=loan property=status filter=true/ /font /td /logic:iterate -Original Message- From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:30 PM To: Struts Group (E-mail) Subject: Setting Color inside logic:iterate Hi, is there anyway to set the color of a row from the bean being iterated? My code is given below: logic:iterate id=loan name=loans type=com.mortgagehub.cba.business.LoanSummaryBean tr td align=left valign=middle colspan=1 font size=2 color=#00 face=Verdana bean:write name=loan property=status filter=true/ /font /td /logic:iterate loan has a property called color that I'd like to use instead of =#00. Pls tell me how to do it. Thnx, GB -- 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: error
try setting scope attribute in action definition in struts-config.xml action path=/login type=com.walmart.telecomorder.formbeans.LoginAction scope=session name=loginForm forward name=success path=/f_Relocation.jsp / forward name=failure path=/failure.jsp / /action -Original Message- From: Jose Casas [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 11:32 PM To: 'Struts Users Mailing List' Subject: error I changed my action to action=/login.do. I still get the Cannot find bean logonForm in scope null error. Thanks for your suggestion. html:form action=/login.do should be the right way of accessing login actionhope this helps, srinivas. ** Notice: The area code for the Wal-Mart General Office has changed from 501 to 479. Please make sure that you are dialing 479 when making calls to any General Office location. ** This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. ** -- 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: error
Jose, What we are trying to say is, in order to be able to see struts bean on your jsp page you need to make the request through Struts. you should call .do on your browser - http://localhost:8080/login.do The controler (actionservlet) will look into your struts-config and get the action /login. The action has the LoginAction as the Model and login.jsp as the View. If you want your login.jsp to see your struts bean, your config file should look like this. action path=/login type=com.walmart.telecomorder.formbeans.LoginAction name=loginForm forward name=success path=/login.jsp / /action good luck, Leonardo -Original Message- From: Jose Casas [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 4:07 PM To: 'Struts Users Mailing List' Subject: error Actually, no. this is what I have in my login.jsp html:form action=login.do and this is in the struts-config file: form-bean name=loginForm type=com.walmart.telecomorder.formbeans.LoginForm / action path=/login type=com.walmart.telecomorder.formbeans.LoginAction name=loginForm forward name=success path=/f_Relocation.jsp / forward name=failure path=/failure.jsp / /action Am I doing this all wrong? Thanks. I thought that by going through the login.jsp (which invokes my actionservlet) Do you mean going through the login.do ? -Original Message- From: Jose Casas [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:40 PM To: 'Struts Users Mailing List' Subject: error Hello, It's me again. Yesterday and this morning I posed a question about a bean:define tagproblem. I was getting a Cannot find bean logonForm in scope null error. Somebody told me that i was getting this error because I was accessing thejsp directly. Well, now I'm using a login.jsp which validates that I'm in adatabase, if I am then it directs me to another jsp(f_Relocation.jsp). In this jsp, I have the bean:define tag. The code is as follows: In jsp: bean:define id=somebean name=logonForm property=selectBox1List type=java.util.ArrayList/ in struts-config file: form-bean name=logonForm type=com.walmart.telecomorder.formbeans.RelocationForm / action path=/logon type=com.walmart.telecomorder.formbeans.RelocationAction name=logonForm scope=session input=f_Relocation.jsp forward name=success path=/success.jsp / forward name=failure path=/failure.jsp / /action Does anybody have an idea as to why I'm getting the following eror? Cannot find bean logonForm in scope null error I thought that by going through the login.jsp (which invokes my actionservlet) and being directed from it to the f_Relcoation.jsp, I wouldavoid this error.Can somebody help? Thanks. ** Notice: The area code for the Wal-Mart General Office has changed from 501 to 479. Please make sure that you are dialing 479 when making calls to any General Office location. ** This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. ** -- 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]
ActionForward Q for Struts 1.1 gurus
We have a resource management scheme that will take a relative pathed resource, and for a particular user (based on some session variables) will resolve this relative pathed resource into an absolute resource (i.e. if the user belongs to ACME company, we will resolve the resource jsp/SomePage.jsp into /brands/acme/jsp/SomePage.jsp). I want to be able to define my forward definitions as relative paths, and somehow insert our resource manager in between the returning of the (relative) ActionForward from the Action.execute() call and the actual RequestDispatcher forwarding mechanism. The only bit of information I would need to be able to resolve the resource is the HttpServletRequest. Is this scheme even possible in Struts 1.1? If not, is there an alternate to this that doesn't involve me having forwards for every possible configuration? Thanks, Heath
RE: about ArrayList
Why don't you try it and tell us what happens? Mark -Original Message- From: Kumari, Ramana [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 12:16 PM To: Struts Users Mailing List Subject: about ArrayList Hi My question is not really related to Struts, but i thought i could ask you guys about this so that i can get some answer this might help some developers. When i looked at the source code for Sun's Java class ArrayList i found something interesting. The private member of the ArrayList class, which holds the objects added to list, is transient which means indication to the Java virtual machine that the indicated variable is not part of the persistent state of the object. So My question is if i have an ArrayList object, can i save this object into a file read the same object from the file without loosing data ? (Keep in mind the member variable, private transient Object elementData[]; , which holds tha actual data is transient in ArrayList) Please see below for Some code from java.util.ArrayList.java Thanks in advance Ramana public class ArrayList extends AbstractList implements List, Cloneable, java.io.Serializable { private transient Object elementData[]; private int size; public ArrayList(int initialCapacity) { super(); this.elementData = new Object[initialCapacity]; } public ArrayList() { this(10); } public ArrayList(Collection c) { size = c.size(); elementData = new Object[(size*110)/100]; // Allow 10% room for growth c.toArray(elementData); } public void trimToSize() { modCount++; int oldCapacity = elementData.length; if (size oldCapacity) { Object oldData[] = elementData; elementData = new Object[size]; System.arraycopy(oldData, 0, elementData, 0, size); } } } -- 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: lajug - Why Struts - Ryan Norman
On Wed, 2002-03-27 at 09:48, Ryan Norman wrote: Hi, I am Ryan Norman. Are there frameworks available in other commercial Java Web Servers like Web Sphere, iPlanet, JRun, etc. . If so why should somebody use struts framework rather than using the Web Server's native framework? . Are there people who are using struts with commercial Java Web Server like Web Sphere, iPlanet, JRun, etc. Well, to answer a question with a question: most operating systems like Windows, Solaris, Linux, Mac OS, etc., provide native frameworks for doing I/O, GUI, settings/configuration, threading, etc. Why use the Java packages? --Chris -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem with commons-logging and -security in struts
When I run tomcat with security (-security) the console puts out the message logClassName=null and struts throws an error trying to load my application (see below). The struts and commons-* jars are in my WEB-INF\lib directory and are granted java.security.AllPermission in catalina.policy. What needs to be done to get this working? The tomcat developers say it is a struts/commons problem. I am using tomcat 4.0.3 and struts nightly 1/2/02. Thanks. -- org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:464) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja va:273) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:338) at org.apache.commons.digester.Digester.init(Digester.java:309) at org.apache.struts.action.ActionServlet.initDigester(ActionServlet.java:1576) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1755) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:496) at com.athensgroup.autoweb2.action.AutowebActionServlet.init(AutowebActionServl et.java:50) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 6) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3266) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
what does RT Expr
in the tag docs I see a [RT Expr] in a lot of the attribute definitions. What does this mean? I can't find a def anywhere in the struts docs. thanks bill page [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: what does RT Expr
This is a JSP thing. It stands for Runtime Expression, and indicates that the value of a JSP tag attribute is to be evaluated at runtime. -Original Message- From: Bill Page [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:11 PM To: Struts Users Mailing List (E-mail) Subject: what does RT Expr in the tag docs I see a [RT Expr] in a lot of the attribute definitions. What does this mean? I can't find a def anywhere in the struts docs. thanks bill page [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: [Q] Using html:image tag for submit button
it works fine for me ... html:form action=/pub_logon ... html:image property=camp src=/images/butn_go_white_bg.gif alt=campaign / ... -Original Message- From: Park, Dongwon [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 5:06 PM To: Struts Users Mailing List Subject: [Q] Using html:image tag for submit button All, I am trying to use html:image for submit button but it is not working for me. Anybody has some simple example or know better way to make submit button with image ? Dongwon Park -- 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: what does RT Expr
thanks, that is what I was guessing, but then can you tell me why this doesn't work: html:link page=%=ActionDisplay%?nextsection=testsbean:message key=jobbrief.label.section.tests//html:link I end up with the link as %=ActionDisplay% rather than the value of it. I'm try to include the same jsp in different parent jsps, but with the links going to two different actions. Actually the action is the same but the forwards are different. I might be going about this wrong of course. The bottom line is that this common jsp is embedded in two different pages. I need for the action to go to two different places on success, so I created a second action mapping in struts config. Coming down one path gets me to mapping x and the other to mapping y. Both invoke the same action but on success forward to two different jsps. TIA bill -Original Message- From: Dan Cancro [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 5:14 PM To: 'Struts Users Mailing List' Subject: RE: what does RT Expr This is a JSP thing. It stands for Runtime Expression, and indicates that the value of a JSP tag attribute is to be evaluated at runtime. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [Q] Using html:image tag for submit button
I had this one and works fine html:submit property=action value=Next/ And then, changed it to use gif image and the following is not working. html:image property=action src=/images/btn_action.gif alt=action value=Next/ -Original Message- From: Leonardo Maciel [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 5:16 PM To: 'Struts Users Mailing List' Subject: RE: [Q] Using html:image tag for submit button it works fine for me ... html:form action=/pub_logon ... html:image property=camp src=/images/butn_go_white_bg.gif alt=campaign / ... -Original Message- From: Park, Dongwon [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 5:06 PM To: Struts Users Mailing List Subject: [Q] Using html:image tag for submit button All, I am trying to use html:image for submit button but it is not working for me. Anybody has some simple example or know better way to make submit button with image ? Dongwon Park -- 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]
Cannot find message resources - URGENT
Hi Gurus, Help me out with this one pls. -Sanjay --- Sanjay Choudhary [EMAIL PROTECTED] wrote: Yes, I am using xerces.jar -Sanjay --- srinivas [EMAIL PROTECTED] wrote: do u have the XML parsers in your class path. -Original Message- From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 10:50 PM To: Struts Users Mailing List Subject: Cannot find message resources - URGENT Hi, I am getting the following error ServletException in:/delegateIds1.jsp] Cannot find message resources under key org.apache.struts.action.MESSAGE' I tried looking at the archive but none of the solution mentioned in there resolved it. I am using nightly build from 03/27. I am also using tiles defination to create my pages. Following is my JSP. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ page language=java% %@ taglib uri=/WEB-INF/struts-html.tld prefix=html% %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean% %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic% %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested % !--html:html-- % System.out.println(Inside delegateIds1.jsp); % html:form action=/delegatordelegatename.do CENTER TABLE border=0 cellpadding=0 cellspacing=0 TBODY TR TD colspan=12 align=center class=pageHeaderbean:message key=title.DELEGATOR_DELEGATE_DETAILS//TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=pageHeader TD nbsp;/TD TDnbsp;/TD TD align=centerbean:message key=prompt.LASTNAME//TD TD/TD TD class=pageHeader align=centernbsp;bean:message key=prompt.FIRSTNAME//TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=cellTooLightGrayBGFont9 TDnbsp;/TD TDbean:message key=prompt.DELEGATOR/nbsp; /TD TDhtml:text size=15 property=delegator.last_Name//TD TD/TD TDhtml:text size=15 property=delegator.first_Name//TD TDnbsp;/TD TD html:link name=FDAForm property=delegator.name titleKey=prompt.SEARCHDELEGATORNAME href=javascript:openWindow('searchPeople.jsp?') ? /html:link /TD TDnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/TD TDbean:message key=prompt.TITLE/nbsp;/TD TD html:select property=delegator.title_Desc html:options property=titles/ /html:select /TD TDnbsp;/TD /TR TR class=pageSubHeaderNOFont TDnbsp;input type=hidden name=Page value=/TD TDbean:message key=prompt.DELEGATE/nbsp; /TD TDhtml:text size=15 property=delegate.last_Name//TD TD/TD TDhtml:text size=15 property=delegate.first_Name//TD TDnbsp;/TD TD html:link name=FDAForm property=delegate.name titleKey=prompt.SEARCHDELEGATENAME href=javascript:openWindow('searchPeople.jsp'); ? /html:link /TD TDnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/TD TDbean:message key=prompt.TITLE/ nbsp;/TD TD html:select property=delegate.title_Desc html:options name=FDAForm property=titles/ /html:select /TD TDnbsp;/TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR TR class=cellTooLightGrayBG TD align=center colspan=3IMG src=images/showDetails.jpg width=123 height=20 border=0 onclick=javascript:Delegate('Go');/TD TD/TD TD/TD TD/TD TD/TD TD/TD TD colspan=4 align=centerIMG src=images/save1.jpg width=70 height=18 border=0/TD /TR TR TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD TD/TD TD/TD TD/TD TD/TD TD/TD TDnbsp;/TD TDnbsp;/TD TDnbsp;/TD /TR /TBODY /TABLE /CENTER
Is this ok architecture for struts?
I'm wondering if this a decent design architecture for a non-EJB web application using Struts. I'd appreciate any comments or advice. (Does it break any J2EE principles or not follow any, etc.) For this small example, this architecture is just for wanting to display a list of employees in a JSP page: BusinessDB Object I - database query returns ArrayList of EmployeeBean objects (these EmployeeBean objects have different datatype members other than String). Business Object II - makes call to above Buisness1 Object to get the ArrayList of EmployeeBeans. Now iterates through this List and makes a new ArrayList of EmployeeForm objects that have proper String representations of the EmployeeBean datatypes (ie- birthDate in 08/11/1969 format, double salary in currency format, etc). EmployeeAction Object (using EmployeeForm object ) - typical struts action. Makes call to above Business object to get ArrayList of EmployeeForm objects and puts them into the request or session JSP use iterate tag and bean tag to display the EmployeeForm properties -- Rick mailto:[EMAIL PROTECTED] Any man, in the right situation, is capable of murder. But not any man is capable of being a good camper. So, murder and camping are not as similar as you might think. -Jack Handey -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot preload ActionServlet in JRun3.1using Struts1.1-b1
Howdy, Thanks for the reply. By looking at the code in org.apache.commons.logging.LogFactory.findClassLoader() it seems to be doing what you've suggested. I've found similar messages with this same problem in the struts-dev list. The subject is 'Problems with 1.1b1'. It seems Tomcat3.3a is having the same problem. Tomcat4.0.3 works fine. The suggested workaround was to stick the commons-logging.jar in the %TOMCAT_HOME%\lib\common folder. I've tried the similar workaround in JRun3.1 by sticking the jar file in its %JRUN_HOME%\lib\ext folder, but then I run into the expected problem of cascading ClassNotFoundExceptions for struts classes...particularly for its MessageResources classes. It seems these older servlet engines...may not be fully J2EE compliant when it comes to providing the correct ClassLoader when loading/initializing a servlet from preload. I'm guessing the servlet-engine is not setting the ClassLoader in Thread.setContextClassLoader(ClassLoader) when initializing a servlet from a preload. If this is the case, do you think if i set the ClassLoader myself in the ActionServlet's init() method this problem may be fixed? i.e. public void init() { Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader( )); log = LogFactory.getLog(this.getClass()); ... } -ronel -Original Message- From: Jesse Alexander (KADA 12) [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 2:00 AM To: Struts Users Mailing List Subject: RE: Cannot preload ActionServlet in JRun3.1using Struts1.1-b1 Hi, having done some classloading lately... I would say it is a standard issue with J2EE-compatible servlet-engines. It depends where you have the struts- and logging-jars. If they are in one of the parent-classloader-paths then they cannot load the classes from WEB-INF/lib (and classes) as long as they use the old class.forName(class_name) method. As both libraries that you mention are opensource, why not try to change the code to use either class.forName(class_name, true, Thread.currentThread().getContextClassLoader()); or Thread.currentThread().getContextClassLoader().loadClass(class_name); hope this helps Alexander -Original Message- From: Ronel Sumibcay [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. März 2002 00:32 To: 'Struts Users Mailing List' Subject: Cannot preload ActionServlet in JRun3.1using Struts1.1-b1 This may be a problem in JRun's web app class loading implementation or in the commons-logging implementation. The exception occurs if you try to preload the ActionServlet. But if the ActionServlet is initialized from a request it is loaded just fine. It looks like the org.apache.commons.logging.LogFactory.findClassLoader() maybe returning the wrong ClassLoader when called when an ActionServlet is being preloaded...all the struts and commons-*.jar files are in the usual web-inf/lib folder. This is a show stopper for those who are extending ActionServlet to do some extra initialization which needs to be initialized before anything else. Its forcing me to go back to a struts nightly build that does not have the commons-logging implementation. If this a bug in org.apache.commons.logging.LogFactory.findClassLoader(), then would the fix cause changes in struts or would i simply have to get the latest commons-logging.jar if and when this is addressed? Thanks. -ronel 03/25 14:44:34 error (JRun) Could not pre-load servlet: action [javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet] [1]org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:331) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Unknown Source) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe rvletLoader.java:197) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe rvletLoader.java:161) at allaire.jrun.servlet.JRunServletLoader.loadServlet(../servlet/JRunServletLoa der.java:149) at allaire.jrun.servlet.JRunSE.getServletReference(../servlet/JRunSE.java:1705) at allaire.jrun.servlet.JRunSE.preloadServlets(../servlet/JRunSE.java:1371) at allaire.jrun.servlet.JRunSE.init(../servlet/JRunSE.java:236) at allaire.jrun.ServletService.init(../ServletService.java:66) at allaire.jrun.ServletService.init(../ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe rvletLoader.java:203) at
Re: Does this tag exist architecture [was] This hopefully is a simplequestion that has been dealt with
I would argue that it is quite easy to reuse your regular classes as struts form beans. This strategy may involve putting code into your so-called 'business' classes who's purpose is to help with certain kinds of 'presentation' level logic. The real question is, do you want a 2-tier architecture or a 3-tier architecture? In the two-tier approach, struts is both the business and presentation tier (tier 1) and there is a data tier (tier 2) that handles the communication with the database. In the 3-tier approach struts is strictly a presentation layer that can be 'plugged into' any kind of back-end business tier. So that's really the question. Do you need the modularity of a 3-tier architecture(and are you willing to pay the price for it)? This architecture is very popular these days, but I contend that it is overkill for most real-world projects. It is not hard at all to add methods to you so-called business beans that support setXXX(String) and getXXX() : String, and to modify your 'native' methods as per example setXXXAsCalendar(Calendar) and getXXXAsCalendar() : Calendar. Having done this sort of thing, your classes can be reused, and you don't have to do all the extra shuffling. You may need to put some discipline into your design so that the presentation aspects and business-logic aspects are not confusing (especially if you are re-using the bean classes in some other way that is not at all struts-related). All in all, I think it is quite doable, and for many projects is a perfectly reasonable approach (although perhaps not as 'sexy'). Vlad From: Rick Reumann [EMAIL PROTECTED] Reply-To: Rick Reumann [EMAIL PROTECTED] To: Maturo, Larry [EMAIL PROTECTED], Struts Users Mailing List [EMAIL PROTECTED] Subject: Does this tag exist architecture [was] This hopefully is a simple question that has been dealt with Date: Fri, 29 Mar 2002 12:05:14 -0500 MIME-Version: 1.0 Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id MHotMailBE6DEB89002A4136E855C0123183D1B80; Fri, 29 Mar 2002 09:12:41 -0800 Received: (qmail 15319 invoked by uid 97); 29 Mar 2002 17:05:26 - Received: (qmail 15308 invoked from network); 29 Mar 2002 17:05:25 - From struts-user-return-30889-aphelionx Fri, 29 Mar 2002 09:13:51 -0800 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Struts Users Mailing List struts-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] X-Mailer: The Bat! (v1.60) Personal X-Priority: 3 (Normal) Message-ID: [EMAIL PROTECTED] In-Reply-To: 47599681A9BA574FBCA93E884DD9114135C615@ZEUS References: 47599681A9BA574FBCA93E884DD9114135C615@ZEUS X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Friday, March 29, 2002, 11:19:25 AM, Maturo, Larry wrote: ML We define a separate bean that mirrors our ML EmployeeBean, but has string fields. We then ML get a list of EmployeeBeans and manually convert ML them to a list of EmployeeStringBeans. :-) It's ML a pain, but it works. Note that we only populate ML the fields we actually plan on displaying, since ML it is pointless to populate the other fields. Thanks for your feedback Larry. (By the way nice job on that AthensGroup paper on Struts if you wrote it). Currently I already have an EmployeeForm bean (all String fields) and an EmployeeBean (Strings, ints, etc.). The business tier does the DB query and returns an ArrayList of EmployeeBeans. Now the question becomes what next in order to iterate through this list and display the EmployeeBean fields in a nice way (ie. proper date format, currency format, etc.) ?... I'm assuming from your reply that you might have extra logic somewhere that will take that ArrayList of EmployeeBeans and loop through the list and populate a new List of EmployeeForm beans. In this step calls will be made to make sure the Strings in each EmployeeForm object are correctly formatted. I see how this idea will work, although it seems a shame that you have a perfectly good ArrayList of Employee objects and now you are iterating through it just to populate another ArrayList of Employee objects with all String fields. Before I looked into Struts I didn't see the big deal of iterating though this list of regular EmployeeBean objects and then where formatting was needed just call my helper util class to change the format. For example: %= RickUtils.displayDateAsString( bean.getBirthDate() ) % I know, everyone says the above it bad because you now have scriplets in your JSP code. Still, though, this seems to make more sense to me than to going through the overhead of looping through possibly a large ArrayList of beans in order to just populate a similar ArrayList with just String fields. I
RE: what does RT Expr
On the contrary it means request time expression. Vimal --- Dan Cancro [EMAIL PROTECTED] wrote: This is a JSP thing. It stands for Runtime Expression, and indicates that the value of a JSP tag attribute is to be evaluated at runtime. -Original Message- From: Bill Page [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:11 PM To: Struts Users Mailing List (E-mail) Subject: what does RT Expr in the tag docs I see a [RT Expr] in a lot of the attribute definitions. What does this mean? I can't find a def anywhere in the struts docs. thanks bill page [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!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: WebSphere3.5.4 and Struts Example Application
You should be able to search the archives for Visual Age for Java or WebSphere, there is a small change you have to make to the FormBean Class or the Action class. I can't remember which right now and I don't access to our code. But I'm pretty sure this question was answered on this list. Sorry about being so vague Danny -Original Message- From: kelly lan [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 8:30 PM To: [EMAIL PROTECTED] Subject: WebSphere3.5.4 and Struts Example Application Hi, I install struts example with WebSphere3.5.4 After done , I can successfully access http://localhost/struts-example/index.jsp¡±. When I click ¡°A Walking Tour of the Example Application¡±,it work successfully. However, I got error messages when I click¡±Register with the MailResder Demonstration Application.¡±or¡±Log on to the MailReader Demonstration Application¡± The error messages are same : Error 500 request error£ºhttp://localhost/struts-example/editRegistration.do message£º Server caught unhandled exception from servlet [action]: Server caught unhandled exception from servlet [jsp11]: cant remove Attributes from request scope I have been struggling for almost a week,but I cann't get the reason. Thanks for your help __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.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]
Weird problem with tiles and struts forward.
Subject: Weird problem with tiles and struts forward. From: Jack Gao [EMAIL PROTECTED] === Hi, List I'm new with this struts and tiles issues. My problem is: when define a jsp page in struts-config.xml to forward to if success or failed, it works fine. But if I jump to tiles, and forward to a definition, I keep to get servlet exception. My definition xml file has a declare like this: definition name=register.success extends=mainLayout put name=body value=/success.jsp / /definition And in my struts-config.xml I delcare like this: actionpath=/register type=xxx.xxx.xxx.RegisterAction name=registerForm scope=request validate=false forward name=success path=register.success/ forward name=failure path=register.failure/ /action The mainLayout works fine, and I got exception when it forward to next page. java.lang.IllegalArgumentException: Path register.success does not start with a / character at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application Context.java:570) at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli cationContextFacade.java:174) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96 5) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProces sor.java:408) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java: 170) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:484) Any idea? Thanks a lot! Jack -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
getter method of bean not found
Hello, Sometimes, the bean:write tag (and presumably others) can't find a certain property on one of my beans. The bean is User, and the property is id. The tag is nested inside a set of logic:iterate tags which fish each element out of a List. Specifically, the error is: javax.servlet.jsp.JspException: No getter method for property id of bean element at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517) One thing that's strange is that the bean being returned does indeed have a getId() method. Another thing that's strange is that it works sometimes. It'll work fine for awhile, then at some point when I run a build and re-deploy the app, it'll puke. It doesn't complain about any of the other properties on this bean, nor does it complain about any properties on any other beans, all of which have equivalent id properties. One other thing: this started happening as soon as I replaced my home-brew model-persistence framework with Torque from Jakarta. Originally, I would have just a User.java class, with all the getters and setters. Now, I have a nearly empty User.java class that extends the autogenerated BaseUser.java class, which has all the getters and setters. Has anyone seen a problem like this using Torque and Struts? Thanks! Cheers, David David A. Ventimiglia Wells Fargo Private Client Services (415) 396-0414 (work)
RE: getter method of bean not found
Well, anyway... Changing the property from id to userId seems to correct the problem, which probably has nothing to do with Struts and everything to do with reflection/introspection. id is probably a dangerous name anyway. Just something to watch out for. Cheers, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 6:37 PM To: [EMAIL PROTECTED] Subject: getter method of bean not found Hello, Sometimes, the bean:write tag (and presumably others) can't find a certain property on one of my beans. The bean is User, and the property is id. The tag is nested inside a set of logic:iterate tags which fish each element out of a List. Specifically, the error is: javax.servlet.jsp.JspException: No getter method for property id of bean element at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517) One thing that's strange is that the bean being returned does indeed have a getId() method. Another thing that's strange is that it works sometimes. It'll work fine for awhile, then at some point when I run a build and re-deploy the app, it'll puke. It doesn't complain about any of the other properties on this bean, nor does it complain about any properties on any other beans, all of which have equivalent id properties. One other thing: this started happening as soon as I replaced my home-brew model-persistence framework with Torque from Jakarta. Originally, I would have just a User.java class, with all the getters and setters. Now, I have a nearly empty User.java class that extends the autogenerated BaseUser.java class, which has all the getters and setters. Has anyone seen a problem like this using Torque and Struts? Thanks! Cheers, David David A. Ventimiglia Wells Fargo Private Client Services (415) 396-0414 (work) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Setting Color inside logic:iterate
the simples way how to do this u should use : td color=bean:write name=loan property=color/ cell content as in urs letter/td - Original Message - From: Bhaskar Gopalan [EMAIL PROTECTED] To: Struts Group (E-mail) [EMAIL PROTECTED] Sent: Saturday, March 30, 2002 5:30 AM Subject: Setting Color inside logic:iterate Hi, is there anyway to set the color of a row from the bean being iterated? My code is given below: logic:iterate id=loan name=loans type=com.mortgagehub.cba.business.LoanSummaryBean tr td align=left valign=middle colspan=1 font size=2 color=#00 face=Verdana bean:write name=loan property=status filter=true/ /font /td /logic:iterate loan has a property called color that I'd like to use instead of =#00. Pls tell me how to do it. Thnx, GB -- 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: Re[2]: Does this tag exist architecture [was] This hopefully is a simplequestion that has been dealt with
There is one problem/issue with the EmployeeForm objects. It is likely the attributes for EmployeeForm will have to be all Strings after all. The reason is as follows: Let's say you have a web form where you enter new employee information. This form has a numeric field. Let's say it's something like vacationDaysPerYear of type Integer. If the user enters in a String into this field, the Struts controller servlet (ActionServlet) will try to call the SetVacationDaysPerYear(String) setter method. This method will throw an exception, which will come back to the user as an ugly exception stack trace(instead of a nice message saying 'The number of vacation days must be a valid integer'. One possible solution to this problem is to use Javascript to validate the data types of data-entry fields right on the browser. Many don't like this approach. Another possible solution is to make a custom extension to the controller servlet that does something more user- friendly when such an error occurs. Again, some would not like this approach because they are reluctant to make modifications to framework code. The last solution I can think of is to make all the attributes of the bean Strings. Then you would allow the vacationDaysPerYear property in the form bean to be populated by the controller servlet to, for example, 'hello world'. In the bean's validate method, you would check for data-type integrity. As far as the business/data code is concerned, it should never use the get/setVacationDaysPerYear methods, which operate only on Strings. This tier would always use the get/setVacationDaysPerYearAsInteger methods. However, there is an implicit assumption that the String which is used to store the data behind the scenes has to be validated by the struts layer before it ever gets to the business/data tier. Basically, part of your EmployeeBean would look like the following in this way of doing things... public class EmployeeBean extends ActionForm { private String vacationDaysPerYear //really an integer public String getVacationDaysPerYear() { return vacationDaysPerYear; } public void setVacationDaysPerYear(String vacationDaysPerYear) { this.vacationDaysPerYear = vacationDaysPerYear; } public Integer getVacationDaysPerYearAsInt() { //stringToInteger is a utility method return stringToInteger(vacationDaysPerYear); } public void setVacationDaysPerYear( Integer vacationDaysPerYear) { //integerToString is a utility method this.vacationDaysPerYear = integerToString(vacationDaysPerYear); } public ActionError[] validate() { //check that vacationDaysPerYear is a valid Integer } } The data type integrity of the bean's non-string fields is therefore a potential issue, since there are public methods that allow this value to be set to any string, and it is the programmers responsibility to make sure an invalid value never stays there for long, and certainly never makes it to the business/data tier. Sloppy programming can introduce bugs, and the design itself may seem messy to someone who wants very clear separation between presentation and business logic. Depending on how you feel about this whole thing, you may decide to keep your web-tier beans and your data/business beans as separate entities. You should really think about what your application's requirements are (now, and potentially in the future) before you make a decision. From: Rick Reumann [EMAIL PROTECTED] Reply-To: Rick Reumann [EMAIL PROTECTED] To: Vladimir Levin [EMAIL PROTECTED] Subject: Re[2]: Does this tag exist architecture [was] This hopefully is a simple question that has been dealt with Date: Fri, 29 Mar 2002 23:41:40 -0500 MIME-Version: 1.0 Received: from [161.58.154.244] by hotmail.com (3.2) with ESMTP id MHotMailBE6E8D0E00524004320EA13A9AF4ED370; Fri, 29 Mar 2002 20:41:51 -0800 Received: from 653227hfc119.tampabay.rr.com (653227hfc119.tampabay.rr.com [65.32.27.119]) by burridge.iserver.net (8.11.6) id g2U4fmX03029; Fri, 29 Mar 2002 23:41:48 -0500 (EST) From [EMAIL PROTECTED] Fri, 29 Mar 2002 20:43:41 -0800 X-Mailer: The Bat! (v1.60) Personal X-Priority: 3 (Normal) Message-ID: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] References: [EMAIL PROTECTED] Thanks Vladmir for your response. I agree with what you wrote. My only question is even what you presented is still 3 tier is it not? In other words having the form beans also with methods setXXXAsCalendar() still allows for the 3 tiers (where for example the db stuff would be done to populate the list with form beans). I guess I'm confused a bit as what you are saying is the 'sexy' approach in this example. In my other post I mentioned I was thinking of having the following architecture. It looks like you are saying (and I think I agree) that the business object below that converts the EmployeeBean list to the list of EmployeeForm beans could be combined into one business