RE: [FRIDAY] Middle East Policy
I didn't see Mark's need for waxing politically correct on this [FRIDAY] posting, especially for something this benign. A list with over a thousand members will always have someone offended at something or other--or more likely, acting offended, in order to get their kicks at neutering yet another mailing list. Don't feed Martin. Glen -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 7:45 AM To: 'Struts Users Mailing List' Subject: RE: [FRIDAY] Middle East Policy Martin pointed out to me that this may be offensive to some and divisive on the list. I hope neither occurs. It may or may not represent my political views, but in this context IT IS MERELY A JOKE. Mark -Original Message- From: David Derry [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 8:34 PM To: Struts Users Mailing List Subject: Re: [FRIDAY] Middle East Policy Mark ou're TOO MUCH!! But I love it!!! - Original Message - From: Galbreath, Mark -- -- -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[FRIDAY] RE: [OT] Interesting Friday search....
Yesterday the ServerSide web site mentioned something humorous that happens, when you type GO TO HELL, with quotes, in Google and hit the I'm Feeling Lucky button. This one should work. Glen -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 7:12 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Interesting Friday search No...the first 2 returns were in Chinese, the 3rd was a ZDnet story about Linux and Sun, the 4th was in Spanish, and the 5th was a link to aboutlinux.com. What did you get that was so funny? -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:03 PM HA HA HA...oh this good... Not sure if this has been mentioned before 1. Open up Google http://www.google.com 2. Type in replacing linux 3. Hit Search What's the first link that comes up? Notice a trend? LOL James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -- 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: Some ActionClasses Are Invoked Twice, Why?
This has happened to me--still haven't found a good solution. If the browser is IE, under some circumstances it will post/get a request twice for (in my case) PDF files. This is apparently not a Struts issue. I would test your code under a different browser, and then a different container than Resin, to rule those out as problems. The Sun forum on Servlets may also be of help. http://forum.java.sun.com/forum.jsp?forum=33 Glen -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 11:44 PM To: Struts Users Mailing List Subject: RE: Some ActionClasses Are Invoked Twice, Why? You say you know for a fact its not caused by double-clicking. I presume therefore that you have confirmed that the actual request is only received by the server once ? -Original Message- From: T. Wheeler [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 09:04 To: Struts Users Mailing List Subject: Some ActionClasses Are Invoked Twice, Why? I have found a bug in a Struts application I am developing at work, and I am having trouble figuring out what might be causing it. I will give the brief overview below, and be happy to dive into as much detail as might be needed. The problem: I have started adding logging to several of my action classes and have started noticing that some of them are being called twice in quick succession. I know for a fact that it's not a user double-clicking to submit a form; I can reproduce it (only some of the ActionClasses have this problem, but they have it consistently. To help illustrate the problem, I have an excerpt of the log below, showing that the ActionClass was called twice: // the first time the action class was called 16:41:11,897 - Checking required permissions 16:41:11,898 - Starting performTask() method 16:41:11,898 - performTask(): Got session attributes; 16:41:11,900 - performTask(): Removing old contexts 16:41:11,900 - performTask(): Calling getAvailableContexts() 16:41:12,728 - performTask(): Got 2 contexts 16:41:12,740 - performTask(): Adding LVBean[Example 1, 0001] 16:41:12,741 - performTask(): Adding LVBean[Example 2, 0026] 16:41:12,741 - performTask(): Setting roles vector 16:41:12,742 - Ending performTask() method // the second time the action class was called, 1 second later 16:41:13,039 - Checking required permissions 16:41:13,040 - Starting performTask() method 16:41:13,040 - performTask(): Got session attributes; 16:41:13,043 - performTask(): Removing old contexts 16:41:13,044 - performTask(): Calling getAvailableContexts() 16:41:13,853 - performTask(): Got 2 contexts 16:41:13,854 - performTask(): Adding LVBean[Example 1, 0001] 16:41:13,854 - performTask(): Adding LVBean[Example 2, 0026] 16:41:13,855 - performTask(): Setting roles vector 16:41:13,855 - Ending performTask() method Again, I will be happy to post code samples upon request, but I don't want to clutter the issue quite yet. Struts Version- I am using a Struts nightly build from December 2001, but I can reproduce the problem under the most recent 1.1 beta of Struts (which I downloaded earlier today). The Server- RedHat Linux 7.2, fully patched, running with Caucho Resin-2.1.2 and Sun JDK 1.3.1_04 (latest 1.3.1 JVM). I can reproduce this problem on multiple machines with several different versions of Resin (up to 2.1.4). Any ideas at what might be causing this, or how to diagnose it? Thanks in advance for any help or advice you can give. Tom -- 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: [LEGAL] RE: sites powered by struts
I thought so. In other words, nothing needed because you're not redistributing the libraries--the Apache software license explicitly covers both redistribution and use, but only explicitly requires attribution for *redistribution*. But to use the SW, e.g., Struts on the server, nothing needs to be attributed (although it would be good to do so). But Craig in last week's response wrote that you did have to, so I was unsure. I suspected 100's-1000's of sites are using Struts without attribution, because the license doesn't require it (and that managers of those sites might balk at allowing the use of Struts if the developers were required to make note of Apache on the site). Glen -Original Message- From: Donald Ball [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 5:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [LEGAL] RE: sites powered by struts On 9/11/2002 at 1:37 PM David Graham wrote: Oops, I stand corrected. I read the archive and apparently you do. I don't see this as a reason not to use struts though. It's not like people actually read those legal pages :-) Not true. If you use struts on your web site or application, you are not required to include any acknowledgements. If you distribute a web application which uses struts, your documentation must include the acknowledgements as per section 3 of the asl. - donald -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[LEGAL] RE: sites powered by struts
I noticed that neither site--the one below nor the one earlier on the Special Olympics, have the Apache copyright message on them, I thought necessary for licensing. OTOH, I'm unclear on this point, because no Struts software is actually being redistributed--the Struts libraries are just sitting on the web server, so maybe no Apache notice on the web pages are necessary. Which is the case? To me, one of the issues to take into account when deciding whether or not to use Struts is the need to place an Apache notice on the web page--your business customers may not find that acceptable. Glen -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 12:29 PM To: 'Struts Users Mailing List' Subject: RE: sites powered by struts http://shop.t-mobile.com -Original Message- From: Jefferson R. de O. e Silva [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 9:37 AM To: [EMAIL PROTECTED] Subject: sites powered by struts Hi guys, I'm in a process of trying to convince my developement team to use the struts in a new project here. Can anyone tell me any site which is using struts ? There are some people here wanting to see results Thanks in advance Jefferson -- 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]
[OT] RE: Struts and Large ResultSet
Google would seem to be a very good example of how to handle extremely large result sets. A search on America, for example, returned 36.2 million rows kept server-side, which the browser can quickly requery to get the results, 10 or so rows at a time. Can anyone surmise Google's probable approach to this? Do they actually retain DB cursors on the server side to query an additional 10 rows at a time--but given their very fast response time, I suspect they may be using some other form of non-database cursor--I'm unsure if search engines even use databases to return their result sets. Thanks, Glen - Changing data will happen. I see this kinda thing happen on google. You to a page and then when the results update the page 5 is different than it was just a minute ago on the same query. It's kinda the way things are I think. The only way to avoid this is to keep the ResultSet open and updated from the database. This is not a very good solution for high traffic sites. Brandon -Original Message- From: John Owen [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 9:50 AM To: Struts Users Mailing List Subject: Re: Struts and Large ResultSet I suggested using the ArrayList for providing a read-only view of the current state of the database. If something changes, your view would remain constant until you performed another query. If I were to provide functionality for an item in the ArrayList, such as update, I would make sure the system retrieved the latest copy of the item in question. I would not suggest keeping a ResultSet of that size in the user session. ;) I also would suggest determining if you really need to query 100,000 records at once. If so, your J2EE container, application server or client machine has to be able to handle that much information. If you devise cursors using a row limit (like rowcount, or is it rowid/rownum?) or some clever query mechanism, you can pull back data in small, but meaningful groups. Query-specific applications are database-dependent. I could devise something for Oracle 8.17 using cursors and using the limit functionality, but it would not apply to mysql and other databases. - Original Message - From: Gus Delgado [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, August 22, 2002 10:17 AM Subject: Re: Struts and Large ResultSet The only problem with returning so much data is that your ArrayList and the database can get out of sink if some else updates one of those records. Ashish Kulkarni wrote: Hi do u keep this Object in the user session??? if so, how does it affect the perforamce?? Ashish John Owen wrote:Irregardless of struts, I would suggest storing the ResultSet in an object and then maniuplating the bean (for viewing) through an Action class. I typically store data from a ResultSet in an object and put the object into a collection such as an ArrayList. Hope this helps, John - Original Message - From: Ashish Kulkarni To: Struts Users Mailing List Sent: Thursday, August 22, 2002 9:29 AM Subject: Struts and Large ResultSet Hi, Has any one handled lasgre result set using struts, like my sql query returns ablut 100,000 records but i want to show only 20 records per page, and then when the user clicks next, want to show the next 20 .. -- 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 heritage of relaxed fridays?
Do you feel this list should discontinue it's long heritage of relaxed fridays? ( ) Yes ( X ) No -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Result paging for site search results
Thanks, Joe, for alerting the list to this display taglib--I just looked at the link you provided--it looks very professional/displays very well. Glen -Original Message- From: Joe Barefoot [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 2:03 PM To: Struts Users Mailing List Subject: RE: Result paging for site search results Simon, I'm not sure if you are handling very large ResultSets and need database-aware paging (i.e., user clicks next, and the next 25 results are fetched from DB, vs. having them all in a Collection that you are paging through in-memory). If you aren't handling very large volumes, I suggest you check out the very savvy display taglib (link below). If you may be handling large volumes in the future (but not right now), it can easily be replaced later with a custom paging implementation. It works well in conjunction with Struts; basically, you just stuff your Collection into the request, and the tag uses Struts-like syntax plus the commons utilities to access properties of the objects in your collection. Sorting and paging are supported (and style classes), and you can add dynamic output to table rows using a TableDecorator class that uses the Decorator pattern to 'massage' data from your Collection objects. Very simple, and very well documented w/ examples, JSP source, etc. http://edhill.its.uiowa.edu/display/ peace, Joe -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 10:49 AM To: 'Struts Users Mailing List' Subject: RE: Result paging for site search results This very topic was discussed at length just a couple of days ago. Check the archives: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ Mark -Original Message- From: simon.o'[EMAIL PROTECTED] [mailto:simon.o'[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 12:59 PM To: Struts Users Mailing List Subject: Result paging for site search results All I am a newbie so if this question sounds a bit simple don't shoot... I am developing a search page and want to break the results into pages of containg 25 results per page. I know I can use the offset and length parameters on the iterator tag but I can't seem to be able to pass the formBean maintaining the results data to the next page.. any ideas Thanks in advance. Simon. -- 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: newbie:way to avoid restarting tomcat
Only issue I think is that just V4.1 (or more recent) of Tomcat has this functionality. -Original Message- From: John Yu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 1:51 AM To: Struts Users Mailing List Subject: Re: newbie:way to avoid restarting tomcat This may help: http://www.scioworks.net/devnews/strutsDistilled/topics/genera l.html#reload At 11:04 am 21-08-2002, you wrote: Hi! I'm a struts newbie :) I find it very time-consuming to change my bean codes, recompile it and reload tomcat to test the changes... and go over the same process again and again. Does any of you have ideas on how to shorten this cycle? Or is there a way to avoid restarting tomcat everytime i made a change aside from setting the reloadable=true in context tag in tomcat's server.xml config file? Thanks! -- John Yu Scioworks Technologies e: [EMAIL PROTECTED] w: +(65) 873 5989 w: http://www.scioworks.com m: +(65) 9782 9610 Scioworks Camino - Don't develop Struts Apps without it! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
data Structure to use for a list of data
Hello, Very common master-detail pattern: User enters a query and gets a multi-column master list of items matching that query. Then the user selects an item in the list to get to a detail form on that item. The query/JDBC and detail form I can handle, but what Java data structure (created in the action object) should I use to hold the master list items: assume about 4-5 column items, one of them supplying data for the hyperlink: link id=1 Last Name, First Name Address Email etc. link id=2 Last Name, First Name Address Email etc. link id=3 Last Name, First Name Address Email etc. Struts-related issues: (1) I expect to use the Iterator tag for multi-page returns, I'm unsure if that would affect the data structure chosen. (2) I'm also interested in ease of display on the subsequent master list page, so I would like a data structure that can be easily manipulated by the Struts tag libraries in rendering the page. Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help - xml to pdf using struts
Sun Servlet Forum (Victor's code worked for me, without the open/save prompt occuring): http://forum.java.sun.com/thread.jsp?forum=33 http://forum.java.sun.com/thread.jsp?forum=33thread=270415 thread=270415 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 11:43 AM To: [EMAIL PROTECTED] Subject: RE: Help - xml to pdf using struts Hi Lisa, That looks similar to my solution. The biggest problem I had was with getting IE to display the PDF inline without a PDF in the URL Using a Struts action, I wasn't able to get the URL to change at the appropriate time with a redirect. In the end, I sent the pdf as an attachment which gives the open/save prompt. Were you able to get around this problem? Thanks, Mike -Original Message- From: Lisa van Gelder [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 4:52 AM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Here is the bit of my action that deals with the pdf creation. First I transform xml to fo using xsl (and Xalan). The result is written to an InputSteam, which is passed into FOP. The result from FOP is then written out the client and the content type is set to application/pdf. HTH Lisa -Original Message- From: Zimmer, Robin (SSABSA) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: 15 August 2002 09:37 To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Lisa, That sounds can you provide an example action please. -Original Message- From: Lisa van Gelder [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, 15 August 2002 6:01 PM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts I do the xml - fo - pdf transformation in an Action, and then stream the result straight back to the browser. Lisa -Original Message- From: Zimmer, Robin (SSABSA) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: 15 August 2002 09:28 To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Thanks for getting back to me. I appreciate that I have to have xsl:fo to transform the xml, but how best to render this using jsp??? Or do I need a servlet??? -Original Message- From: David WIlkinson [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, 15 August 2002 5:57 PM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts We had to address a similar issue of creating pdf's from xml and found that it can be done in a simple way using xsl:fo to transform the xml. Check out http://xml.apache.org/fop/index.html http://xml.apache.org/fop/index.html for more info. -Original Message- From: Zimmer, Robin (SSABSA) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: 15 August 2002 08:13 To: '[EMAIL PROTECTED]' Subject: Help - xml to pdf using struts I am in the last stages of implementating a Struts application. I now have to complete the reporting side. This basically consists of displaying xml output as HTML or PDF. I have the HTML side covered (I am using jakarta XTags) but how do I render an xml to fo transformation to pdf by using struts. I am aware of stxx but as far as I can see you have to override the actionservlet etc and this seems an overhead for what is a small part of the app. Can anyone please give some suggestions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
merge Struts and stxx?
Hello, I was wondering if perhaps a future release of Struts might be enhanced if it integrated the XML/XSLT/PDF possibilities of stxx. An email on the struts-xsl Yahoo group (http://groups.yahoo.com/group/struts-xsl/message/240) about Oracle's Cleveland web framework, criticized Struts for not having native support for XSLT, XSL FO/PDF technologies, etc., that are already in the stxx extension. (You can still use XSL/XSLT/XSL FO within Struts however, currently by manually returning the application/pdf object from the ActionForms.) One drawback I see is that stxx includes the FOP processor (which further includes the Avalon logger), etc., and Struts might get overly large if it were to include stxx. So perhaps the status quo of using Struts and importing stxx only when needed remains preferable. Comments? Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]