Struts JBuilder 5
Hi All, Can anyone please tell me the meaning of Struts support for JBuilder 4 /5 If struts is a Java framework , it should be supported by any IDE. 1) Is there anything special supported by JBuilder for Struts. 2) What is the need for any plugin for JBuilder to work with Struts. I am using JBuilder 5 and will be suing Struts . Please let me know of any special features of the combination / Tips. Thanks in Advance -Sushant -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Resin 2.0.0 Struts 1.0 JDK1.4.0-beta3 BUG?
Hi Simon and All, I have tried it like Simon with the one application and then with the second one in the container alone and it worked. That means, that one application in the container work without any problems but when I have two struts based applications in the container, than I become a failure (java 1.4 b1-b3 and resin-2.0.0-2.0.4/tomcat). Can someone of the struts dev. have a look on that thaks juraj -Ursprüngliche Nachricht- Von: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 3. Januar 2002 20:36 An: Struts Users Mailing List Betreff: RE: Resin 2.0.0 Struts 1.0 JDK1.4.0-beta3 BUG? I get a similar thing under Tomcat (4.0.1 4.0.2-b1). If I have multiple applications in my webapps dir, then they break, but each works when in there on it's own. I am using RedHat Linux and Java 1.4.0-beta3 and W2KPro w/ Cygwin ... same problem in both places. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Lenharcik Juraj [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 1:01 PM To: Struts Users Mailing List Subject: AW: Resin 2.0.0 Struts 1.0 JDK1.4.0-beta3 BUG? hi, the stange think is, that I have two applications in my container, both on struts. But only in the second one is the failure. When I start the server with java 1.3 both work fine. When I start the server with only the first application (on java 1.4), it works fine, too. ??!?!?!?? Had someone a similar error? thank you, juraj -Ursprüngliche Nachricht- Von: Ted Husted [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 31. Dezember 2001 15:20 An: Struts Users Mailing List Betreff: Re: Resin 2.0.0 Struts 1.0 JDK1.4.0-beta3 BUG? It looks like there are some mis-matched JARs. Try replacing the ones in the WEB-INF/lib with fresh copies from the struts-example application (assuming that one works for you). Lenharcik Juraj wrote: Hi, I have tried to run a simple struts web-app with this configuration (above). I get then this exception: $ Resin 2.0.0 (built Fri Jun 8 12:04:24 PDT 2001) Copyright(c) 1998-2001 Caucho Technology. All rights reserved. Starting Resin on Sat, 22 Dec 2001 08:44:50 +0100 (CET) Begin event threw exception java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils. java:825) at org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils. java:756) at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:7 82) at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:541) at org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule. java:120) at org.apache.struts.digester.Digester.startElement(Digester.java:498) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:316) at javax.xml.parsers.SAXParser.parse(SAXParser.java:91) at org.apache.struts.digester.Digester.parse(Digester.java:716) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java :1301) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java:82) at com.caucho.server.http.Application.createServlet(Application.java:212 7) at com.caucho.server.http.Application.loadServlet(Application.java:2091) at com.caucho.server.http.Application.initServlets(Application.java:1347 ) at com.caucho.server.http.Application.init(Application.java:1303) at
RE: Struts JBuilder 5
Hi Sushant You are right. You can use/run Struts within JBuilder5 without any need for additional plugin (at least at my workplace, we don't use the open tools from Borland). But there are other resources, which tell you how to use the plugin (which I don't know in detail). See http://www1.tramsasp.com/?section=devpage=jb5Struts10.html, http://www1.tramsasp.com/?section=devpage=jb5Struts11.html and http://www.netstore.ch/mesi/strutsTutorial/. Marcel -Original Message- From: Sushant Patney [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 9:36 AM To: 'Struts Users Mailing List' Subject: Struts JBuilder 5 Hi All, Can anyone please tell me the meaning of Struts support for JBuilder 4 /5 If struts is a Java framework , it should be supported by any IDE. 1) Is there anything special supported by JBuilder for Struts. 2) What is the need for any plugin for JBuilder to work with Struts. I am using JBuilder 5 and will be suing Struts . Please let me know of any special features of the combination / Tips. Thanks in Advance -Sushant -- 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: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
Jack, I just had this problem while migrating from an NT box to Linux. My problem was that I had struts.jar not only in the WEB-INF/lib directory, but also in the Tomcat classpath. I took the jar file out of the classpath and all was good. Hope this is your problem, Andy --- Jack [EMAIL PROTECTED] wrote: What causes this exception: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE? I thought it was because the resources file couldn't be found. I verified my app's deployment descriptor sets the application param value as follows: web-app servlet servlet-nameFeiActionServlet/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valuecom.fei.common.ApplicationResources/param-value /init-param ... However, after deploying a WebApp.WAR file into Tomcat 4.0's webapps directory and starting Tomcat, I verified there is a file, ApplicationResources.properties, in the Tomcat 4.0 webapps/WebApp/WEB-INF/classes/com/fei/common subdirectory. I'm sure I'm overlooking something obvious, but am not sure what it is. Thanks. Jack -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: File upload error when no file attached - IOException
Hi Doug, I don't know if you've already found solution to your problem but what you can do is to put a form validation in your ActionForm that handles that, here is what I did for mine (it also handles the case if a file is empty, saying with a 0 Kb size) : /** * Validate the properties that have been set from this HTTP upload request, * and return an codeActionErrors/code object that encapsulates a * validation error relative to a missing file to be uploaded. * If no errors are found, return * codenull/code or an codeActionErrors/code object with no * recorded error messages.br * * Creation date: (13.11.01 19:19:10) * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing * * @return ActionErrors */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); FormFile theFile = this.getThefile(); if (theFile == null || theFile.getFileName().length() == 0) // as Struts always do a temp file for each file you want to upload, theFile==null is always false errors.add(upload, new ActionError(uploadForm.error.uploadfile.required)); if (theFile.getFileSize() == 0) errors.add(uploadsize, new ActionError(uploadForm.error.filesize.zero.notallowed)); return errors; } Hope it helps, Daniel
RE: Struts JBuilder 5
Hi Sushant, in the mailing-list searchable archive you can look for an email in which I describe how we use Struts and JBuilder (basically a special way to start the tomcat-environment) and for which the plug-ins are not necessary. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg17757.html By the way: this is the setup Marcel is using hope this helps Alexander Jesse -Original Message- From: Sushant Patney [mailto:[EMAIL PROTECTED]] Sent: Freitag, 4. Januar 2002 09:36 To: 'Struts Users Mailing List' Subject: Struts JBuilder 5 Hi All, Can anyone please tell me the meaning of Struts support for JBuilder 4 /5 If struts is a Java framework , it should be supported by any IDE. 1) Is there anything special supported by JBuilder for Struts. 2) What is the need for any plugin for JBuilder to work with Struts. I am using JBuilder 5 and will be suing Struts . Please let me know of any special features of the combination / Tips. Thanks in Advance -Sushant -- 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: Using Struts with XSLT
Yes, you are correct about comlexity. However, when you define the XML format, you only need 1 style sheet. Then you are modifying the XML. As for things XSLT cannot do see http://www.javaworld.com/javaworld/jw-12-2001/jw-1221-xslt.html? Taylor -Original Message- From: Shengmeng Liu [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 10:40 PM To: Struts Users Mailing List Subject: Re: Using Struts with XSLT Hi, It's been quite a long way before I finally arrived at the same conclusion you guys have reached. That is use XSLT only for what it is designed for and what it is best at. According to my experience, XSLT is great for doing XML to XML transformation. But for complex XML to HTML transformation, or whenever you want to do complex logic in the stylesheet, you will find that the complexity of stylesheet really offsets the benefit of separation of content from presentation. My understanding is that using stylesheet is only hyperthetically ease the job of page designer. In fact it's hard to learn and use for page designers. Besides that, there's a performance penalty that can't be easily conciliated by using cache. Personally, I would like to use Struts for most of the web applications. As a true MVC framework, Struts inherently separates the view from control and model. Armed with a rich set of Taglibs, you can actually achieve most of the benefit of xsl and still get the power and ease of use of JSP. So if you've got Struts, who needs XSLT for view again? Well, On the other hand, XSLT may be useful in the future web services applications, where XML is used as an universal and platform-independent format for communication and then xslt can be used to process it. That's my forecast. For those sites that really need to support multiple languages or skins or platforms, and if they really want to use xslt and are ready to accept the complexity and overhead of stylesheet, I would suggest that they still use Struts as framework, but in the view part, the jsp pages will use XML instead of HTML as the native language and use Taglibs to do the transformation on the fly (or use XSLT Sevlet filter to do the transformation, for it readly supports caching locale). For those who are really worry about performance, I suggest that they use Servlet+XSLT, that is to do the xslt transformation in the ActionServlet, bypassing the JSP implemented views. Reference: http://www.onjava.com/pub/a/onjava/2000/12/15/xslt_servlets.html?page=2 Hope this helps, Shengmeng Liu * - Original Message - From: Lewis Lin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, January 04, 2002 5:26 AM Subject: RE: Using Struts with XSLT Hi, Todd, I 100% agree with you. We did a small project using pure XSL transformation with Struts. We had to overcome the combo box selection, form validation, and error handling issues that could be handled much easier with Struts directly. I am really debating with myself at this point. On one hand, it seems like the whole world is going with JSP/Struts, on the other hand, I really don't want to give up the beauty of the truely seperation of the data from the view. Are you still working on this topic? What area do you mean when you said to limit the usage of XSL only when it's neccessary? Regards, Lewis -Original Message- From: Todd Fulton [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 03, 2001 10:42 AM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Using Struts with XSLT Yeah, I did the rendering/presentation end for an entire application using XSLT. The application was a time tracking invoicing type app that we delivered as an ASP (i.e. failed .com). Spent 18 months with that stuff. We were using the Sun xml processor and the Saxon xslt compiler. It wasn't struts, but that shouldn't matter too much. I can imagine numerous ways one would eventually route the output through a XSL processor using struts -- including the method you mentioned. Some things I discovered. #1, the performance definitely was not what I could have wanted for the application. All that xml/xsl handling added a certain performance floor that simply could not be overcome. We calculated that the XSL rendering part of the application added somewhere between .5 and .75 seconds to all requests. Granted, we were doing pretty heavy rendering -- the xml objects were upwards of 30k or so. And we were getting somewhere around ~8000 page requests/hour. #2, we had to staff and train a cadre of XSL stylsheet designers. This was tough, because there were not (this was 1999/2000) alot of people with this kind of knowledge back then. The stuff is not rocket science, but still not the easiest thing in the world -- especially for interface designers. #3, the XSL syntax at the time was not standardized. We moved between the Lotus XSL
RE: Struts JBuilder 5
Hi Yes it is possible to use JB5(Pro/Ent) without the opentool plugins from borland - but - life is a whole lot easier if you do use them. - Without the tools you will have problems deploying the JB generated war files - the tld's will be excluded!! I would also suggest using ConfiguredClasspathTomcatSetup (attached) from David White: [EMAIL PROTECTED] . Davids plugin replaces the functionality of one of the borland opentools and allows use of Tomcat 4.0.1 with JB5. David Bolsover T:+44(0)1614276920 F:+44(0)1614276922 M:07773428118 E:[EMAIL PROTECTED] -Original Message- From: Sushant Patney [mailto:[EMAIL PROTECTED]] Sent: 04 January 2002 08:36 To: 'Struts Users Mailing List' Subject: Struts JBuilder 5 Hi All, Can anyone please tell me the meaning of Struts support for JBuilder 4 /5 If struts is a Java framework , it should be supported by any IDE. 1) Is there anything special supported by JBuilder for Struts. 2) What is the need for any plugin for JBuilder to work with Struts. I am using JBuilder 5 and will be suing Struts . Please let me know of any special features of the combination / Tips. Thanks in Advance -Sushant -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ConfiguredClasspathTomcatSetup.zip Description: Zip compressed data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [ANNOUNCE] Struts Console v1.3
Hi Sushant, The Struts Console software is simply an add on tool for JBuilder that assists in the management of Struts config files. The software is not required in any way to make Struts work with JBuilder. Thanks, -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ --- Sushant Patney [EMAIL PROTECTED] wrote: Hi All, Can anyone please tell me the meaning of Struts support for JBuilder 4 /5 If struts is a Java framework , it should be supported by any IDE. 1) Is there anything special supported by JBuilder for Struts. 2) What is the need for any plugin for JBuilder to work with struts I am using JBuilder 5 and will be suing Struts . Please let me know of any special features of the combination / Tips. Thanks in Advance -Sushant - Original Message - From: James Holmes [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 8:54 PM Subject: [ANNOUNCE] Struts Console v1.3 Struts Console version 1.3 is now available. http://www.jamesholmes.com/struts/ http://www.jamesholmes.com/struts/struts-console-1.3.zip This release has a couple of small new features and most notably adds support for JBuilder 4. Changes with Struts Console v1.3 *) Added ability to close all open files in standalone version. *) Updated JBuilder plugin to work with JBuilder 4. *) Updated console.sh startup script to support Cygwin. Thanks, -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ __ Do You Yahoo!? Send your FREE holiday greetings online! 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] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Cheap and nasty Single Sign On through a HttpConnection proxy?
Happy new year Everyone here must have written a Logon action and Login form bean. Has any used jakarta's HttpConnection class? http://jakarta.apache.org/commons/httpclient/api/org/apache/commons/httpclient/HttpConnection.html I have an idea to perform a very basic single sign-on to another server FOO. I want to add SSO to my Login action class. First I could create a connection to a server and then send the username and password to the FOO http server. I wait for the http servlet response which will be a cookie or a session id encoded URL. I want to save the session id from the FOO server in the real session. Has any one done this before? Also more info at http://jakarta.apache.org/commons/httpclient/api/index.html -- Peter Pilgrim ++44 (0)207-545-9923 -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
taglib question
Here is something I have been having trouble with: (1) Imagine I have written the tag library defined in foo.tld (2) Image I am also developing many webapps that use foo.tld Question: when I deploy my webapps, must I have a copy of foo.tld in each and every webapp that uses it? Thus, if I have 10 webapps, must I maintain 10 copies of foo.tld? If this is the case then that seems strange to me. Is there any way to refer to tld files with absolute URIs (like file: or http:)? What is a common approach for deling with this? thanks in advance -will -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Strategy for International/XML Project
Folks, I will be arechtecting/developing an application as follows: 1) Support for English/Spanish Presentation 2) No Database Available 3) All site data stored in flat files or XML files 4) XML messages sent/received from third parties 5) App Server will be Weblogic 6.1 6) Use cookie to store user name, address, phone, etc... 7) Use third party Applications (via HTTP) to book reservations, map vicinity etc... 8) Need Admin Interface to Manage Spanish/English Content I would appreciate your experiences/ideas about the best way to Architect this application. Here are some things I've been thinking... 1) We will Struts!!! 2) Use ApplicationResources file to contain all presentation strings 3) Is Log4J better than servletcontext.log()? 4) Use SSL to transfer user credit card info 5) Use JDOM/Digester to work with XML messages 6) How to service XML (XML-RPC, Weblogic Services, Message Beans, Struts Actions via HTTP)??? 7) Which struts features can I use for Cookies? logic:present for testing, what about setting? 8) I'm comfortable with DTDs, should I use schemas instead? Your ideas will be appreciated... Thanks, Robert Jackson -Original Message- From: Freek Segers [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:42 AM To: Struts Users Mailing List Subject: Re: Dynamic properties in ActionForms with custom tag Hello again, I've partially solved my problem. I found the new commons-beanutils package that has new methods in PropertyUtils (getMappedProperty() and setmappedProperty()). To solve my second problem I now hardcoded my form bean's name into the custom tag implementation to look it up in pageContext. However, my struts release (version 1.0) doesn't populate the form bean when I submit the form. I the servlet log I do see that Struts looks up and recycles the form bean and it logs that it populates the form bean but the dynamic properties' setter method isn't called. Do I need a new struts release that uses the common-beanutils package. If so, which build has support for this. Thanks again, Freek Segers on 03-01-2002 08:51 you wrote: First, I've created a custom tag that creates different types of HTML form fields. The number of fields generated varies and the names of the fields are dynamic. I can't figure out how to let Struts populate the ActionForm that's linked to the Action that handles the form. I thought I read somewhere that you can use some feature of the JavaBean specs to tell Struts what method to call (maybe by using PropertyDescriptors?), but I can't find anything about this. Second, I don't know how I can restore any previously submitted values when the form is shown for a second time, for example in case of a validation error. Do I have access to the ActionForm from a custom tag implementation somehow? Or can I let the ActionForm set properties in my custom tag? I've been looking at the source code for the Struts html:select-tag but found no clues to how Struts manages to make the last submitted item selected when the form is redisplayed. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Strategy for International/XML Project
Robert, For issues concerning schema languages etc have a look at http://www.xml.com/pub/a/2001/12/12/schemacompare.html I definitely recommend Log4J over servletcontext log. You may want to consider using DOM4J instead of JDOM - similar capabilities but dom4j has programmatic XPath support. Also for XML handling look at the the Jakarta xtags taglib (it uses dom4j under the hood). Luke -Original Message- From: Robert Jackson [mailto:[EMAIL PROTECTED]] Sent: 04 January 2002 13:33 To: 'Struts Users Mailing List' Subject: Strategy for International/XML Project Folks, I will be arechtecting/developing an application as follows: 1) Support for English/Spanish Presentation 2) No Database Available 3) All site data stored in flat files or XML files 4) XML messages sent/received from third parties 5) App Server will be Weblogic 6.1 6) Use cookie to store user name, address, phone, etc... 7) Use third party Applications (via HTTP) to book reservations, map vicinity etc... 8) Need Admin Interface to Manage Spanish/English Content I would appreciate your experiences/ideas about the best way to Architect this application. Here are some things I've been thinking... 1) We will Struts!!! 2) Use ApplicationResources file to contain all presentation strings 3) Is Log4J better than servletcontext.log()? 4) Use SSL to transfer user credit card info 5) Use JDOM/Digester to work with XML messages 6) How to service XML (XML-RPC, Weblogic Services, Message Beans, Struts Actions via HTTP)??? 7) Which struts features can I use for Cookies? logic:present for testing, what about setting? 8) I'm comfortable with DTDs, should I use schemas instead? Your ideas will be appreciated... Thanks, Robert Jackson -Original Message- From: Freek Segers [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:42 AM To: Struts Users Mailing List Subject: Re: Dynamic properties in ActionForms with custom tag Hello again, I've partially solved my problem. I found the new commons-beanutils package that has new methods in PropertyUtils (getMappedProperty() and setmappedProperty()). To solve my second problem I now hardcoded my form bean's name into the custom tag implementation to look it up in pageContext. However, my struts release (version 1.0) doesn't populate the form bean when I submit the form. I the servlet log I do see that Struts looks up and recycles the form bean and it logs that it populates the form bean but the dynamic properties' setter method isn't called. Do I need a new struts release that uses the common-beanutils package. If so, which build has support for this. Thanks again, Freek Segers on 03-01-2002 08:51 you wrote: First, I've created a custom tag that creates different types of HTML form fields. The number of fields generated varies and the names of the fields are dynamic. I can't figure out how to let Struts populate the ActionForm that's linked to the Action that handles the form. I thought I read somewhere that you can use some feature of the JavaBean specs to tell Struts what method to call (maybe by using PropertyDescriptors?), but I can't find anything about this. Second, I don't know how I can restore any previously submitted values when the form is shown for a second time, for example in case of a validation error. Do I have access to the ActionForm from a custom tag implementation somehow? Or can I let the ActionForm set properties in my custom tag? I've been looking at the source code for the Struts html:select-tag but found no clues to how Struts manages to make the last submitted item selected when the form is redisplayed. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.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: taglib question
If you are using Weblogic, you would put the jar file containing foo.tld in the application server's classpath as opposed to the WEB-INF for each of the web apps. -Original Message- From: William Shulman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 8:11 AM To: [EMAIL PROTECTED] Subject: taglib question Here is something I have been having trouble with: (1) Imagine I have written the tag library defined in foo.tld (2) Image I am also developing many webapps that use foo.tld Question: when I deploy my webapps, must I have a copy of foo.tld in each and every webapp that uses it? Thus, if I have 10 webapps, must I maintain 10 copies of foo.tld? If this is the case then that seems strange to me. Is there any way to refer to tld files with absolute URIs (like file: or http:)? What is a common approach for deling with this? thanks in advance -will -- 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: NoClassDefFound Error in weblogic
Thanks everyone so much for the quick responses. Turns out that it was very simple, and I had a jar in the weblogic classpath that was trying to make use of struts. thanks Jeremy -Original Message- From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:54 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Unfortunately, my memory on this problem isn't too good - it happened sometime last summer. As Michelle and Vincent say, I remember there being a problem if there were multiple struts jars floating around, and we had to make sure all were deleted. But we didn't find any solution other than putting the jar in the WL classpath, and we did do this using ANT at build/deploy time. Have you talked with BEA? I think this is more than just a struts issue - it relates to how WL deals with external jars. - JKL -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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]
RE: NoClassDefFound Error in weblogic
I am now getting the dreaded ClassCastException. This again only occurs when the webapps is unpacked. Any solutions besides putting struts.jar in the weblogic classpath? Jeremy -Original Message- From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:54 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Unfortunately, my memory on this problem isn't too good - it happened sometime last summer. As Michelle and Vincent say, I remember there being a problem if there were multiple struts jars floating around, and we had to make sure all were deleted. But we didn't find any solution other than putting the jar in the WL classpath, and we did do this using ANT at build/deploy time. Have you talked with BEA? I think this is more than just a struts issue - it relates to how WL deals with external jars. - JKL -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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]
RE: taglib question
In my opinion, yes, but that does not mean you have to maintain 10 separate copies of this file. Have one copy of the file, and in your build scripts for your web application simply copy the file into your webapp as needed. Personally, I prefer to have everything within the webapp (3rd party jars, etc.), on not on the system classpath that way I have a deployable unit that I should be able to deploy to any app server without setting up vendor specific dependencies on the physical machine. Michelle -Original Message- From: William Shulman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 8:11 AM To: [EMAIL PROTECTED] Subject: taglib question Here is something I have been having trouble with: (1) Imagine I have written the tag library defined in foo.tld (2) Image I am also developing many webapps that use foo.tld Question: when I deploy my webapps, must I have a copy of foo.tld in each and every webapp that uses it? Thus, if I have 10 webapps, must I maintain 10 copies of foo.tld? If this is the case then that seems strange to me. Is there any way to refer to tld files with absolute URIs (like file: or http:)? What is a common approach for deling with this? thanks in advance -will -- 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: Parser error while testing struts-layout
I just managed to execute struts-layout. My problem was i did not remome jaxp.jar in tomcat\lib directory. So i had 2 classes with the same name loaded in tomcat VM. Removing jaxp.jar, putting xerces.jar in place and replacing strut-layout\WEB-INF\lib\digester.jar by the last version of digester strut-layout\WEB-INF\lib\common-digester.jar seems to make all go round. Thanks Jean-Noel for help and a good article found at http://www.develop.com/downloads/DevWPJav.pdf (it enlighted the first exception message) I hope i can now use struts tree-view. -Message d'origine- De: DUPRAT Alexandre [mailto:[EMAIL PROTECTED]] Date: jeudi 3 janvier 2002 16:30 À: '[EMAIL PROTECTED]' Cc: 'Jean-Noel Ribette' Objet: RE: Parser error while testing struts-layout Jean-Noel : I just tried replacing my digester 1.0 by 1.1.1 I got a different error : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:508) at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader; not found at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java, Compiled at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Maybe i could try digester 1.1 but...? I would be really happy if i could use tree menu of struts-layout. -Message d'origine- De: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]] Date: jeudi 3 janvier 2002 15:47 À: Struts Users Mailing List; [EMAIL PROTECTED] Objet: Re: Parser error while testing struts-layout At 15:01 03/01/2002, you wrote: Hi all, Happy new year :-) I'm currently testing struts-layout found at : http://struts.application-servers.com/ when deploying on tomcat 3.2.3 i got errors like : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.j a va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:338) at org.apache.commons.digester.Digester.parse(Digester.java:859) at org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java: 2 52) at org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java: 1 75) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at
RE: NoClassDefFound Error in weblogic
There is a patch for wls 5.1 sp8. Search for in on the struts mailing list. wls 5.1 conflicts with struts. -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 6:27 AM To: Struts Users Mailing List Subject: RE: NoClassDefFound Error in weblogic I am now getting the dreaded ClassCastException. This again only occurs when the webapps is unpacked. Any solutions besides putting struts.jar in the weblogic classpath? Jeremy -Original Message- From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:54 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Unfortunately, my memory on this problem isn't too good - it happened sometime last summer. As Michelle and Vincent say, I remember there being a problem if there were multiple struts jars floating around, and we had to make sure all were deleted. But we didn't find any solution other than putting the jar in the WL classpath, and we did do this using ANT at build/deploy time. Have you talked with BEA? I think this is more than just a struts issue - it relates to how WL deals with external jars. - JKL -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: taglib question
Actually, if you have a web server that's always available to your applications, you can put the tld on the web server and use the url rather than the direct path to the tld, can't you? I'm not an expert, but I thought I've seen some examples do this... Mark -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 8:32 AM To: 'Struts Users Mailing List' Subject: RE: taglib question In my opinion, yes, but that does not mean you have to maintain 10 separate copies of this file. Have one copy of the file, and in your build scripts for your web application simply copy the file into your webapp as needed. Personally, I prefer to have everything within the webapp (3rd party jars, etc.), on not on the system classpath that way I have a deployable unit that I should be able to deploy to any app server without setting up vendor specific dependencies on the physical machine. Michelle -Original Message- From: William Shulman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 8:11 AM To: [EMAIL PROTECTED] Subject: taglib question Here is something I have been having trouble with: (1) Imagine I have written the tag library defined in foo.tld (2) Image I am also developing many webapps that use foo.tld Question: when I deploy my webapps, must I have a copy of foo.tld in each and every webapp that uses it? Thus, if I have 10 webapps, must I maintain 10 copies of foo.tld? If this is the case then that seems strange to me. Is there any way to refer to tld files with absolute URIs (like file: or http:)? What is a common approach for deling with this? thanks in advance -will -- 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: NoClassDefFound Error in weblogic
I tried this but I am still getting the class cast exception. Any other ideas. Will service pack 10/11 do this trick? I didn't see anything in their decriptions in the weblogic site that would indicate this. Jeremy -Original Message- From: Kiet Nguyen [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 9:35 AM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic There is a patch for wls 5.1 sp8. Search for in on the struts mailing list. wls 5.1 conflicts with struts. -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 6:27 AM To: Struts Users Mailing List Subject: RE: NoClassDefFound Error in weblogic I am now getting the dreaded ClassCastException. This again only occurs when the webapps is unpacked. Any solutions besides putting struts.jar in the weblogic classpath? Jeremy -Original Message- From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:54 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Unfortunately, my memory on this problem isn't too good - it happened sometime last summer. As Michelle and Vincent say, I remember there being a problem if there were multiple struts jars floating around, and we had to make sure all were deleted. But we didn't find any solution other than putting the jar in the WL classpath, and we did do this using ANT at build/deploy time. Have you talked with BEA? I think this is more than just a struts issue - it relates to how WL deals with external jars. - JKL -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:47 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic I remember reading somewhere (I don't remember where) something about not putting the struts.jar in the classpath that that is a bad thing and results in these class not found problems. I think the suggestion was that the struts.jar should always be included in the webapp lib directory for each war. So, I suggest making sure that the struts.jar is not available anywhere on any class path and only have in the webapp. HTH, Michelle -Original Message- From: Andre Beskrowni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:26 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic i'm seeing a similar problem with wls6. i wrote the world's simplest action class, and the mapping works fine, but when Class.forName is called in ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't figure out why the ClassLoader can't seem to find my class. as in jeremy's case, the problem only occurs when my classes are unpacked in the WEB-INF/classes directory. if someone knows how to resolve this, i'd love to hear about it. ab -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:21 PM To: 'Struts Users Mailing List' Subject: RE: NoClassDefFound Error in weblogic Jeremy, Are you using weblogic 5.1? I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and 11. I haven't tried 8, though. You may want to try a high sp just in case it's related to that. Anyone else out there use sp 8 ok with struts? In my experience, if it's a wierd error, the solution often is to upgrade to the next higher service pack (that's how I got to 10 and then 11...). Michelle -Original Message- From: Jeremy Mann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: NoClassDefFound Error in weblogic Has anyone experience a NoClassDefFoundError when running struts in weblogic? If I place struts.jar in the weblogic classpath, then my application works fine. If I place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when the jsp tries to load an ActionForm for a page. One other thing to note is that this only happens when the webapp is unpacked. I pack the webapp into a war file and leave the struts.jar in the lib directory, the application continues to work fine. Finally, I am using ServicePack8 and am not in a position where this can be changed. thanks in advance, Jeremy -- 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
Anyone using STUTS with Webgain's Visual Cafe?
Just wondering if anyone has setup a STRUTS project template in Visual Cafe? Thanks! Phillip Jackson Programmer/Analyst Enterprise Data Warehouse -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: taglib question
I don't think so (someone please correct me if I'm wrong). I believe you specify in the web.xml the location of the tablib within the webapp (taglib-location) and a name that will be used to reference it within the jsp (taglib-uri). Often people specify something that looks like a url for the taglib-uri just to make sure that it is unique across all applications, but it doesn't need to be in url format...it's just a name. I have 2 examples below. The first just specifies a simple name (struts-bean.tld) which the jsp refers to. The second (http://jsptags.com/tags/navigation/pager) is also a name but it is in url format, the application does not actually go to this site, again it's just a name, but it is more descriptive and lets the developer know where this 3rd party taglib came from. ...web.xml snippet taglib taglib-uristruts-bean.tld/taglib-uri taglib-location/WEB-INF/tlds/struts-bean.tld/taglib-location /taglib taglib taglib-urihttp://jsptags.com/tags/navigation/pager/taglib-uri taglib-location/WEB-INF/tlds/pager-taglib.tld/taglib-location /taglib hth, Michelle -Original Message- From: McDowell, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 10:10 AM To: 'Struts Users Mailing List' Subject: RE: taglib question Actually, if you have a web server that's always available to your applications, you can put the tld on the web server and use the url rather than the direct path to the tld, can't you? I'm not an expert, but I thought I've seen some examples do this... Mark -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 8:32 AM To: 'Struts Users Mailing List' Subject: RE: taglib question In my opinion, yes, but that does not mean you have to maintain 10 separate copies of this file. Have one copy of the file, and in your build scripts for your web application simply copy the file into your webapp as needed. Personally, I prefer to have everything within the webapp (3rd party jars, etc.), on not on the system classpath that way I have a deployable unit that I should be able to deploy to any app server without setting up vendor specific dependencies on the physical machine. Michelle -Original Message- From: William Shulman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 8:11 AM To: [EMAIL PROTECTED] Subject: taglib question Here is something I have been having trouble with: (1) Imagine I have written the tag library defined in foo.tld (2) Image I am also developing many webapps that use foo.tld Question: when I deploy my webapps, must I have a copy of foo.tld in each and every webapp that uses it? Thus, if I have 10 webapps, must I maintain 10 copies of foo.tld? If this is the case then that seems strange to me. Is there any way to refer to tld files with absolute URIs (like file: or http:)? What is a common approach for deling with this? thanks in advance -will -- 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]
RE: taglib question
I'm pretty sure you're right, Michelle. I was thinking of XML files... oops... -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 9:59 AM To: 'Struts Users Mailing List' Subject: RE: taglib question I don't think so (someone please correct me if I'm wrong). I believe you specify in the web.xml the location of the tablib within the webapp (taglib-location) and a name that will be used to reference it within the jsp (taglib-uri). Often people specify something that looks like a url for the taglib-uri just to make sure that it is unique across all applications, but it doesn't need to be in url format...it's just a name. I have 2 examples below. The first just specifies a simple name (struts-bean.tld) which the jsp refers to. The second (http://jsptags.com/tags/navigation/pager) is also a name but it is in url format, the application does not actually go to this site, again it's just a name, but it is more descriptive and lets the developer know where this 3rd party taglib came from. ...web.xml snippet taglib taglib-uristruts-bean.tld/taglib-uri taglib-location/WEB-INF/tlds/struts-bean.tld/taglib-location /taglib taglib taglib-urihttp://jsptags.com/tags/navigation/pager/taglib-uri taglib-location/WEB-INF/tlds/pager-taglib.tld/taglib-location /taglib hth, Michelle -Original Message- From: McDowell, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 10:10 AM To: 'Struts Users Mailing List' Subject: RE: taglib question Actually, if you have a web server that's always available to your applications, you can put the tld on the web server and use the url rather than the direct path to the tld, can't you? I'm not an expert, but I thought I've seen some examples do this... Mark -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 8:32 AM To: 'Struts Users Mailing List' Subject: RE: taglib question In my opinion, yes, but that does not mean you have to maintain 10 separate copies of this file. Have one copy of the file, and in your build scripts for your web application simply copy the file into your webapp as needed. Personally, I prefer to have everything within the webapp (3rd party jars, etc.), on not on the system classpath that way I have a deployable unit that I should be able to deploy to any app server without setting up vendor specific dependencies on the physical machine. Michelle -Original Message- From: William Shulman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 8:11 AM To: [EMAIL PROTECTED] Subject: taglib question Here is something I have been having trouble with: (1) Imagine I have written the tag library defined in foo.tld (2) Image I am also developing many webapps that use foo.tld Question: when I deploy my webapps, must I have a copy of foo.tld in each and every webapp that uses it? Thus, if I have 10 webapps, must I maintain 10 copies of foo.tld? If this is the case then that seems strange to me. Is there any way to refer to tld files with absolute URIs (like file: or http:)? What is a common approach for deling with this? thanks in advance -will -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
anyone have struts templates for netbeans/forte?
Hi. Has anyone created templates for quickly creating action classes and so on in Netbeans? I already have the (very good) struts console installed - just need to save some finger tapping with the actual code and the World will be a better place... Rick Lawson. ___ CONFIDENTIALITY NOTICE The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. It may contain confidential and privileged information and if you are not an intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this e-mail in error, please notify the sender and destroy and delete the message from your computer. _ This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. For further information visit http://www.uk.uu.net/products/security/virus/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I am pushing Tomcat / Struts in my company...
Hello, I am doing a push to bring in Tomcat/Struts for our web development. You see the choice is going to be that or .NET. In any case, I am going to dog and pony the whole thing in a week or so, and right now an looking at ways to speed the development of an application under struts / tomcat. We have Forte CE and Visual Slickedit at our disposal. Can anyone recommend any code generators, bean builders, etc, etc that can make the whole process faster? Plug-ins to Forte would also be a good thing if any exist to work with struts. Thanks Bill Bill Chmura Ensign-Bickford Industries, Inc. Information Technologies Department -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Forwarding Data For A Form
Jake, Thanks for the tip. I hadn't thought of prepopulating a form and pushing onto the request object before returning the ActionForward. Is the form name (i.e. key) you store the form under in the request object the same as that set in the name property of the action tag in the action mapping? I'll give this a try as nothing else has worked like I want. Jack -Original Message- From: Jake Thompson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 10:07 PM To: Struts Users Mailing List Subject: RE: Forwarding Data For A Form I think this sounds like what I am doing. I have a form that performs an action, the goes to another form, either the same or different but a new form needs to be set. Pseudo code: Form formObject = new Form(); formObject.setId(1); formObject.setName(NEW); Request.setAttribute(formName, formObject); Return(new ActionForward(somewhere); Is this what you are trying to do? I use this because I get a form object that is partially populated and use it to look up and return a fully poplated form, I then just overwrite the request attribute with this new form. Or a form may have multiple possible actions some going to new forms of a different type, so I lookup and set some initial info and set that into the request. Hope this helps, Jake T. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 6:09 PM To: Struts Users Mailing List Subject: RE: Forwarding Data For A Form James, Isn't the Action's perform() called as a result of the Form's action being invoked and after the form's validate() method succeeds? What I'm wanting is the form input fields to be prepopulated with data sent by another Action so when the JSP form is displayed the fields are all filled in. I thought the jsp:useBean tag would work, but it didn't. (I didn't want to expose the class name of the bean to the JSP page anyway. I was hoping to stay in the Struts Model 2 framework to keep all the Java details abstracted away from the JSP developers.) Jack -Original Message- From: James Dasher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:15 PM To: 'Struts Users Mailing List' Subject: RE: Forwarding Data For A Form If I am not mistaken, the form is passed into the action.perform() as a parameter. You should be able to get/set your bean properties there. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:51 PM To: Struts Users Mailing List Subject: Forwarding Data For A Form How can I get an action form to display data generated by an action? I have a Registration action that updates a database and generates a user id. The perform() method of that action forwards an ActionForward object mapped to a Login form. I want the Login form to display the generated user ID from the Registration action. I'm not sure how to pass along the user ID so it will automatically be picked up by the Login form and displayed in the proper input field. Thanks. Jack -- 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]
GUI Taglib - where to download?
There is a very cool tag library at http://edhill.its.uiowa.edu/taglib-gui/. Anyone know where I can get it's binary or source distribution? Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Dynamic drop down lists
Hello, I'm using the following piece of code to generate a select box with dynamic options: strutshtml:select property=ageId strutshtml:options name=myStringArray/ /strutshtml:select This grabs a String array out of session called myStringArray and properly displays the contents correctly. The issue I have is that the option value is the same as the display value. I need the value to be an int 0,1,2... which corresponds to database row id's. More importantly, when the form is validated, or when the user returns to the form, the previously user selected value is gone and the first item in the drop down is displayed. It appears the selected attribute is not added to the option tag. I can hack the first problem by using a for loop so I get my int values, but I'm still left with the second problem. Here's the bad hack code: strutshtml:select property=ageId % for(int i = 0; i bean.getAgeRange().length; i++) { out.print(option value=); // strutshtml:option displays nothing so it's not used. out.print(i); out.print(); out.print(bean.getAgeRangeValue(i)); } % /strutshtml:select/td My hack has the getAgeId() and setAgeId() in the form using int - but with the first code block, should the get and set use String? What do you do for dynamic single selects? Thanks for the help. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts under ATG Dynamo
Hello, does anyoune of you use Struts under ATG Dynamo or have notice of anyone using? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
controller servlet session lost
Hi, we are using 5 web servers WeblogicEnterprice where all my jsp's and servlets are residing, and we have a cluster of WLS for EJB's. Load balancing on webservers is done by third party software. Now the problem is first time user hits the website the load balancer transfers the request to one webserver where controller servlet is invoked but next request from the same user may transferred to another webserver based on load on loadbalence at that time ,i am loosing the session. is there any solution for this problem. i don't want to cluster webservers. narendra [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: I am pushing Tomcat / Struts in my company...
Can anyone recommend any code generators, bean builders, etc, etc that can make the whole process faster? webAppWriter.com has 33 struts database access samples, downloadable, viewable, etc, all generated by it's own code generator. The code generator is still proprietary until I attract enough interest in my little practice to quit using it as a magnet. You are welcome to use it right on my server, until the generator is opensourced. It emails you the code when you click the generate button. Recently updated to provide 3 different MVC browse views for each new table and several other new features. Download a sample, or generate a new sample without even typing. Working with a couple buddies to extend it into web services and EJBs, but that may take a couple more months to get the templates written and tested. webAppWriter apps use Expresso for their database access, and for a bunch of classes that extend things such as ActionForms into friendlier objects. -- Pete Carapetyan http://datafundamentals.com Java Development Services Open standards technology for commercial profitability -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: controller servlet session lost
I believe you should be able to configure load balancing so that it is sticky and sends the same client to the same webserver each time. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: Narendranatha R Sajjala [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 12:45 PM To: 'Struts Users Mailing List' Subject: controller servlet session lost Hi, we are using 5 web servers WeblogicEnterprice where all my jsp's and servlets are residing, and we have a cluster of WLS for EJB's. Load balancing on webservers is done by third party software. Now the problem is first time user hits the website the load balancer transfers the request to one webserver where controller servlet is invoked but next request from the same user may transferred to another webserver based on load on loadbalence at that time ,i am loosing the session. is there any solution for this problem. i don't want to cluster webservers. narendra [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: Forwarding Data For A Form
Jake, Just to follow-up, this worked exactly as I would have hoped. For anyone interested, this approach is useful to handle situations where information is accumulating across multiple forms and beans each subsequent form needs some of the data from earlier forms. Off the top of my head, it seems like it would be useful to be able to stuff Objects into an ActionForward that are then made available to ActionForms for just this purpose. I don't mind using the request/session objects, but since an ActionForm will be instantiated anyway as part of the forward, it would seem to be more direct just to make Objects available at the time the ActionForward is created. Thanks a lot for the help. Jack -Original Message- From: Jack Frosch [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 10:45 AM To: Struts Users Mailing List Subject: RE: Forwarding Data For A Form Jake, Thanks for the tip. I hadn't thought of prepopulating a form and pushing onto the request object before returning the ActionForward. Is the form name (i.e. key) you store the form under in the request object the same as that set in the name property of the action tag in the action mapping? I'll give this a try as nothing else has worked like I want. Jack -Original Message- From: Jake Thompson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 10:07 PM To: Struts Users Mailing List Subject: RE: Forwarding Data For A Form I think this sounds like what I am doing. I have a form that performs an action, the goes to another form, either the same or different but a new form needs to be set. Pseudo code: Form formObject = new Form(); formObject.setId(1); formObject.setName(NEW); Request.setAttribute(formName, formObject); Return(new ActionForward(somewhere); Is this what you are trying to do? I use this because I get a form object that is partially populated and use it to look up and return a fully poplated form, I then just overwrite the request attribute with this new form. Or a form may have multiple possible actions some going to new forms of a different type, so I lookup and set some initial info and set that into the request. Hope this helps, Jake T. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 6:09 PM To: Struts Users Mailing List Subject: RE: Forwarding Data For A Form James, Isn't the Action's perform() called as a result of the Form's action being invoked and after the form's validate() method succeeds? What I'm wanting is the form input fields to be prepopulated with data sent by another Action so when the JSP form is displayed the fields are all filled in. I thought the jsp:useBean tag would work, but it didn't. (I didn't want to expose the class name of the bean to the JSP page anyway. I was hoping to stay in the Struts Model 2 framework to keep all the Java details abstracted away from the JSP developers.) Jack -Original Message- From: James Dasher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:15 PM To: 'Struts Users Mailing List' Subject: RE: Forwarding Data For A Form If I am not mistaken, the form is passed into the action.perform() as a parameter. You should be able to get/set your bean properties there. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:51 PM To: Struts Users Mailing List Subject: Forwarding Data For A Form How can I get an action form to display data generated by an action? I have a Registration action that updates a database and generates a user id. The perform() method of that action forwards an ActionForward object mapped to a Login form. I want the Login form to display the generated user ID from the Registration action. I'm not sure how to pass along the user ID so it will automatically be picked up by the Login form and displayed in the proper input field. Thanks. Jack -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: I am pushing Tomcat / Struts in my company...
Thus spake Pete Carapetyan: The code generator is still proprietary until I attract enough interest in my little practice to quit using it as a magnet. That would be wonderful. :-) I sincerely wish you good fortune, so that you can bring this to pass. I'm just sorry that I can't rustle up any work for you. I'll keep you in mind if we get struts up and going enough here. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
struts-example question
I just downloaded struts and I am trying to get the struts-example application running. Needless to say that I am new to struts. index.title is in the proper file at ~/jakarta-tomcat-3.2.3/webapps/struts-example/WEB-INF/classes/org/apache/struts/ webapp/example/ApplicationResources.properties. The exception dump is as follows: Location: /struts-example/index.jsp Internal Servlet Error: javax.servlet.ServletException: Missing message for key index.title at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0.java:444) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Root cause: javax.servlet.jsp.JspException: Missing message for key index.title can someone clue me in ? Thanks, balu Raman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: I am pushing Tomcat / Struts in my company...
The code generator is still proprietary until I attract enough interest in my little practice to quit using it as a magnet. That would be wonderful. :-) I sincerely wish you good fortune, so that you can bring this to pass. I'm just sorry that I can't rustle up any work for you. I'll keep you in mind if we get struts up and going enough here. Thanks for your concern Simon. Everything always happens when it is supposed to. It really does work OK from my little server, except when too many people are banging on it at one time. I gotta put some sleeps in it so it doesn't bog when it generates a big app. I do look forward to open sourcing it though, just because it will be easier to keep improving when a bunch of folks are working on it. Adding features is easy, but testing out new templates and stuff always seems to take a long time. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Need info for Struts Presentation
Good Day Everyone, I am preparing to give a presentation on Struts to our internal engineering staff. This is intended to be short technical presentation on Struts of about 20 minutes in length. If anyone out there has done any such presentation and has some documents (ie. PowerPoint slides) that they would like to share that would help me in my preparations please, please send it to me at my email address [EMAIL PROTECTED] Thanks in advance, Michelle -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Example of using Jmeter with Struts
Hi, does anyone have an example of using jmeter to stress test a struts app? I have downloaded the jmeter files and I am going over the docs but it looks pretty complicated. Any examples would be appreciated. Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Strategy for International/XML Project
Folks, I just figured out that my favorite XML tool (XMLSPY) has unicode support. Robert Jackson -Original Message- From: Robert Jackson [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 7:33 AM To: 'Struts Users Mailing List' Subject: Strategy for International/XML Project Folks, I will be arechtecting/developing an application as follows: 1) Support for English/Spanish Presentation 2) No Database Available 3) All site data stored in flat files or XML files 4) XML messages sent/received from third parties 5) App Server will be Weblogic 6.1 6) Use cookie to store user name, address, phone, etc... 7) Use third party Applications (via HTTP) to book reservations, map vicinity etc... 8) Need Admin Interface to Manage Spanish/English Content I would appreciate your experiences/ideas about the best way to Architect this application. Here are some things I've been thinking... 1) We will Struts!!! 2) Use ApplicationResources file to contain all presentation strings 3) Is Log4J better than servletcontext.log()? 4) Use SSL to transfer user credit card info 5) Use JDOM/Digester to work with XML messages 6) How to service XML (XML-RPC, Weblogic Services, Message Beans, Struts Actions via HTTP)??? 7) Which struts features can I use for Cookies? logic:present for testing, what about setting? 8) I'm comfortable with DTDs, should I use schemas instead? Your ideas will be appreciated... Thanks, Robert Jackson -Original Message- From: Freek Segers [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 5:42 AM To: Struts Users Mailing List Subject: Re: Dynamic properties in ActionForms with custom tag Hello again, I've partially solved my problem. I found the new commons-beanutils package that has new methods in PropertyUtils (getMappedProperty() and setmappedProperty()). To solve my second problem I now hardcoded my form bean's name into the custom tag implementation to look it up in pageContext. However, my struts release (version 1.0) doesn't populate the form bean when I submit the form. I the servlet log I do see that Struts looks up and recycles the form bean and it logs that it populates the form bean but the dynamic properties' setter method isn't called. Do I need a new struts release that uses the common-beanutils package. If so, which build has support for this. Thanks again, Freek Segers on 03-01-2002 08:51 you wrote: First, I've created a custom tag that creates different types of HTML form fields. The number of fields generated varies and the names of the fields are dynamic. I can't figure out how to let Struts populate the ActionForm that's linked to the Action that handles the form. I thought I read somewhere that you can use some feature of the JavaBean specs to tell Struts what method to call (maybe by using PropertyDescriptors?), but I can't find anything about this. Second, I don't know how I can restore any previously submitted values when the form is shown for a second time, for example in case of a validation error. Do I have access to the ActionForm from a custom tag implementation somehow? Or can I let the ActionForm set properties in my custom tag? I've been looking at the source code for the Struts html:select-tag but found no clues to how Struts manages to make the last submitted item selected when the form is redisplayed. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
precompile struts page
Hi, I need to precompile the struts page. I deploy the whole jsp pages as a filename.war file.(I'm using Weblogic 6.0) When I went through the Weblogic 6.0 documentation, I found the Weblogic 6.0 has a tag: context-param param-nameweblogic.jsp.precompile/param-name param-valuetrue/param-value /context-param but when I put it in web.xml file. it doesn't work. any suggestion would be appreciated! Thanks a lot. Gang Gao
RE: Forwarding Data For A Form
Let's assume your jsp is named login.jsp and that it has a corresponding form bean named LogonForm. In the forwarding Action instantiate an instance of Logon Form and then put it on the request (using setAttribute). i.e. LogonForm logonForm = new LogonForm(); logonForm.setUserName(milton); ... request.setAttribute(logonForm, logonForm); If your struts-config.xml has an action mapping with the bean name defined as logonForm and the form in your login.jsp forwards to this action mapping, then the fields will be prefilled using the form bean created in your calling action.
Re: Struts with BES 5.0 problem
I don't have a full answer for you, just some info. I have had problem with the digester (this seems to be where you are having problems also) with the following configuration: JDK 1.4.0b? Apache (latest version ...not sure exactly) mod_webapp (latest version) Tomcat 4.0.1 (I think latest version) Red Hat 7.2 I had trouble parsing most XML documents. If I ran without apache mod_webapp and just tomcat serving the HTTP it could parse the xml and deploy my webapp. If I went back to JDK1.3.1 I also could deploy the webapp (using apache tomcat or just tomcat). Not sure what all this means. just that it has something to do with the new XML parsers included with JDK1.4.0. I think the digester has some debugging that may help. I had to hack the struts code to turn it on. If you are using jdk1.4, fall back to jdk1.3 Sorry I can't be of more help. Mark Whelan wrote: G'day, Sorry for the huge mail. I'm trying to get struts working with Borland Enterprise Server 5.0. I realise not many of you would be using this app server, fewer still using 5.0 but I've had no luck with Borland's own newsgroups with this one, so I was hoping some in the struts community could be of help. Cheers Mark *** message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Parsing error processing resource path /WEB-INF/struts-config.xml at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1336) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:911) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:671) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) 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.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) 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.StandardContext.invoke(StandardContext.java:2408) 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.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: 1013) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1108 ) at java.lang.Thread.run(Thread.java:484) root cause java.net.MalformedURLException: unknown protocol: besjar at org.apache.struts.digester.Digester.resolveEntity(Digester.java:611) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit y(DefaultEntityHandler.java:750) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse t(DefaultEntityHandler.java:566) at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java :1139) at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc anner.java:2145) at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.j ava:2100) at
Browser timed-out while action still going on
Hello everyone, I have a file upload process that could take up to 1 hour to finish. It always returns some ActionErrors to the input page when done. I have the following questions: 1) I observed that the browser timed-out and return to the input page but the upload process still running in the background. What happened if the session timed-out, does the process gets stopped? (I could tell you empirically but it's still going on right on) 2) if the session has not timed-out and the user browses around, would the list of ActionErrors be returned to the user session when the action is done? I need to preserve the Actin Errors somehow. 3) Is there any way to display progress status? 4) Can the action spawn another thread for the upload process and return control back to the user and let the process thread doing its thing? Thank you for your time and response. Thinh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Newbie question
Hello, I've just started looking at Struts, and I'm trying to figure out how to set an action as the default file for the webapp? For example, I have an index.do Action, and I'd like that served by default instead of index.htm[l]. Is this possible? Thanks, -Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Documentation for struts-config.xml?
Hello all... Another newbie question: is there any documentation for struts-config.xml? Thanks, -Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Documentation for struts-config.xml?
Check the following dtd: http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd -Original Message- From: Mark Woon [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 5:50 PM To: [EMAIL PROTECTED] Subject: Documentation for struts-config.xml? Hello all... Another newbie question: is there any documentation for struts-config.xml? Thanks, -Mark -- 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]
index.do as welcome file?
Mark Woon wrote: I've just started looking at Struts, and I'm trying to figure out how to set an action as the default file for the webapp? For example, I have an index.do Action, and I'd like that served by default instead of index.htm[l]. Is this possible? After looking at the struts-config.xml DTD (thanks, Muthu!) , it looked as if the unknown attribute would solve this problem, but a quick trial of action path=/index type=test.IndexAction unknown=true /action showed that this isn't the solution that I'm looking for. Am I doing something wrong? Is ther another way to go about this? Thanks, -Mark
Questions on Actions
Hello all... I've got a couple more questions I'm hoping someone can help me with: 1) What's the difference between action include and action forward if they both target a JSP page? Is it the same as jsp:include vs. jsp:forward (I don't see how it could be)? 2) After an action include or action forward, how do I specify what the next action to take should be? Must it be static, or can the action by dynamic, like a call to action type? Thanks, -Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Another Question on Actions
Hello all... Last question tonight, I promise: Can an Action class forward to/include a JSP or HTML page that is neither listed in global-forwards nor defined as a legitimate forward in an action tag in struts-config.xml? Thanks, -Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: index.do as welcome file?
Mark Woon wrote: Mark Woon wrote: I've just started looking at Struts, and I'm trying to figure out how to set an action as the default file for the webapp? For example, I have an index.do Action, and I'd like that served by default instead of index.htm[l]. Is this possible? After looking at the struts-config.xml DTD (thanks, Muthu!) , it looked as if the unknown attribute would solve this problem, but a quick trial of action path=/index type=test.IndexAction unknown=true /action showed that this isn't the solution that I'm looking for. Am I doing something wrong? Is ther another way to go about this? Thanks, -Mark You can do the same thing by just having a index.jsp page that just forwards to your index.do servlet. Barry -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Need info for Struts Presentation
Michelle Popovits wrote: Good Day Everyone, I am preparing to give a presentation on Struts to our internal engineering staff. This is intended to be short technical presentation on Struts of about 20 minutes in length. If anyone out there has done any such presentation and has some documents (ie. PowerPoint slides) that they would like to share that would help me in my preparations please, please send it to me at my email address [EMAIL PROTECTED] Thanks in advance, Michelle -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Sorry I don't... but I wish you luck. The managment at my company are Microsoft sluts. :) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Newbie question
Mark Woon wrote: Hello, I've just started looking at Struts, and I'm trying to figure out how to set an action as the default file for the webapp? For example, I have an index.do Action, and I'd like that served by default instead of index.htm[l]. Is this possible? Thanks, -Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] One way is to just use a index.jsp that forwards to an action. Example from http://www.husted.com/struts/ % /** * Redirect default requests to Welcome action. * * @author Ted Husted * @version $Revision: 1.2 $ $Date: 2001/04/24 $ */ % %@ page language=java % %@ taglib uri=/tags/struts-logic.tld prefix=logic % logic:forward name=welcome/ have fun, Barry (btw great site Ted) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts JBuilder 5
Charlotte wrote: Hi Yes it is possible to use JB5(Pro/Ent) without the opentool plugins from borland - but - life is a whole lot easier if you do use them. - Without the tools you will have problems deploying the JB generated war files - the tld's will be excluded!! I would also suggest using ConfiguredClasspathTomcatSetup (attached) from David White: [EMAIL PROTECTED] . Davids plugin replaces the functionality of one of the borland opentools and allows use of Tomcat 4.0.1 with JB5. David Bolsover T:+44(0)1614276920 F:+44(0)1614276922 M:07773428118 E:[EMAIL PROTECTED] -Original Message- From: Sushant Patney [mailto:[EMAIL PROTECTED]] Sent: 04 January 2002 08:36 To: 'Struts Users Mailing List' Subject: Struts JBuilder 5 Hi All, Can anyone please tell me the meaning of Struts support for JBuilder 4 /5 If struts is a Java framework , it should be supported by any IDE. 1) Is there anything special supported by JBuilder for Struts. 2) What is the need for any plugin for JBuilder to work with Struts. I am using JBuilder 5 and will be suing Struts . Please let me know of any special features of the combination / Tips. Thanks in Advance -Sushant -- 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] David, Is there any way to use JBuilder 5 PERSONAL with this plugin? Barry -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]