Re: display message on success
On Mon, 8 Mar 2004, as as wrote: I do it this way as well, but I use ActionMessages to store the specific message, and have the tags to display it in a base jsp that is used by all my forms via tiles. So, in my BaseLayout.jsp, I have this that shows messages that aren't errors at the top of the page: logic:present name=userMessages scope=request span class=messageText html:messages name=userMessages id=userMessages bean:write name=dotMessages /br / /html:messages /span /logic:present In an action, I can then do this: ActionMessages messages = new ActionMessages(); messages.add(formUpdated, new ActionMessage(form.updated, Form Name)); saveMessages(userMessages, request, messages); If you wanted to send them back to the input page, then you can return mapping.getInputForward() if you have the input value in your action mapping. Since all of my jsps use the base layout, it doesn't really matter where I forward them, if I save a message in the request under the key userMessage it will show up on top of the page. -- Melissa L Kelley www.stuology.net -- one strategy could be to reuse the same jsp- initial.jsp (your jsp name) and add a snippet there that says: logic:present name=your beanname and then add the code for the display message here-example:h2Success! Your task succeeded. /logic:present or something of that sort Thanks! [EMAIL PROTECTED] wrote: Hey guys, Let's say I have an html form that maps to an ActionForm. After the user submits the form, I would like to forward back to the html form and display some kind of success message. What's the best way to do this? Roy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Oldest Language
On Thu, 8 Jan 2004, Heather Marie Buch wrote: I think it's mathematics. -- Melissa L Kelley [EMAIL PROTECTED] www.stuology.net -- I thought it was COBOL. Heather On Thu, 8 Jan 2004, David Erickson wrote: If your religious its Ademic, the language spoken by adam. -David - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 08, 2004 11:49 AM Subject: [OT] Oldest Language Hi, If anyone of you might be wizard of liguistics facts...may I know the worlds oldest language? my apology for posting other topic..thought some one is out there to answer. -R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT - JavaScript] Setting value on a html:select/
On Wed, 29 Oct 2003, Jerry Jalenak wrote: I've got two radio buttons on a form. If the user clicks the second radio button, I need to force the value of a following html:select/ to a specific value, and disable the select. So, using JavaScript, on my radio button I fire an onclick event that run a real simple javascript function. In this function I've tried using [...] When you say disable the select, are you using the disabled attribute for the select tag to accomplish this? If so, then the value of that form element will not be sent with the HTTP request. If you want them to not change it, set it to readonly instead of disabled. 'Doh!' moment, but how do I do this? TIA! Jerry Jalenak -- Melissa L Kelley [EMAIL PROTECTED] www.stuology.net -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT - JavaScript] Setting value on a html:select/
On Wed, 29 Oct 2003, Jerry Jalenak wrote: Melissa / James - Thanks for the replies. It does have something to do with setting the 'disabled' attribute to 'true'. Unfortunately, per W3C spec, the select/ tag doesn't support a 'readonly' attribute, only a 'disabled' attribute. Do I need to disable the options? or is there a better way to not allow a user to select a different option? You could set all the options but the one you want selected to disabled. I think how it will work in Mozilla is the select menu will still be a drop down, but all the disabled options will be grayed out and not selectable. I don't think IE will support this though. Of course, since you'd be validating on the server side, users who could still select something else would get a nice message telling them that valueB can only be foo when valueA is bar, yes? -- Melissa L Kelley [EMAIL PROTECTED] www.stuology.net -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: J2EE IDE
On Wed, 27 Aug 2003, William T Hansley wrote: External Editor - integrates emacs (XEmacs) and vi (Vim) with NetBeans. More editors can be integrated as well although the external editor team is currently focusing on the above two editors. I've never tried the vi support, but I am a happy NetBeans user. My vote has to go to: Free: Eclipse Not Free: IDEA - If you can get your company to buy this for you, go for it. IntelliJ also had a special around last December - January where you could buy an IDEA license for $150. Maybe they will do that again? Also, both Eclipse and IDEA have vi plug-ins. I just use vim when I want fast editing, so I can't say how good they work. I can only say that I've seen them. Eclipse: http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id=331 IDEA: http://www.intellij.org/twiki/bin/view/Main/VimPlugin -- Melissa L Kelley [EMAIL PROTECTED] www.stuology.net -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Re: struts war files in weblogic
On Mon, 11 Aug 2003, Gregory F. March wrote: I have my ant script put my war in the directory: .../config/mydomain/applications I also have a target that can put the exploded war in the same place. This is with WLS 6.1 SP4. I believe the same works for 8. Yes, except it will be (for 8.1 sp1) .../user_projects/domains/mydomain/applications if you picked the defaults when you ran the configuration wizard. You could have changed where you domain directory is located. If you are running your server in development mode, Weblogic will poll for applications to deploy in that applications folder under your domain directory. There is also an Ant task available with Weblogic that will allow you to use the deployer tool from Ant. For development, I use Ant to copy files to an exploded directory under that applications folder and use the Weblogic deploy task to reload the app when necessary. Actually, I use Ant to do about everything. Now, if only Ant would go and get me coffee ... -- Melissa L Kelley [EMAIL PROTECTED] www.stuology.net -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Poolman?
On Thu, 26 Jun 2003, bill blackmon wrote: The first place I would look would be with your app server. If your app server does not provide this service, then You can still download Poolman from SourceForge http://sourceforge.net/projects/poolman/ You can also look in the Jakarta-Commons DBCP http://jakarta.apache.org/commons/index.html I'm looking for connection pooling for a Struts app. Everyone recommends Poolman but it's discontinued. Can anyone recommend something else or tell me where I can download Poolman? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Melissa L Kelley [EMAIL PROTECTED] www.stuology.net -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Weblogic 6.1 Compatibility Problems
On Fri, 30 May 2003, Yves Sy wrote: Pardon me for not looking at the source to confirm this, but my guess on what your problem is that the bean tag will try to convert your bean property to a String before rendering it. Try making your property an Integer instead of an int and see if it renders correctly. --Melissa Hi! I am currently involved in a project that uses Struts 1.1 (RC1) on Weblogic 6.1. We noticed that there seems to be a problem with Struts' bean:write tag when the property in the bean that we want to display is NOT of type String. The String properties display fine but properties of other types such as int produce a Cannot find key org.apache.struts.action.ACTION_MESSAGE error message or something similar to that. We were able to confirm that our bean does indeed contain the int value we want to display because it worked just fine when we used a scriptlet to display it. To elaborate: bean:write name=myBean property=myProperty.name/ works fine because name is a String... but... bean:write name=myBean property=myProperty.id/ does not work since id is of type int. Anyone aware of this problem with Weblogic 6.1? -- Melissa L Kelley [EMAIL PROTECTED] www.stuology.net -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Velocity
On 30 May 2003, Met @ Uber wrote: Try looking at Roller: http://www.rollerweblogger.org/page/project You can download the source from Source Forge: http://sourceforge.net/project/showfiles.php?group_id=47722release_id=153810 Could anyone point me towards some good resources on using struts and velocity together? I get the general idea, it replaces JSP, but how do I set it up within my struts actions (and anywhere else needed for use within struts)? Thanks in advance, ~ Matthew -- Met @ Uber [EMAIL PROTECTED] Uberstats - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Melissa L Kelley [EMAIL PROTECTED] www.stuology.net -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: 12 month contract - Toronto - immediate start
On 4 Apr 2003, Scott Barr wrote: Being female, I had to chuckle at that one ;) Thats because being males, we can only do one thing at a time!! Scott www.exergonic.com.au On Fri, 2003-04-04 at 13:22, Kwok Peng Tuck wrote: I'll be 46 years old before I qualify for that job :) . Andrew Hill wrote: I see no struts here. And their minimum required experience adds up to 21 years... -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Taglib reference and IntelliJ
On Fri, 28 Mar 2003, Steve wrote: You need to add your tld as a resource. Go to Options - IDE Settings - Resources. Then add them one at a time. Example: URI=/WEB-INF/tlds/struts-bean.tld Location=pathtofileonfilesystem I am having probems resolving my taglib uri reference in my .jsp Can anyone that uses IntelliJ shed some light on this for me? I am running 3.0.2 build #696. I have enabled web support with the document root as: C:\jakarta-tomcat-4.0.4\webapps\test and the snip from my web.xml is : taglib taglib-uri/WEB-INF/tlds/struts-bean.tld/taglib-uri taglib-location/WEB-INF/tlds/struts-bean.tld/taglib-location /taglib Now from my .jsp I have the following: %@ taglib uri=/WEB-INF/tlds/struts-bean.tld prefix=bean % The reference is not resolving in the IDE and therefore my .jsp (however the page does ultimately working as expected)appears with error flags. Can anyone point me in the right direction. Thanks. steve -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Taglib reference and IntelliJ
On Fri, 28 Mar 2003, Steve wrote: Hmm, strangeness because I don't have one either. My project is set up like projectname -src -jsp -lib -conf -xml -tld -properties -bin (where the IDE puts compiled classes) -build (where ant assembles my web app) Then, when I need to deploy it, I have ant compile, assemble, war and deploy. IntelliJ would only validate my tag libraries in my jsps after I added the tlds as a resource. Thanks all. Seems it had to do with not having the WEB-INF dir structure in my project dir. I was having ant create this for me. IntelliJ didn't like that :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Melissa L Kelley Sent: Friday, March 28, 2003 2:49 PM To: Struts Users Mailing List Subject: Re: [OT] Taglib reference and IntelliJ On Fri, 28 Mar 2003, Steve wrote: You need to add your tld as a resource. Go to Options - IDE Settings - Resources. Then add them one at a time. Example: URI=/WEB-INF/tlds/struts-bean.tld Location=pathtofileonfilesystem I am having probems resolving my taglib uri reference in my .jsp Can anyone that uses IntelliJ shed some light on this for me? I am running 3.0.2 build #696. I have enabled web support with the document root as: C:\jakarta-tomcat-4.0.4\webapps\test and the snip from my web.xml is : taglib taglib-uri/WEB-INF/tlds/struts-bean.tld/taglib-uri taglib-location/WEB-INF/tlds/struts-bean.tld/taglib-location /taglib Now from my .jsp I have the following: %@ taglib uri=/WEB-INF/tlds/struts-bean.tld prefix=bean % The reference is not resolving in the IDE and therefore my .jsp (however the page does ultimately working as expected)appears with error flags. Can anyone point me in the right direction. Thanks. steve -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts 1.1b3 weblogic 6.1sp2
On Wed, 12 Feb 2003, Pascal Sourisseau wrote: There is a bug in WLS 6.1 sp2 in how it read multiple class-path entries in the manifest file. This issue has been resolved in WLS 6.1 sp4, and Struts 1.1b3 will deploy quite nicely. We are just now in the process of upgrading to sp4 ourselves, so I will finally get to play with the 1.1 version with everybody else. Yippee! Hi, I've used struts 1.1b3 application want to deploy to weblogic... Some errors, exceptions occured... for struts-blank application also When i deploy struts-blank 1.02 application on weblogic it seems OK (deployement, execution)... Issues on weblogic 6.1sp2 usage ? Any suggestions ? Perhaps requirement addon ? or usage... thx Pascal -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Un Subscribe
On Thu, 16 Jan 2003, Simon Kelly wrote: I apriciate that pun was probibly not the correct word but Nice, obscure reference to a song liric that was in a tune from 25 years ago, that most pesonages of an age beneath that of three score years would not perchance to have had the delectible pleasure of listening to on an old gramaphone Seeemed a bit too long ;-) Allusion was probably the more appropriate word you were looking for. [...] You can check out any time you like, but you can never leave... Being under 30, the first thing that popped into my mind was Roach Motel, but that is roaches check in, but they don't check out. So, my second guess will be Hotel California. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: logon servlet through html forms resource not available
On Fri, 28 Dec 2001, Loren Hall wrote: There isn't a lot of detail on how you have things configured, but as far as your html form, you need to set the value of action according to the way you mapped the action servlet. So, if you used extention mapping the way the standard examples give: servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping Then your html form would need to be like so: form action=/summershow/logon.do method=post name=logon If you used a prefix mapping like so: servlet-mapping servlet-nameaction/servlet-name url-pattern/do/*/url-pattern /servlet-mapping Then your html form would need to be form action=/summershow/do/logon method=post name=logon New to this and can't access /logon action through a standard html form I'm integrating some struts functionality with a pre-existing, html based site. At index.html I'd like a login form, but don't want to force a change to index.jsp. However, i've tried action=logon, action=/summershow/logon and it says The requested resource (/logon) is not available. I figure it's a path issue vs. an access issue, but for all I know an html form just won't work. First, any thoughts why the following html form tag won't work, and second, what is the standard solution for this situation, .jsp or .html? form action=/summershow/logon method=post name=logon input name=username type=text input name=password type=password input name=submit type=submit /form responds with type: Status report message: /logon description: The requested resource (/logon) is not available. The servlet is under catalina/webapps/summershow/WEB-INF/ . . . The working code looks like this. html:form action=/logon focus=username User Name: html:text property=username size=16 maxlength=16/ Password:html:password property=password size=16 maxlength=16 redisplay=false/ html:submit property=submit value=Submit/ html:reset/ /html:form -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: loading message resources from database?
James Mitchell did this. It is called DBMessageResources. You can find the download here http://www.open-tools.org/struts-atlanta/downloads/ -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong SUFrom: Pavel Kolesnikov [EMAIL PROTECTED] SUReply-To: Struts Users Mailing List [EMAIL PROTECTED] SUTo: [EMAIL PROTECTED] SUSubject: loading message resources from database? SUDate: Mon, 2 Dec 2002 16:55:50 +0100 (CET) SU SUHello, SU SUI'd like to allow admins of my application to edit message SUresources via web interface. It seems it would be nice to SUhave such resources stored in a database instead of SUproperties file. SU SUI see it should be possible to implement loading my resources SUfrom database by subclassing MessageResourcesFactory and SUMessageResources classes from org.apache.struts.util. SU SUBut I believe I'm not the first one who needs something SUlike that. Don't you know about any open source Struts SUextension containing something like that? Or is such feature SUplanned in future version of Struts? SU SUThanks SU SUPavel SU SU -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: WebLogic/Struts/JSP performance woes...
Yes, I use 6.1 sp2 at work, and I came across the exact same problem with an app just recently, and the problem was the html. The requirement for the app is to return all results on the same page (it currently returned 100 at a time), which means the possibility for rows and rows of data (the most I've returned in testing was over 4000). The problem with ours was the fact that the table and cell widths were all relative. In that case, IE would not render the table until all the data was returned so it could determine the width that all the table cells needed to be. The solution was to make the table a fixed-width by setting the table and cell widths to a certain number of pixels (instead of a percentage) and to set the table-layout style to fixed (see the CSS2 specs at www.w3c.org). The reason that setting table-layout to fixed makes it faster is that the browser will calculate the table using only the widths of the cells and not the data in the cells. So, it will render immediately. The problem you will have is if you cannot always predict the width of the data in the cell. If it is longer than the cell width, the cell will not adjust and the data will not wrap - it will get cut off (at least in IE). Davide Bruzzone wrote: Greetings all... I'd like to try to find out if anyone else out there is using WebLogic (We're using version 6.1 SP2) with Struts and/or just JSPs that might have some performance tips that they might be able to share... Snip -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: A newbie question.
On Tue, 29 Oct 2002, Josh Berry wrote: My other stumbling block was in using a DataSource. I was able to setup the DataSource using Struts, but was not happy with the way that it required doing the database access actually in the Action classes. Instead, I was wanting the action class to be a checklist. Basically, I try to keep my actions as a simple series of calls into some business classes I wrote. In order to do this, I went through the extra effort of setting up a JNDI dataSource in Tomcat so that my business classes could all get to it. Was there another way I should have done this? Does what I am saying make sense? This is how I go about it as well. I have a datasource set up in my container. I access that datasource using jndi, and do no do that in my Actions. This topic cycles through here every now and again. Try a search for DAO in the archives at http://nagoya.apache.org/eyebrowse/SearchList?listName=struts-user;jakarta.apache.org I'm sure some useful threads on other people's approach will turn up. And, finally, I know this is offtopic but does anyone have a good recommendation for a free email client for windows that would allow me to view threaded messages? As it is right now, I just get a long list of these emails everytime I log in. In fact, this is one of the reasons I used to avoid mailing lists, as it is less the comfortable to read. I believe mutt would do what I want, but I can't use that during the day as I don't believe it is available for windows. I haven't used Eudora (www.qualcomm.com) in awhile, but there is a free version available if you want to deal with advertisements. I use pine, and there is a Windows version for that (http://www.washington.edu/pine/). I use FreeBSD, so I can only attest that the Unix version does threading and filtering just fine. I haven't tried the Windows version. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: JDK 1.4 and struts
I've started using Struts 1.1 on Linux (Redhat 7.2) using Tomcat 4.1.12 with Sun's JDK 1.4.1. So far, I haven't run into any problems, but I have only been working on it for a couple of days. And the struts-example.war deployed like a champ. This is with one of the more recent nightly builds of Struts. That being said, I'm off to go find some wood. I've got some knocking to do. On Sat, 19 Oct 2002, email(I believe that would be John) wrote: Someone stated recently that Struts DOES WORK w/ JDK1.4. Which OS is that? And does anyone have positive experience using Struts w/ JDK1.4 on Linux? -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: Searching the Archives...
On Thu, 10 Oct 2002 [EMAIL PROTECTED] wrote: could someone please point me to the best method of searching: http://www.mail-archive.com/struts-user@jakarta.apache.org/ The best method would be to not use it at all. I guess I want Google to search this archive for me. :-) I have much better luck using Google or using this: http://nagoya.apache.org/eyebrowse/SearchList?[EMAIL PROTECTED] -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Searching the Archives...
On Thu, 10 Oct 2002, Morycz, Felicia V wrote: Thank you very much for this tip, Melissa. I didn't know about this link. I hate asking questions that I know have already been answered. Hopefully this new way to search (new to me anyway) will cut down on the repeats and help find solutions more quickly. Is this link on the Struts website? It is on the Struts site at http://jakarta.apache.org/struts/resources/archives.html. It is listed as the ASF List Archive. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: html:link confusion
This is really a Javascript issue, but here's the problem. If you open the window in the onclick event of your anchor, you don't also want to specify an href. In straight HTML, you might do: a href=javascript:void() onclick=openWindow(url,name,features) That's why you're getting the page in the popup and in the parent window. As for parameters, the only thing you're specifying is to have scrollbars. Which is the default. You'll need to give it a little more detail if you want a window different from the default window. Something like 'height=400,width=600,scrollbars=no,resizable=yes,status=no,location=no,toolbar=no,menubar=no' Melissa [EMAIL PROTECTED] == All, I had the code below in my jsp and everything was fine. It worked like it was supposed to. html:link href=reportReceived.do name= investigationEmploymentHistoryForm property=map target=_blankview Employment History Report/html:link Then the users decide that they didn't like the fact that the new window had all the scrollbars and menus and everything on the top and so I did the next piece of code below: script language=JavaScript !-- function openWindow(theURL,winName,features) { window.open(theURL,winName,features); } //-- /script html:link href=reportReceived.do name= investigationEmploymentHistoryForm property=map onclick=openWindow ('reportReceived.do','','scrollbars=yes')view Employment History Report /html:link and it stopped working. I got the pop up without all the needed parameters as well as going to the new page in the parent window. What am I doing wrong? Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts with Jbuilder 6
On Fri, 20 Sep 2002, BARADAT Benoit wrote: Okay - to get started developing a Struts app with JBuilder 6 1. Go to http://jakarta.apache.org/struts/resources/index.html and look through the Tutorials. I know there were some in there for JBuilder5, and it there isn't much of a difference. 2. Search through the archives of this mailing list. I know somebody posted needing help with JBuilder6 in the recent past. You may even find a post in there about a JBuilder6 tutorial. You can most effectively search (I have found) using this: http://nagoya.apache.org/eyebrowse/ If that fails you, then use Google. 3. Visit Borland's Code Central and take a peek through the open tools. There are some in there for doing Struts development: http://codecentral.borland.com -- stu: www.stuology.net are you sure ? I tryed to find the word Struts in this page. I didn't found it !!! - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, September 20, 2002 2:29 PM Subject: RE: Struts with Jbuilder 6 Start here: http://www.tuxedo.org/~esr/faqs/smart-questions.html http://www.tuxedo.org/~esr/faqs/smart-questions.html -Original Message- From: BARADAT Benoit [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 3:10 AM To: Struts Users Mailing List Subject: Struts with Jbuilder 6 hi ! I would like to use Struts with Jbuilder 6. How do I process ? Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: javascript confirm
On Wed, 18 Sep 2002, Chris Wall wrote: Since you didn't give an error message to help say why it isn't working, all I can say it to try this: html:cancel onclick=return window.confirm('Cancel Record?'); / -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong Why doesn't this work? html:cancel onclick=return confirm('Cancel Record?');/ Thanks. -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: struts 1.1b2 with Weblogic 6.1 struts 1.1b2 with Weblogic6.1 deployment problem
Chance are the problem is coming from the manifest file in the struts jar which isn't compatible with Weblogic. Well, actually, Weblogic not being compatible with the specs. This was introduced with sp2. Struts 1.1b2 will deploy fine with sp1, if that is an option for you to go back. I've had the same problems testing sp3. Actually, I've had worse problems testing sp3. If using sp1 is not an option, then start playing with the class-path entry in the manifest file. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong Hi, I'm trying to use struts 1.1b2 with Weblogic 6.1 but while deploying the application I got this error: weblogic.j2ee.DeploymentException: Could not load esales - with nested exception: [java.lang.StringIndexOutOfBoundsException: String index out of range: -1] at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:431) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.deploy(Application.java:260) at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185) at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:362) at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:296) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1388) at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:881) at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847) at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295) at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356) at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331) at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:392) at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:298) at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356) at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331) at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204) at $Proxy8.setDeployed(Unknown Source) at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:876) at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:841) at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733) at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206) at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1050) What is the problem? Thanks Ege -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [Struts Tip] # 10 Use Struts JSP Tags to create dynamic JavaScripts
On Tue, 3 Sep 2002, Rob Leland wrote: Try this link: http://husted.com/struts/tips/010.htm Ted Husted wrote: For more see http://husted.com/struts/tips/010.html Ted, I got File not found 404 when clicking on this link. -Rob -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [VOTE] Should this list discontinue it's long, treasured heritageof relaxed fridays?
On Fri, 30 Aug 2002, Eddie Bush wrote: Do you feel this list should discontinue it's long heritage of relaxed fridays? ( ) Yes ( X ) No And I'm sure for those who think that filtering is too difficult, the Friday posters could happily agree to just label Friday posts as [FRIDAY] to make filtering easier. Yes? (Although I'm getting the feeling that you need to filter for [BEER] as well.) -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT Jokes] Are we getting off the topic
On Wed, 28 Aug 2002, Jerry Jalenak wrote: It almost made me think it was, which is nice now but will be terribly dissappointing when my alarm sounds tomorrow morning... I was a little surprised when I could finally take time to skim through the Struts mail to find a long thread about a cartoon cucumber (not having kids, I had to look that up - it is good, huh?) I would cast a vote for the separate mailing list. That has worked well for other lists that I've been on. Then the people who really hate seeing off topic posts don't even have to worry about getting filters set up correctly. I've even hosted a few small off-topic on my server just because it makes the on-topic list more pleasant once people got to know one another better. --Melissa (or Stu, or Emily) -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong Probably. Is it friday? -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 4:37 PM To: Struts Users Mailing List Subject: RE: [OT Jokes] Are we getting off the topic Larry Boy and the Angry Eyebrow.. Very cool. But honestly. Are we just being mean now to continue this thread. THis a good reason to have a [EMAIL PROTECTED] Brandon -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 3:36 PM To: Struts Users Mailing List Subject: RE: [OT Jokes] Are we getting off the topic I'm looking forward to that one being available on DVD! (We chose not to do the TV thing, so we watch stuff on DVD on the computer! :-) Rack, Shack and Benny is good! :-) -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 4:34 PM To: 'Struts Users Mailing List' Subject: RE: [OT Jokes] Are we getting off the topic My bad. Haven't watched Rumor Weed with my daughter for awhile :-) Jerry -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 4:28 PM To: Struts Users Mailing List Subject: RE: [OT Jokes] Are we getting off the topic actually is is: larry-boy I AM THAT HERO! /larry-boy -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 3:28 PM To: 'Struts Users Mailing List' Subject: RE: [OT Jokes] Are we getting off the topic larry-boy I AM THAT SUPERHERO! /larry-boy -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 4:30 PM To: Struts Users Mailing List Subject: RE: [OT Jokes] Are we getting off the topic But your a big strong superhero James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 5:25 PM To: 'Struts Users Mailing List' Subject: RE: [OT Jokes] Are we getting off the topic Hasta la Vista, Weedy! -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 4:25 PM To: [EMAIL PROTECTED] Cc: Struts Users Mailing List Subject: RE: [OT Jokes] Are we getting off the topic nasal-voice So did ya hear the one about Alfred? /nasal-voice James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 5:20 PM To: 'Struts Users Mailing List' Subject: RE: Are we getting off the topic Isn't this entire thread OT? -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 4:16 PM To: Struts Users Mailing List Subject: RE: Are we getting off the topic Excuse me but the joke List is over that way --- :-)) Brandon -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 3:16 PM To: 'Struts Users Mailing List' Subject: RE: Are we getting off the topic There's one in every crowd :-) Jerry -Original Message- From: James Mitchell
Re: struts with Jbuilder6
On Tue, 21 Aug 2001, Jenny wrote: You can try this tutorial link for getting started with JBuilder 5 and work from there to get it working with JBuilder 6. There are plug-ins for JBuilder and Struts at Borland's Code Central site as well (look in open tools). Tutorial: http://www1.tramsasp.com/?section=dev Code Central: http://codecentral.borland.com/codecentral/ccweb.exe/home I haven't used JBuilder 6, but I can say that I haven't had any problems developing struts apps with JBuilder 5. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong Greetings: I want to use struts with JBuilder6, but I don't know how to set up it. Could you help me if you know how to do it? Thank you very much. Jenny __ Post your ad for free now! http://personals.yahoo.ca -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: when to use Struts
On Sun, 18 Aug 2002, neal wrote: In the short term, it may take longer. It really depends on how easily you can learn, which nobody here can really gauge. The best way to determine that would be to read through the User's Guide on the Struts website, take a peek at the Javadocs, and run through a tutorial (which you can find some in the Resources section on the Struts website). The most valuable feature in my opinion would be the growing user base. Resources to learn the framework pop up everyday. There is also the consideration of other developers having to work on the code in the future. The chances that you can find another developer that knows Struts is increasing. And having a developer who already knows the framework would save time over a developer having to learn a framework. Case in point: I work in the US in the energy industry which has been seeing a lot of layoffs, my company not excluded. Our layoffs took our development base of about 35 people (which were spread out in small teams of about 5 or 6 throught the company) to 6 people. The 6 of us that survived have had to take on more applications. One of the apps that I took over was in the middle of development. The business came to me and said they were in the middle of doing some testing but they can't get to the app anymore. They wanted to show the eventual end users parts of it in a couple of days, so they wanted it to be up and running. Well, to shorten the story, the code that was checked into source control was out of date, the build file wouldn't run, and the war would not deploy. The only documentation that I had was on the business requirements. The only thing that enabled me to get that app up and running in time (and still be able to go home and sleep) was that the developer chose to use Struts, which I was using on another project and thus was familiar with. I'm also not having any problems picking up the development of the app even with the lack of documentation. The decision to use Struts by the previous developer was quite a time saver for me. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong Yeah, I know what I am saying would be like reinventing the wheel, and thus the point of using a framework (to not reinvent the wheel). However, my main concern is that learning to use this 'wheel' might take longer than building one myself. I'm sure the guys who wrote Struts are masters of the field and I have heard great things about Struts. I guess I am simply posting the question to try to get more information about it. On the surface it just sounds like one more thing to learn, and I'm just trying to gauge the value. What about Struts do you find to be the most valuable features? Thanks! :) Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HELP!!! Web App hangs after repeated queries....
On Mon, 19 Aug 2002, Jerry Jalenak wrote: Chances are you are not releasing your database resources correctly. I may be wrong, but you should explicitly close your statement, resultset, and connections using the close() method instead of setting them to null. You can use the isClosed() method of your connection to check that it really is being closed. Plus, it is generally a good idea to close them in a finally clause to make sure they are closed even when an Exception is thrown. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong I hope someone can point me in the right direction on how to resolve the following issue. Our environment is Windows NT (Service Pack 5 and 6); have also seen this on Solaris 5.8 Apache 1.3.26 Tomcat 3.3.1 Struts 1.1 Beta 2 Java 2 SDK 1.4.0_01 [cut to preserve space] QueryRecordAction cleans up the previous set of beans (if they exist), then rebuilds the beans and puts the bean back into the session. QueryRecordAction public class QueryRecordAction extends Action { PreparedStatement ps = null; ResultSet rs = null; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { HttpSession session = request.getSession(); if (session.getAttribute(results) != null) { Results results = (Results) session.getAttribute(results); results.clear(); session.removeAttribute(results); } Results results = new Results(); String queryName = (String) PropertyUtils.getSimpleProperty(form, queryName); try { DataSource ds = (DataSource) servlet.getServletContext().getAttribute(AEFA); // key for datasource in struts-config Connection con = ds.getConnection(); ps = con.PrepareStatement(SELECT name, address from aefa_order where query_name = ?); ps.setString(1, queryName); rs = ps.executeQuery(); while(rs.next()) { Row row = new Row(); row.setName(rs.getString(name)); row.setAddress(rs.getString(address)); results.addRow(row); } session.setAttribute(results, results); rs = null; ps = null; con = null; ds = null; } catch(Exception e) { ActionErrors errors = new ActionErrors(); errors.add(internal_error, new ActionError(internal.error, e.getMessage())); saveErrors(request, errors); return (mapping.findForward(error)); } return (mapping.findForward(success)); } } The success forward displays a table of all the rows that were returned. Everything works just like I would expect it to, except for Tomcat hanging after 15 or 18 queries. I've been through the code and can't find where I would have a memory leak - if anyone can spot one, or has other ideas, please let me know! Thanks! Jerry Jalenak Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at (800)388-4675. -- 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,
RE: Struts Persistence
On Fri, 9 Aug 2002, Chappell, Simon P wrote: I didn't use computers for much (or owned one myself) until I got to college, so my first had about 250Mb HDD and 8Mb of RAM. I do remember when I got my first 1 Gb drive. Now I have 1 Gb of RAM. I remember the first time I got to dial-in. It was a 2400 baud connection. Type, wait wait wait... Type, wait wait wait ... -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong My first four computers did not have hard drives. My first two didn't even have floppy drives, you had to save and load from audio tape! I think that computer number 5 had a 40Mb HDD. Computer number 6 is now gone and I don't remember any of the specs. Computer number 7 had a 4Gb HDD and now number 8 has a 60Gb HDD (it also has 1.5Gb of RAM, but I digress! :-). Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 Friday Alert I'm old enough to remember being absolutely giddy over the amount of space available on my first hard disk drive -- ten whole *mega*bytes! Whatever would I do with all of that space? /Friday Alert Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Persistence
The Apple //e was my 5th computer, but I got it only a year or so ago. The rare times I had access to a computer when I was younger, this was the one, and typically it was to play games. I keep thinking that I'm going to do something incredibly cool with it, but so far it just sits in my library. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong On Fri, 9 Aug 2002, Daniel Jaffa wrote: Oh my god, i have not though of that game in about 23 - 25 years. That was my favorite game when i was younger. My first Machine was an Apple 2e, with two 5.25 disk drives. the time before mice - Original Message - From: Bartley, Chris P [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, August 09, 2002 1:14 PM Subject: RE: Struts Persistence Ahhh, the good ol' C-64 tape drive. I remember not minding the 45-60 minute wait while Temple of Apshai (http://www.cstone.net/~rich/Temple/temple_of_apshai.html) loaded...i'd go have dinner, and by the time i was done eating i could play the game. :) I guess Rational Rose would be my present-day analog...time-wise that is, certainly not enjoyment-wise...i only use that beast if i have to! ;) chris -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Persistence
On Fri, 9 Aug 2002, Craig R. McClanahan wrote: All of this makes me grin and wonder how we ever got to where we are today. I had to do a build on a project the other day, and it annoyed me that it took over 10 minutes. I have only seen punch cards in a museum though ;) -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong On Fri, 9 Aug 2002, Martin Cooper wrote: Date: Fri, 9 Aug 2002 13:17:18 -0700 From: Martin Cooper [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Struts Persistence Whoa, this thread is making me feel sooo old! In my first job, I had to write the code on coding sheets, which were then given to a pool of drones who turned the code into punched cards. The boxes of cards would then go to the sysops, who would eventually find time to feed them into an ICL mainframe. Then I got back a code listing with all my compilation errors. Once I'd finally got the code to run, the usual early results were a two inch thick core dump. Talk about a long edit-compile-run cycle! I had that experience in college as well. It was particularly frustrating when taking my Comp Sci classes to have only twice-a-day turnaround on simple typos that led to compile errors -- so I got myself hired as the computer operator who ran the student jobs (and I could run *mine* as often as I wanted to :-). Slightly later, and much to my chagrin, my wife (a computer literate end user, but by no means a geek) figured out that punched cards gave her a lot of power over me. It seems that we were at the computer center pretty late one night, waiting for just one more run ... we all know how that goes, right? So she picked up the source code cards for the program I was working on (with no sequence numbers, of course) and said, if you don't feed me NOW, I'm going to DROP these Craig -- 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: Simple question about Struts
On Thu, 8 Aug 2002, Eddie Bush wrote: Go check out Chuck's book to see what Struts can do and how easily it can be configured. If you have specific questions about Well, would my end usrs have to program to do X? just swing by and drop us a note. There are a bunch (understatement!) of talented folks on the list that aren't scared to give their opinion. Oh, and you might also search oreilly.com articles for rolling blogger to give you some ideas of how you can automate Struts configuration type things. I haven't looked at his system in depth, but, as I recall, he builds his design on Struts (and Velocity, and ...). This is the site for Roller: http://www.rollerweblogger.org/ It has a link to the O'Reilly article. I can't say too much about it because I haven't poured through the code much either, but it deployed quite easily. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: OT: Re: Looking for C++ MVC Implementation
On Fri, 9 Aug 2002, Joel Rees wrote: We're starting up a new project and it's been dictated that we go with C/C++ CGI. But I'm interested in still following the MVC design. Well, you could follow the MVC with C/C++ by convincing whoever did the dictating to just have the component that swayed the decision to the C/C++ side written in C/C++ and still use Java for the web end. Then you can use Struts and stick with the MVC design. Although, I know, sometimes decisions are based on one person's whimsy. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: uncoupling Web Design/Web Development
On Mon, 29 Jul 2002, Jacob Hookom wrote: Well, this may not be of any help if you are in the middle of development, but I take the approach that after the business requirements have been gathered, the designers go in one corner to work on the interface and the developers go in another to work on the technical design. Then designers can create html prototypes which can be used to get the look and feel down and approved by the business client/end users, and the developers can work on the business objects. Then you can get together and tie it together using Struts. It has worked well for me so far. By the time I get back with the person/people doing the interface, most of that has been flushed out so the designers' main job is taking their prototypes and converting them to the view compenent using the appropriate tags, and any changes to the design of the pages are small. -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun Stuology -- A million monkeys can't be wrong -Original Message- From: Michael Delamere [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 1:23 PM To: Struts Users Mailing List Subject: Re: uncoupling Web Design/Web Development This may not be ideal but the way we do it is that the designers give us their static content (html pages) and we feed it into the jsps/velocity templates. That way we have more control over the dynamic elements in the webpage and they can play and fiddle with their html code as much as they like :-). Regards Michael - Original Message - From: Greg Hess [EMAIL PROTECTED] To: Struts Mail List [EMAIL PROTECTED] Sent: Monday, July 29, 2002 8:10 PM Subject: uncoupling Web Design/Web Development Hi All, I have designed a web application that is dependant on a work flow, the user interface is constructed by Web Designers and the server side is done by Web Developers. The web designers are now comfortable using the struts tags and so on but they hate the fact that they have to follow the work flow in order to see changes on a specific page. They would like to be able to view a page directly, out side the work flow in order to perform the web design. I am not sure how I should facilitate this or if I should? Any comments/suggestions would be greatly appreciated. Thanks, Greg -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
using struts-layout by Improve
I am using the Struts framework in my current application which consists of building web forms to add/edit/delete records from the database. The Struts framework saved me a lot of time - I will use Struts every time in my future projects! One weak point of the bare-bones Struts is that *it does not* provide any means for rapid building of GUI. So - when I found the Struts Layout by Improve it was going to solve EXACTLY this issue. Unfortunately I cannot get struts-layout to work. I unpacked the struts-layout.war, but when I type this URL http://localhost:8080/struts-layout/ I am getting an exception from fr.improve.struts.taglib.layout.util.LayoutUtils.getLabel(LayoutUtils.java:292). I am using Tomcat 4.0.1 and Struts1.0.1. Does anyone know what may be causing this exception? Thanks in advance Melissa Manoogian JPM STO javax.servlet.jsp.JspException at fr.improve.struts.taglib.layout.util.LayoutUtils.getLabel(LayoutUtils.java:292) at fr.improve.struts.taglib.layout.util.LayoutUtils.getLabel(LayoutUtils.java:263) at fr.improve.struts.taglib.layout.LabelledTag.getLabel(LabelledTag.java:60) at fr.improve.struts.taglib.layout.HtmlTag.doPrintHead(HtmlTag.java:134) at fr.improve.struts.taglib.layout.HtmlTag.doStartTag(HtmlTag.java:167) at org.apache.jsp.index$jsp._jspService(index$jsp.java:94) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 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.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 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:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Unknown Source) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
can TILES use existing jsp files ?
My current project is using Struts 1.0 and I already implemented about 20% of my .jsp files, without giving too much thought to the navigation. Now I want to use tiles to implement the sidebar menus for navigation. I am hoping this does not mean I will have to re-implement those .jsp files, i.e. I imagine I could simply put each of my jsp files in the place where we put body.jsp. However I am getting an error message because each of my jsp pages is using this tag bean:message key=index.title. In my struts-config.xml I added this tag for message-resource: message-resource parameter =org.apache.struts.example.tiles.dev1-1.ApplicationResources null=false I tried both: tiles for struts 1.0 and tiles for struts 1.1 with the same error message (see bellow). Searching the mail-archive I found the same error but the scenario was different - that tiles user *was not using* the ApplicationResource, but was forced to specify it anyways. In my case *I am using* the ApplicationResource but the servlet cannot find it when I am using tiles. It finds it ok if I am not using tiles, i.e. if I am using just struts 1.0. javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:735) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295) at org.apache.jsp.index$jsp._jspService(index$jsp.java:93) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 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.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 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:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Unknown Source) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Logic:iterate primitive values
Howdy. I was wondering if any of the recent builds after Struts 1.0 (post-beta) handles logic:iterate directives with primitive data types. The documentation leads me to believe that this is a planned feature for a later release... Cheers, Melissa
RE: Another question about the logic:iterate tag
I have just tried this, but the id attribute is apparently required. My guess is that this can just be an arbitrary variable... However, the bigger issue seems to be that the iterate tag isn't really suited to the retrieval of more than one oject (i.e. the hashmap's key/value pairs)... here's the old code I was hoping to convert: !--% HashMap jmap = (HashMap)request.getAttribute(hmap); for (Iterator i = jmap.keySet().iterator(); i.hasNext(); ) { String key = (String)i.next(); Object obj = jmap.get(key); % tr tdfont size=1%= key %/font/td tdfont size=1%= obj.toString()%/font/td /tr-- % } % Is there a way to integrate this into a Struts iterate tag, or should i just stick with the original code? Thanks so much for your help. Melissa (Strutting better every day) -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 11:03 AM To: [EMAIL PROTECTED] Subject: Re: Another question about the logic:iterate tag The docs say JSP bean, but the meaning there is broad. So, yes, you can do this: request.setAttribute(hashmap,hashmap); ... logic:iterate name=hashmap To use an actual bean, you would also specify the property logic:iterate name=javaBean property=hashmap which resolves to javaBean.getHashmap() Melissa wrote: Hi again. I am wondering whether the logic:iterate tag requires you to use a bean (or bean property) as the collection to iterate over. I would actually like to iterate over a hashmap that i placed in the request in my action class, but I have not determined through the user docs whether this is possible or not. Any help would be greatly appreciated! Melissa -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/
RE: Another question about the logic:iterate tag
Yes - yes, and again, yes. Thanks, Ted. To further expound (in the chance that it might help someone else), when one needs to iterate through the key/value pairs of a hashmap, instantiate the object as type Map: Map aMap = new HasMap(); and place it in the request. When you need to retrieve the elements, you can save time by using the struts logic:iterate tag as follows: logic:iterate name=map id=mapEntry scope=request bean:write name=mapEntry property=key/ bean:write name=mapEntry property=value/ /logic:iterate This works b/c the element that gets exposed as the iterator is actually a Map.Entry object, which contains the key value pairs as properties (although this utility is only available during the life of the iteration). Very useful! It reduced my code from a natty 11 lines (see below) down to 4. Feeling *much* better now, Melissa -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 1:35 PM To: [EMAIL PROTECTED] Subject: Re: Another question about the logic:iterate tag id is the name you want to give each item in the map as it iterates. For more see, http://jakarta.apache.org/struts/struts-logic.html#iterate We are about to add more indexing support, which may help you further. See the Indexed Tablibs item at http://husted.com/about/struts/resources.htm#taglibs for an early release. Melissa wrote: I have just tried this, but the id attribute is apparently required. My guess is that this can just be an arbitrary variable... However, the bigger issue seems to be that the iterate tag isn't really suited to the retrieval of more than one oject (i.e. the hashmap's key/value pairs)... here's the old code I was hoping to convert: !--% HashMap jmap = (HashMap)request.getAttribute(hmap); for (Iterator i = jmap.keySet().iterator(); i.hasNext(); ) { String key = (String)i.next(); Object obj = jmap.get(key); % tr tdfont size=1%= key %/font/td tdfont size=1%= obj.toString()%/font/td /tr-- % } % Is there a way to integrate this into a Struts iterate tag, or should i just stick with the original code? Thanks so much for your help. Melissa (Strutting better every day) -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 11:03 AM To: [EMAIL PROTECTED] Subject: Re: Another question about the logic:iterate tag The docs say JSP bean, but the meaning there is broad. So, yes, you can do this: request.setAttribute(hashmap,hashmap); ... logic:iterate name=hashmap To use an actual bean, you would also specify the property logic:iterate name=javaBean property=hashmap which resolves to javaBean.getHashmap() Melissa wrote: Hi again. I am wondering whether the logic:iterate tag requires you to use a bean (or bean property) as the collection to iterate over. I would actually like to iterate over a hashmap that i placed in the request in my action class, but I have not determined through the user docs whether this is possible or not. Any help would be greatly appreciated! Melissa -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/ -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/
RE: Tomcat - example - Missing message
Is your properties file in the WEB_INF classes dir? This is where it needs to be in order for runtime objects to access it. However, I have seen other Tomcat users with the same issue, even when it's in the right place - I believe those ppl were running Tomcat 4. If this is the case, I apologize, for I can't help you as I haven't yet worked with Tomcat. Perhaps someone else can help if Tomcat is the issue. Melissa -Original Message- From: Casazza, Robert [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 5:34 PM To: '[EMAIL PROTECTED]' Subject: Tomcat - example - Missing message I think I've followed the instructions but I'm getting a: Missing message for key index.title for the struts-example app. The properties file is there, but it doesn't seem to be able to find it??
Submitting with request parameters
Would someone kindly help me understand how one can use the struts html:submit tag to include a parameter ( it's value) with the request? I am writing a simple jsp which allows the user to submit data to a database, or clear the table entirely. I was originally thinking of sending the parameter via url rewriting, but I am also uncertain as to how one could do that via a form post in Struts... Samples or code snippets would also be useful. Thank you so much!! Melissa Web Developer
Getting session objects in an Action Form
I need to access a session object within an ActionForm class - is this possible, how? Melissa Rabin Web Developer
Trapping an html:option value
Hello. I am fiddling with an application that uses Struts html:select html:option tags, and I need to generate some DHTML depending on which option is selected. However, only the html:select tag accepts javascript events; therefore, any onClick event will be triggered when the user pulls down the menu, not when they actually make a selection. Can anyone give me some suggestions on how to trap the value selected? Code: html:select name=JNDIForm property=action html:option value=lookupLookup an Entry in the JNDI Tree/html:option html:option value=bindMake an Entry in the JNDI Tree/html:option html:option value=rebindChange An Entry In The JNDI Tree/html:option html:option value=unbindRemove An Entry In The JNDI Tree/html:option /html:select Melissa Rabin Web Developer
using html:link with javascript
Hello all. Simple question: is there a way to use JavaScript in the html:link tag so that the url pops open in a new window? At the moment, using something like: html:link page=http://myLink...; onClick = window.open(http://myLink...;) is opening the page twice...once in the original window, and once again in the new window. Any suggestions? Melissa Rabin Web Engineer
RE: Error: org.apache.struts.action.MESSAGE
Is your Message resource file in the WEB-INF/classes directory? Melissa -Original Message- From: Jon Brisbin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 11:52 AM To: [EMAIL PROTECTED] Subject: Re: Error: org.apache.struts.action.MESSAGE I also get this error on the struts example app on Tomcat 4.0b5...I've removed struts.jar from the system classpath as I say mentioned in one message, but it still seems to be suffering some classloader issues, though I'm not familiar with Tomcat 4 yet to know for sure. Everything works fine with Tomcat 3.x. Jon Brisbin - Original Message - From: Pathangi, Rao H. [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 16, 2001 10:52 AM Subject: Re: Error: org.apache.struts.action.MESSAGE Suhas I have the param-name and param-value set to the proper values but it still seems to fail, and yes, Iam using the bean:message tag. Is it true that Websphere 3.5 patch 2 has some issues with struts? Regards Pathangi RH Suhas Replied:. check if u specified the applicationResourcefile in the web.xml as init-param param-name application /param-name param-value example.applicationResource /param-value /init-param If u using bean:message tag in the Jsp then the application REsources should have been loaded before Check that Suhas - Original Message - From: Pathangi, Rao H. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 9:00 PM Subject: Error: org.apache.struts.action.MESSAGE Hi What exactly does this error mean?? I have a JSP (using a few Struts tags) with the action beans working with a couple of EJB's. I have successfully deployed it in the Websphere Test Environment using VA 3.5.3 I am trying to deploy the same application on WAS 3.5 Patch 2 and I get the following/well known error when I try to hit my JSP. If Iam correct, this has to do with the web.xml, struts-config.xml files and the addition of the servlets to the servlet container. Error 500 An error has occured while processing request:http://xxx.yyy.com/phase3order.jsp Message: Server caught unhandled exception from servlet [JSP 1.1 Processor]: Cannot find message resources under key org.apache.struts.action.MESSAGE Could some one throw some light on this puhleaseRegards Hemant Pathangi
RE: Error: org.apache.struts.action.MESSAGE
The Struts User-Guide specifies: The important thing is for the resource bundle to be found on the class path for your application. So, just like a call to a struts class in a web-app will need to be referenced under the WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib directory, you also need to have a root-relative path for any Application Resources. I place mine in the WEB-INF/classes folder as that is automatically referenced by my web container. Ant can be told to copy that file to the classes directory (as it isn't compiled), so that every time you rebuild your application your resource file will be copied into the classes dir. Hope this helps Melissa Web Engineer -Original Message- From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 12:18 PM To: '[EMAIL PROTECTED]' Subject: RE: Error: org.apache.struts.action.MESSAGE I had the resources file(properties file) in a directory in the servlet directory along with the classes. Should it be in the web-inf directory as well? (Iam trying to deploy the app on Websphere 3.5 patch 2. I have earlier successfully deployed it in the WS Test environment 3.5.3. Iam trying to use the same settings on WS 3.5 Patch 2) I guess the classes directory under web-inf is specific to Tom Cat?? Regards Pathangi RH -Original Message- From: Melissa Rabin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 11:11 AM To: [EMAIL PROTECTED] Subject: RE: Error: org.apache.struts.action.MESSAGE Is your Message resource file in the WEB-INF/classes directory? Melissa -Original Message- From: Jon Brisbin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 11:52 AM To: [EMAIL PROTECTED] Subject: Re: Error: org.apache.struts.action.MESSAGE I also get this error on the struts example app on Tomcat 4.0b5...I've removed struts.jar from the system classpath as I say mentioned in one message, but it still seems to be suffering some classloader issues, though I'm not familiar with Tomcat 4 yet to know for sure. Everything works fine with Tomcat 3.x. Jon Brisbin - Original Message - From: Pathangi, Rao H. [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 16, 2001 10:52 AM Subject: Re: Error: org.apache.struts.action.MESSAGE Suhas I have the param-name and param-value set to the proper values but it still seems to fail, and yes, Iam using the bean:message tag. Is it true that Websphere 3.5 patch 2 has some issues with struts? Regards Pathangi RH Suhas Replied:. check if u specified the applicationResourcefile in the web.xml as init-param param-name application /param-name param-value example.applicationResource /param-value /init-param If u using bean:message tag in the Jsp then the application REsources should have been loaded before Check that Suhas - Original Message - From: Pathangi, Rao H. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 9:00 PM Subject: Error: org.apache.struts.action.MESSAGE Hi What exactly does this error mean?? I have a JSP (using a few Struts tags) with the action beans working with a couple of EJB's. I have successfully deployed it in the Websphere Test Environment using VA 3.5.3 I am trying to deploy the same application on WAS 3.5 Patch 2 and I get the following/well known error when I try to hit my JSP. If Iam correct, this has to do with the web.xml, struts-config.xml files and the addition of the servlets to the servlet container. Error 500 An error has occured while processing request:http://aaa.yyy.com/phase3order.jsp Message: Server caught unhandled exception from servlet [JSP 1.1 Processor]: Cannot find message resources under key org.apache.struts.action.MESSAGE Could some one throw some light on this puhleaseRegards Hemant Pathangi
RE: Error: org.apache.struts.action.MESSAGE
I've not yet worked with websphere, so I cannot guess as to why it managed to work before. However, if you take a look at the source code for the blank struts app (provided in the 1.0 zipfile), you'll see that Mr. McClanahan placed the resource file in the classes dir. Makes sense - runtime apps need a web-root-relative place to locate resources, right? And the standard (Java Servlet Specification 2.2) is to place these resources in a common directory called classes. Least that's what I've gathered (http://java.sun.com/j2ee/tutorial/doc/WebComponents3.html is where this became apparent). Perhaps not all Java-compliant app servers follow this standard, however... Let me know how you make out. Melissa Web Engineer -Original Message- From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 12:57 PM To: '[EMAIL PROTECTED]' Subject: RE: Error: org.apache.struts.action.MESSAGE OK. I will give it a try by placing the resource files under web-inf/classes and it will be something like web-inf/classes/com.abc.def.ghi.MyResources But I wonder why it worked in the Websphere Test Environment. I neither had classes nor the lib folders in web-inf. May be it found the corresponding properties files with the setting I had. Thank You 4 your time regards pathangi r -Original Message- From: Melissa Rabin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 11:48 AM To: [EMAIL PROTECTED] Subject: RE: Error: org.apache.struts.action.MESSAGE The Struts User-Guide specifies: The important thing is for the resource bundle to be found on the class path for your application. So, just like a call to a struts class in a web-app will need to be referenced under the WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib directory, you also need to have a root-relative path for any Application Resources. I place mine in the WEB-INF/classes folder as that is automatically referenced by my web container. Ant can be told to copy that file to the classes directory (as it isn't compiled), so that every time you rebuild your application your resource file will be copied into the classes dir. Hope this helps Melissa Web Engineer -Original Message- From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 12:18 PM To: '[EMAIL PROTECTED]' Subject: RE: Error: org.apache.struts.action.MESSAGE I had the resources file(properties file) in a directory in the servlet directory along with the classes. Should it be in the web-inf directory as well? (Iam trying to deploy the app on Websphere 3.5 patch 2. I have earlier successfully deployed it in the WS Test environment 3.5.3. Iam trying to use the same settings on WS 3.5 Patch 2) I guess the classes directory under web-inf is specific to Tom Cat?? Regards Pathangi RH -Original Message- From: Melissa Rabin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 11:11 AM To: [EMAIL PROTECTED] Subject: RE: Error: org.apache.struts.action.MESSAGE Is your Message resource file in the WEB-INF/classes directory? Melissa -Original Message- From: Jon Brisbin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 11:52 AM To: [EMAIL PROTECTED] Subject: Re: Error: org.apache.struts.action.MESSAGE I also get this error on the struts example app on Tomcat 4.0b5...I've removed struts.jar from the system classpath as I say mentioned in one message, but it still seems to be suffering some classloader issues, though I'm not familiar with Tomcat 4 yet to know for sure. Everything works fine with Tomcat 3.x. Jon Brisbin - Original Message - From: Pathangi, Rao H. [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 16, 2001 10:52 AM Subject: Re: Error: org.apache.struts.action.MESSAGE Suhas I have the param-name and param-value set to the proper values but it still seems to fail, and yes, Iam using the bean:message tag. Is it true that Websphere 3.5 patch 2 has some issues with struts? Regards Pathangi RH Suhas Replied:. check if u specified the applicationResourcefile in the web.xml as init-param param-name application /param-name param-value example.applicationResource /param-value /init-param If u using bean:message tag in the Jsp then the application REsources should have been loaded before Check that Suhas - Original Message - From: Pathangi, Rao H. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 9:00 PM Subject: Error: org.apache.struts.action.MESSAGE Hi What exactly does this error mean?? I have a JSP (using a few Struts tags) with the action beans working with a couple of EJB's. I have successfully deployed it in the Websphere Test Environment using VA 3.5.3 I am trying to deploy the same application on WAS 3.5 Patch 2 and I get the following/well known error when I try to hit my JSP. If Iam correct, this has to do with the web.xml, struts-config.xml
RE: quick question : form
Hi Rama. One quick dirty way to solve your problem isto add "success" as a string to the request object in the perform method of your action class, and add a "forward-name="success" path=/originalJsp" line in your struts-config file(which will return you to the page you posted the initial request). Add some jsp code to check if the request attribute is null, which it will be when you first load the page.After the request is posted and your action class adds the string to the request (if all goes well), it should finish up by returning you to your original jsp where you will now see your "success" status message (e.g. %= request.getAttribute("status")% I hope this helps Melissa Web Engineer -Original Message-From: Rama Krishna [mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 2:07 PMTo: [EMAIL PROTECTED]Subject: quick question : form hi all, i have a form and when i submit it i perform some action and i forward it to the same form, but with a message "success". now - i want to reset all the fields (set to default value) - the url after submission is still xxx.yy?action="save", where as i want the action to be"create" i tried calling reset method before forwarding, it clears all the fields but doesn't show message "success" and the url is still ?action="save" can anyone help me?? thanks, rama.