RE: j_security_check
I'm on the phone with IBM at this moment. The scoop I got from searching the WEbsphere newsgroup was that 4.02 broke the forwarding for form-based security. That's what I was experiencing, and the message said that the fix was only available by calling IBM support. Supposedly efix PQ56667 fixes the problem. That's what I'm trying to get right now. I'll let you know if it works. I'm also experiencing problems (documented on this list) in that WebSphere handles responseRedirects differently than tomcat (you end up with duplicate context roots in the path ( like http://myapp.com/root/root/do/action ). I'd be curious if anyone has a workaround for this other than the Struts source patch suggested earlier. Lee -Original Message- From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 11:18 AM To: Struts Users Mailing List Cc: Tero P Paananen Subject: j_security_check We're currently implementing an application using Struts on WebSphere. We're running into some issues regarding J2EE security (j_security_check et.al.). Are there other folks on the list who have implemented applications using Struts with WebSphere and have done work with J2EE security? We're having a hard time getting IBM to verify our approach(es) to problems we're facing (basically they want to sell us consulting work to answer a yes/no question). We'd love to hear from somebody on the list who's gone/going through the same thing. Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem in HTML:ERROR tag
It's a websphere issue. Do a search on the mail archive for websphere and null. -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 8:30 AM To: Struts Users Mailing List Subject: Re: Problem in HTML:ERROR tag Struts shouldn't print NULL before and after your errors if you don't put errors.header and errors.footer in your Application Resources file, correct? We all understand how it is supposed to work. We don't understand why null is printing on the page. It didn't used to print. Has the behaviour of Struts changed so that errors.header and errors.footer is required? If so, the documentation should have been updated to reflect that. On Thu, 14 Mar 2002, keithBacon wrote: you can put HTML in your error messages errors.header=font color=red size=+1ul errors.footer=/ul/font UserValidator.userID.must.be.entered=limoron! enter required data/li I think there was talk on this list about a way of keeping all the html in your jsp. The above way is a bit of a bodge but commonly used. --- Jay sissom [EMAIL PROTECTED] wrote: If we do that, the errors would bring like this: abcderror,error,errorefgh, correct? Isn't that just as bad or worse than the null problem? We're having this problems with tomcat also. Jay On Thu, 14 Mar 2002, nsg wrote: I had met the problem. you append the errors.head=abcd,errors.footer=efgh two lines in your resource file. it will be OK. hope helps Laker - Original Message - From: subhendukumar mohanty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 10:07 AM Subject: Problem in HTML:ERROR tag Hi I am setting the action error in my action class. Then when the error displays in the screen it appends null in front and end of the message. For example if the error message is Error occurred, it shows as null Error Occurred null. I am using struts with visualage 4.0. I am using struts 1.0.1 and modified the form tag to work for websphere test environment. Any Help?? Thanks, Subhendu -- 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] = ~~ Search the archive:- http://www.mail-archive.com/struts-user%40jakarta.apache.org/ ~~ Keith Bacon - Looking for struts work - South-East UK. phone UK 07960 011275 __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem in HTML:ERROR tag
Oops. Jumped to a conclusion there. I thought you were having the issue only with Websphere. -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 9:12 AM To: Struts Users Mailing List Subject: RE: Problem in HTML:ERROR tag And a Tomcat issue. This is happening under Tomcat 3.2.4. On Thu, 14 Mar 2002 [EMAIL PROTECTED] wrote: It's a websphere issue. Do a search on the mail archive for websphere and null. -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 8:30 AM To: Struts Users Mailing List Subject: Re: Problem in HTML:ERROR tag Struts shouldn't print NULL before and after your errors if you don't put errors.header and errors.footer in your Application Resources file, correct? We all understand how it is supposed to work. We don't understand why null is printing on the page. It didn't used to print. Has the behaviour of Struts changed so that errors.header and errors.footer is required? If so, the documentation should have been updated to reflect that. On Thu, 14 Mar 2002, keithBacon wrote: you can put HTML in your error messages errors.header=font color=red size=+1ul errors.footer=/ul/font UserValidator.userID.must.be.entered=limoron! enter required data/li I think there was talk on this list about a way of keeping all the html in your jsp. The above way is a bit of a bodge but commonly used. --- Jay sissom [EMAIL PROTECTED] wrote: If we do that, the errors would bring like this: abcderror,error,errorefgh, correct? Isn't that just as bad or worse than the null problem? We're having this problems with tomcat also. Jay On Thu, 14 Mar 2002, nsg wrote: I had met the problem. you append the errors.head=abcd,errors.footer=efgh two lines in your resource file. it will be OK. hope helps Laker - Original Message - From: subhendukumar mohanty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 10:07 AM Subject: Problem in HTML:ERROR tag Hi I am setting the action error in my action class. Then when the error displays in the screen it appends null in front and end of the message. For example if the error message is Error occurred, it shows as null Error Occurred null. I am using struts with visualage 4.0. I am using struts 1.0.1 and modified the form tag to work for websphere test environment. Any Help?? Thanks, Subhendu -- 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] = ~~ Search the archive:- http://www.mail-archive.com/struts-user%40jakarta.apache.org/ ~~ Keith Bacon - Looking for struts work - South-East UK. phone UK 07960 011275 __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
amount of data stored in session
Are there published guidelines as to the number and size of objects that are stored in the session? I've seen references to the importance of keeping session data to a minimum, but no concrete recommendations.
RE: DHTML Menus and Form Objects
I think the layer thing works in very new versions of IE (newer than IE5 -- maybe starting with 5.5?). Back when I was looking at such things, the only solution I could find for IE 5 was to hide the offending form elements when the show menu function is fired. Kind of clunky, but that's exactly what Microsoft used to do on their site. Netscape/Mozilla is another story altogether. -Original Message- From: John M. Corro [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 10:37 AM To: [EMAIL PROTECTED] Subject: OT: DHTML Menus and Form Objects This is off topic from Struts, but I was wondering if anyone else has run into this If you have one of those DHTML/JS pulldown menus, it'll get hidden behind specific types of form objects (mostly select boxes). I've scoured google to see how to get around this and the only posts I've seen (that don't say you're SOL - which is most of them) that have any constructive input say to surround the form object w/ a div tag and to set the z-index property to something very low, then to set your DHTML/JS menu to something very high. The idea being that the form objects are assigned a lower z index than the menu so the menu should display over all the form object elements. I've tried that w/ the following statement: div style=z-index:1 and wasn't able to get it to work. I've tried surrounding the entire form and just the offending form element, but neither way has worked. Has anyone been able to effectively make this type of workaround work? I'm using HierMenus from www.dhtml.com on a W2k box w/ IE 5. John M. Corro Cornerstone Consulting 414.212.3500
RE: speed of struts
I'm interested in hearing other opinion on this. I personally find the logic present/equals tags to be ugly and cumbersome (not to mention inefficient in terms of the generated servlet) and often find myself resorting to simple if/else scriptlets instead. I'm not sure the logic tags win even from a maintainabilit point of view. How does everyone else deal with complex display logic? Do you use the logic tags? -Original Message- From: Jim Downing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 8:17 AM To: Struts Users Mailing List Subject: Re: speed of struts On Mon, Feb 11, 2002 at 03:01:12PM +, [EMAIL PROTECTED] wrote: I'm curious as to the limit here. I'm currently building an app which has huge form requirements - I may have upwards of 500 fields as html text inputs -- very spreadsheet like. Where is the limitation? Rendering into html, or parsing the request into beans? I've had not problems so far with rendering speed, though I'm using Mozilla, so browser speed hasn't been noticable to far.. I've just finished a struts project where I had to move to scriptlets away from struts tags for presentation logic. The problem was that every now and then the GC would take a second or so to run. This struck me as a VM issue (and may still have been, although it happened under linux jdk1.2.2 and 1.3.1), but when I profiled the page I found that the handful of tags I was using (10 - 20 logic equals, a few logic:iterates) were generating 6M of garbage. Is this typical for all taglibs? I dislike developing with scriptlets, but that's a pretty big performance hit to have to take for a bit of maintainability. Is this the same factor that limits pages to 50 form tags? What's the best solution for pages with complex presentation logic? jim Jim Downing [EMAIL PROTECTED] -Original Message- From: husted Sent: 06 February 2002 13:50 To: struts-user Cc: husted Subject: Re: speed of struts This comes up fairly often, and around 50 does seem to be a cut-off point for some reason. A number of things can affect the speed the form renders, including the browser and, as mentioned, the JVM. One interesting thing would be to try the same page under VelServlet. http://husted.com/struts/resources/velservlet.htm This is a drop-in extension, and you can mix and match Velocity templates with JSPs in the same application. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Struts wrote: I found out that if I include a lot of html form fields in a form (over 50). The jsp pages seems to be awfully slow to load (almost 10 seconds). I made it a little bit faster when I converted all radio button sets to drop down list, still it is very slow. The speed to load up seems to exponentially related to the number of form fields. Has anybody got the same problem? -- 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] Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts e Netbeans.
It's a bug with NetBeans that occurs with any app that writes a lot of text to the console (like Struts does on startup) To make the error message go away, just change these entries in your web.xml file for the struts actionserverlet: init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namedetail/param-name param-value0/param-value /init-param NetBeans will launch Tomcat without complaining. -Original Message- From: Felipe F. Palma Dias [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 8:16 AM To: Struts - User Subject: Struts e Netbeans. Hello. I am a new user of netbeans with struts. I have an application with the following structure: /myapp --- WEB-INF -- *.tld --- lib -- struts.jar. but when I try to execute my jsp files the tomcat delay to initiate and after that it appears the following message: The Tomcat server is not running correctly. Already I noticed that when I comment the line load-on-startup2/load-on-startup, this error does not happen, but if I to take off this line struts will not go to execute. Can somebody help me? tks. - Felipe F. Palma Dias - [EMAIL PROTECTED] http://www.palmadias.hpg.com.br Yahoo! Messenger: palmadias -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Development Environment
OK, I'll bite. I'm a Linux ignoramus. What do you do with Cygwin? Is there more to it than a bash shell? -Original Message- From: CyberZombie [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 9:42 PM To: Struts Users Mailing List Subject: Re: Development Environment Cygwin rocks! W2K, Cygwin, Ant, Apache, Tomcat, Weblogic and Visual SlickEdit (w/ vim for quick stuff) here... Jonathan James wrote: Windows 2000, cygwin vim - Original Message - From: Dave Wellman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 11:41 AM Subject: Development Environment Hello, Quick question, what is the preferred development environment that you are all using, Linux - Emacs, VIM, Windows - JBuilder, VisualAge? -- 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: [Off Topic] Using Struts with WebSphere Studio Application Developer 4.0
I haven't actually done it but I remember seeing a post to the WSAD newsgroup saying that you had to use the struts source (not the jar files) to get it running in WSAD. -Original Message- From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:08 AM To: [EMAIL PROTECTED] Subject: [Off Topic] Using Struts with WebSphere Studio Application Developer 4.0 Hello, I am new to struts development (I've only been lurking in the list for 5 days) and I noticed some members seem to be using IBM products, or at least have familiarity with them. I realize that my questions about getting struts installed and working with WSAD 4.0 are not germane to the group as a whole. However, if some kind soul on the list, who has been down this path before, would e-mail me directly I do have some questions about getting the example application installed and running, as well as installing and using the documentation WAR. best regards, /\/\ark ___ - mark h. nichols - par-ti-tion Software - mark at partitionsoftware dot com (always) - dhsv022 at dhs dot state dot il dot us (currently) Ooo. They've got the Internet on computers now. - Homer Simpson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: speed of struts
I had a form with lots of custom tags. When run under the Sun 1.3 JDK it was slow as molasses. Sun 1.2 JDK or IBM 1.3 was instantaneous. A few mailing list posts pointed me to a bug in Sun's 1.3 having to do with nested try/catch blocks in the compiled JSP. Try your page under Sun 1.2 or the IBM JDK and see if it makes a difference. Lee -Original Message- From: Christopher Cheng [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 3:50 AM To: Struts Users Mailing List Subject: RE: speed of struts My form does not have a lot of tag processing (acutally none) The time it takes to load the page is proportional to the number of instances of form objects appeared on the JSP. For instance, outputting a radio set is A LOT slower than outputting a drop down list since you just have to pass a collection to the iterate, but you have to actually put all the html:radio/ options on the JSP. html:select property=factors[4].rating html:options collection=ratings property=value labelProperty=label/ /html:select html:radio ./Option A html:radio ./Option A html:radio ./Option A html:radio ./Option A -Original Message- From: Pete Carapetyan [mailto:[EMAIL PROTECTED]] Posted At: Wednesday, February 06, 2002 12:10 PM Posted To: Struts Conversation: speed of struts Subject: Re: speed of struts I have had the same problem on one very large form with lots of back end tag processing. Would be interested to know if anyone had performed any profiling on similar situations to identify where the bottlenecks were. Struts wrote: I found out that if I include a lot of html form fields in a form (over 50). The jsp pages seems to be awfully slow to load (almost 10 seconds). I made it a little bit faster when I converted all radio button sets to drop down list, still it is very slow. The speed to load up seems to exponentially related to the number of form fields. Has anybody got the same problem? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Pete Carapetyan http://datafundamentals.com Java Development Services Open standards technology for commercial profitability -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Formatting Dates, Integers...
So is the answser to create global Format object and synchronize access? -Original Message- From: Jeff Martin [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 5:56 PM To: Struts Users Mailing List Subject: RE: Formatting Dates, Integers... Be very careful about using DateFormatter's that way. I learned a hard lesson in a previous project that DateFormater (and even just the format method) is not thread safe. Jeff -Original Message- From: Peter Pilgrim [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 7:23 AM To: Struts Users Mailing List Subject: Re: Formatting Dates, Integers... Hiya I would also consider writing some custom tags to format numbers and dates. Subclass the Struts' own bean WriteTag bean:write. It is pretty easy to check for a java.lang.Number or java.lang.String, which you can attempt to parse into a double. The only problem is a creating large numbers of java.text.NumberFormat or java.text.DecimalFormat objects. They are expensive to create and garbage collect. I would suggest you put a NUMBER_FORMAT_KEY in the session scope or write the tags to reuse a global Format object. Unfortunate I cant give you my tags, but here is a handy project for someone to write for Struts 1.1!!! -- Peter Pilgrim ++44 (0)207-545-9923 Swamped under electionic mails Message History From: Ted Husted [EMAIL PROTECTED] on 03/02/2002 21:58 EST Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: Formatting Dates, Integers... Pesonally, I recommend doing such things in the ActionForm. You can do them in the page, but that means modifying the page, and placing what is really business logic in the presentation tier. While it seems we are talking about how data looks, formatting it this way or that is really a business requirement. The part about stuffing the formatted string into HTML is the presentation tier. The J2EE blueprints call these helper beans or methods. -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Beanutils.populate()
Is there any way to have Beanutils.populate call a setter method with a date signature on a bean? I'm trying to populate a bean with *lots* of properties, some of which are dates stored in string format. My source bean has dates in date objects. Target bean fields/methods: String endDate = null; public String getEndDate().. public void setEndDate(String endDate) public void setEndDate(Date d_endDate) Source bean fields/methods: Date endDate = null; public Date getEndDate().. public void setEndDate(Date endDate)
RE: Non-Struts Related JS Question
Make the href anything you want (# will work), but in the onclick handler, do this: onclick=openWidgetWindow();return false the return false statement keeps the browser from following the link. for a ridiculously complete discussion of the topic, including handling non-javascript enabled browsers, see http://www.kottke.org/notes/0112.html#011227 and http://milov.nl/?comments=474 -Original Message- From: John M. Corro [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 9:31 AM To: [EMAIL PROTECTED] Subject: Non-Struts Related JS Question Does anyone know how to call a javascript function from an html link w/o causing the parent page to reload, but still having the cursor change to a pointing finger when it goes over the link? I'm trying to implement the following basic situationuser clicks on a link, a child window pops up w/ a listing of widgets, user clicks on a widget, and a value is passed back to the parent page. I've been able to get everything working (popup window, widget listing, return value, etc) w/ an anchor tag like this... a onclick=openWidgetWindow()Click here to see a listing of Widgets/a However, one thing w/ this is that the mouse cursor doesn't change to a pointing finger when it goes over the link because I don't have the href attribute set. I can manipulate the stylesheet settings so that it looks like a regular link (underline, same color as all links), but the cursor never changes to a pointing finger to indicate to the user that it's just a plain old link to click on. When I try putting in the href attribute, the page tries to reload (don't want that happening). I've tried a variety of dummy values for the href (pound sign '#', blank, etc), but every value I've tried seems to make the page reload.
RE: Navigation: To popup and back
have the action forward to a page that loads a document containing a javascript handler in the body tag: body onload=self.close() As long as you opened the popup from another page via javascript, you won't get any nasty messages about closing the window. Lee -Original Message- From: Jeff Oberlander [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 8:07 PM To: Struts Users Mailing List (E-mail) Subject: Navigation: To popup and back Hi all. Here's what I want to do: From a current active session: Popup a new browser window that contains an ActionForm, and keeps the current session. Submit the form to the Action servlet. Close the popup window. Return to the main browser and original window. I have a javascript that pops up the window that contains my jsp with the ActionForm, no problem. But thats where I get stuck. How do I close the window upon submitting the form and return to the original browser *after* the Action has completed? Any help is appreciated. Thanks - Jeff http://www.xns.org/=jeffo This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Navigation: To popup and back
Oh absolutely -- I would never rely on a popup on a site on the public internet. I was thinking intranet app... -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 8:29 PM To: Struts Users Mailing List Subject: Re: Navigation: To popup and back There are several shareware apps that will prevent popups. They are the most annoying beasts! Mark - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 28, 2002 8:18 PM Subject: RE: Navigation: To popup and back Cant you also do a timeout() method call? Not my forte, but do recall something about this... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 29 January 2002 12:24 To: [EMAIL PROTECTED] Subject: RE: Navigation: To popup and back have the action forward to a page that loads a document containing a javascript handler in the body tag: body onload=self.close() As long as you opened the popup from another page via javascript, you won't get any nasty messages about closing the window. Lee -Original Message- From: Jeff Oberlander [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 8:07 PM To: Struts Users Mailing List (E-mail) Subject: Navigation: To popup and back Hi all. Here's what I want to do: From a current active session: Popup a new browser window that contains an ActionForm, and keeps the current session. Submit the form to the Action servlet. Close the popup window. Return to the main browser and original window. I have a javascript that pops up the window that contains my jsp with the ActionForm, no problem. But thats where I get stuck. How do I close the window upon submitting the form and return to the original browser *after* the Action has completed? Any help is appreciated. Thanks - Jeff http://www.xns.org/=jeffo This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -- 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]
Ron Smith's struts actionservlet extension with Struts 1.1
Anybody know if this works with the 1.1 nightly builds? Or is is recommended that I use the service manager included in the contrib folder (I assume Smith's transformer package will work with that)
RE: Execute Struts in Netbeans?
If you use Forte 3.0 CE (same as netbeans with a few extensions -- good web app extensions), running Struts apps is no problem. -Original Message- From: AJ Morris [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: Execute Struts in Netbeans? Has anyone had luck executing struts-based applications in the Netbeans integrated Tomcat? Things are fine with the standalone Tomcat, but not the internal Tomcat. Here are the issues. Tomcat can't see the taglibs, but this is solved by mounting struts.jar. Tomcat will not execute action mappings, because it says the path is not valid. Tomcat cannot see my ApplicationProperties files, either. AJ Morris [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: custom tags: IBM 1.3 JDK vs SUN 1.3 JDK -- SOLVED
In case anybody else runs into this, it's evidently a bug in the SUN 1.3 JDK. http://groups.google.com/groups?th=dd4229956bceb2f4rnum=1 Lee -Original Message- From: Torrence, Lee Sent: Sunday, January 06, 2002 10:38 AM To: 'Struts Users Mailing List' Subject: custom tags: IBM 1.3 JDK vs SUN 1.3 JDK I have a struts jsp page with a lot of custom tags; it compiles to around 40k. Under Win2k, when I set JAVA_HOME to run Tomcat 4.1 with the IBM 1.3 JDK, the page executes almost instantaneously, but when I set JAVA_HOME to the Sun JDK 1.3.1, it takes about 5 seconds to load. Does the IBM jdk handle the compilation differently (the compiled size is about the same either way), or is there a switch that's on by default with the IBM JDK that improves performance over the Sun JDK? Lee Torrence
custom tags: IBM 1.3 JDK vs SUN 1.3 JDK
I have a struts jsp page with a lot of custom tags; it compiles to around 40k. Under Win2k, when I set JAVA_HOME to run Tomcat 4.1 with the IBM 1.3 JDK, the page executes almost instantaneously, but when I set JAVA_HOME to the Sun JDK 1.3.1, it takes about 5 seconds to load. Does the IBM jdk handle the compilation differently (the compiled size is about the same either way), or is there a switch that's on by default with the IBM JDK that improves performance over the Sun JDK? Lee Torrence
Custom tag performance
Title: Custom tag performance For a workflow system, I've created a custom tag (extending the struts BaseInputTag) that combines the functionality of the following struts tags html:text bean:message messages:present The custom tag has a property attribute and a key attribute (for the field label), and I modified the base tag readonly attribute so that it outputs the value in a span element if readonly is true, and an input element if readonly is false. The tag looks like this: ims:tradefield readonly=true width=85 key=trade.securityinfo.instrumenttype property=instrumenttype/ and produces output like this: trtd class=label align=rightInstrument Type/tdtdspan class=val style=width:85;EQUITY/span/td/tr In addition, the tag checks the ActionMessages collection to see if there is a message relating to this field, and if there is, it outputs the label in red. The tag works great; the problem is that my form has about 60 fields on it, and it's a bit slow. It seems like the custom tag approach produces a *lot* or repeated code. For instance, it looks like the ActionMessages collection is created anew for each tag. Ditto with the Action.MESSAGES_KEY bundle. Is there any way to create these things once at the top of the .jsp page, then just call them from the custom tag? Any other performance enhancing suggestions? TradeTag.java Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ActionMessages vs ActionErrors
What's the intended functional difference between ActionMessages and ActionErrors?
RE: Hiding Struts Action Statements From Nav?
You could put your page in a frameset. Then the address bar would't change when you navigated from page to page. Might cause other complications though. -Original Message- From: Matt Koidin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 2:27 PM To: Struts Users Mailing List Subject: Hiding Struts Action Statements From Nav? Is it possible to hide the Struts action statements from my navbar? When I start my application I go to: http://www.myapp.com/web/ Is it possible to have it stay with that root address and not change to: http://www.myapp.com/web/action1.do etc. as I move around? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: internationalization numeric formats
This is great for bean:write. How do you handle this for html:text tags? -Original Message- From: Oleg V Alexeev [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 3:52 AM To: Struts Users Mailing List Subject: Re: internationalization numeric formats Hello Nathan, Monday, December 17, 2001, 8:53:29 PM, you wrote: NC Hi, NC does struts support different formats for numbers dependent upon the locale NC of the user? I've had a look in the bean write tag code which seems to NC indicate using keys such as org.apache.struts.taglib.bean.format.float. NC Should this be used in the Application.properties and NC Application_de.properties files e.g: NC org.apache.struts.taglib.bean.format.float=###,###,###,###,###.### NC Cheers Nathan Yes, you can define format string for every locale you use. You can define default format string as org.apache.struts.taglib.bean.format.float=###,###,###,###,###.### or you can define special format for every locale and specify it in bean:write tag with 'formatKey' attribute - may.float.format=. bean:write name=floatValue formatKey=may.float.format/ NC ** NC This email and any files transmitted with it are confidential and NC intended solely for the use of the individual or entity to whom they NC are addressed. If you have received this email in error please notify NC the system manager. NC This footnote also confirms that this email message has been swept by NC MIMEsweeper at LevelSeas for the presence of computer viruses. NC ** NC -- NC To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] NC For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Olegmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: embed html tags in the javabeans.
set the attribute filter=false on the bean:write tag -Original Message- From: John Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 2:25 PM To: Struts Users Mailing List Subject: embed html tags in the javabeans. Hi, I have a javabean with one method returning a string containing HTML tags. However, it seems that the when I use bean:write to write out the string, those html tags got printed on the screen instead of got interpreted by the brower. What should I do if I want a get method in a bean to return a string containg HTML tags which later gets interpreted by the browser? Thanks John __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Populate ActionForm with an XML DOM object
I have a back-end data source that provides me with an XML object. I'd like to populate an ActionForm based on that XML. Is there sample code like this somewhere? Most uses of the Digester I've seen deal with loading config files, or an initial load of an in-memory database. Would the Digester be apropriate for this job in a high-volume environment? Other approaches anyone? (Apart from using XSLT. Seems like if I choose that route I lose the benefits of the ActionForm/Validation/Token etc.) Lee
Question about Ron Smith's Struts Transformer pkg
I just started looking at the Transformer package, which seems to fill a major hole in the Struts Framework. (I'm new to Struts as well, coming over from the Dark Side (MS)). My initial impression of the Transformer pkg is that it would not be called from the .jsp, but only from the Action, where it would be used both to transform the values from your ValueObj to your ActionForm, and then to transform incoming ActionForm fields back to your value object. So are the altered tags there mainly for items not included in the ActionForm? Is that why there is no htmlx:text tag? Sorry if my question is a little dense. Just trying to get my head around this. This is great work. Thanks to Ron for making it available!! Lee Torrence Princeton Financial Systems
transformations
I've been looking at the transformation solutions listed on Ted Husted's page. Can anyone give me a quick rundown of the pros/cons of these two? Is there an Official Struts direction on this issue? The Struts Transformer by Ron Smith http://www.rpsenterprises.com/struts/index.html The Capco Mapper Framework by Francois Rey http://husted.com/struts/resources/mapper.htm thanks Lee
RE: html:select and JavaScript problem
Well, I think first you'd need to change the name of the html:text element to something other than artist to avoid javascript confusion. The value for artist will be posted to the server by the html:select object. (watch for line breaks) script language=JavaScript !-- function setArtist(control){ document.forms[0].artistReadout.value=control.options[control.selectedIndex] .value; } //-- /script PullDown and text field: html:text property=artistReadout size=40/ html:select property=artist onchange=setArtist(this); html:options collection=artist property=value labelProperty=label/ /html:select The javascript event you want to use in onchange, not onclick. The syntax to pull the value out of a select list is a little convoluted. The relevant javascript objects are (assuming a select element called mySelect): mySelect.options = an array of the option elements mySelect.selectedIndex = the index of the selected element mySelect.options[mySelect.selectedIndex].value = the value of the selected option Lee -Original Message- From: rgi [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 5:59 AM To: [EMAIL PROTECTED] Subject: html:select and JavaScript problem Hello struts-user, I want to write a selected element from a PullDown in a text form. I use a JavaScript funktion to do this. This funktion is excecuted when someone click on a element from the PullDown. (or perhaps not excecuted?) The problem is now, nothing is written in the text field. JavaScript funktion in the header area: script language=JavaScript !-- function setArtist(artistStr){ document.forms[0].artist.value=artistStr; } //-- /script PullDown and text field: html:text property=artist size=40/ html:select property=artist onclick=javascript:setArtist(value); html:options collection=artist property=value labelProperty=label/ /html:select Have someone a idea to solve this problem??? -- Best regards, rgi mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Java script submit on select from drop down
Change it to something like this, where your_form_name is the name attribute you defined in your action mapping. Your notation doesn't work because it's trying to find a form that is a property of the select element. html:select property=organizationName onchange=document.your_form_name.submit() html:options collection=orgTypes property=value / Lee -Original Message- From: Ravi Kharse [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 1:44 AM To: [EMAIL PROTECTED] Subject: Java script submit on select from drop down Hi, I'm using struts select and options tag for creating a dropdown. I want to submit the form on selecting from the dropdown. I coded : html:select property=organizationName onchange=this.form.submit() html:options collection=orgTypes property=value / Can someone help me on this. Thanks Ravi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Options tag question
In reworking my Action classes, I tried to package all values needed for my form in the form bean, so I included a property that contains an ArrayList of LabelValueBeans. Can I refer to this property to populate the html:options tag? This nested syntax doesn't seem to work: html:options collection=brokerForm.brokers property=value labelProperty=label / Or should I go back to including the ArrayList as a request attribute and return it that way. Lee
RE: which button pressed?
From an earlier thread, I think this works: html:submit property=action bean:message key=button.add/ /html:submit But you need some mapping scheme if you don't know the language of the string that will be returned. I noticed that Ted Husted seems to lean towards including separate formlets for each button, with the necessary parameters for the action in hidden fields. Ted, care to comment on the benefits of that approach? Lee -Original Message- From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 10:21 AM To: Struts Users Mailing List Subject: Re: which button pressed? Hi, I suggest you to use : html:submit property=propertyname value=buttonname/ ex: html:submit property=myAction value=add/ html:submit property=myAction value=del/ and in Action class, to determine witch button is pressed: String button = request.getParameter(myAction); if ( button.equals(add) ) { ... } But I don't know if html:submit property=propertyname value=/bean:message ... // work ? Màris Orbidàns [EMAIL PROTECTED] a écrit : Hello all I have several submit buttons like this: key=button.prev/ key=button.next/ key=button.save/ key=button.delete/ key=button.add/ The question is: How to determine which one has been pressed ? Maris Orbidans -- To unsubscribe, e-mail: For additional commands, e-mail: - Yahoo! Courrier -- Une adresse @yahoo.fr gratuite et en français !
RE: Websphere 4.0/IBM Web server configuration
the instructions pasted below (taken from this list in a post by Chris Assenza) worked for me with the standard Struts 1.0 release (haven't tried the nightly builds). From: Assenza, Chris [[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 9:59 AM To: '[EMAIL PROTECTED]' Subject: RE: Struts installation on Websphere 4.0 Still haven't had time to formalize these directions, so they are likely to change once I get time to remove extraeous steps or correct things. :) rief Preliminary Deployment Instructions for WAS 4.0 · Deploy Application o Install WebSphere 4.0 o Once completed and system is restarted (if necessary): Start the WebSphere service (startServer.bat on NT, probably startServer.sh on Unix) o After the server has started, log onto the web-based Administration Console (http://localhost:9090/admin). o Next, expand Nodes on the left. o Click on Enterprise Applications o Click on Install o Browse to the file Deployed_app.ear that you created with the AA tool. o Select the file follow the steps the console takes you through: § Click next on EJB deployment screen. § Click next on the Web Module deployment screen (change your preference on pre-compiling if you so desire). § On the next screen, allow WebSphere to redeploy YourApp-ejb.jar by leaving the box checked and clicking next. (ed: Not sure if this step is necessary) § Review the settings and click Finish when ready. · Once finished, begin JDBC configuration. (for Oracle) o Expand Resources in the left navigation area. o Click JDBC Drivers o Click New § The Server Class Path is the location of classes12.zip (Oracle's JDBCdrivers) on the server. § Name is: OracleJdbcDriver § Implementation Classname is: oracle.jdbc.pool.OracleConnectionPoolDataSource o Click Ok to add the driver. o Expand the newly created OracleJdbcDriver in the left navigation area. o Click on Data Sources o Click New § Name is: somePool § JNDI Name is: jdbc/somePool § Default Userid is: someId § Defaults Password is: somePass § All others left blank/default. o Click Ok to add the Data Source. o From the Data Source screen, click on somePool. o Click on Property Set (on the bottom). o Click Resource Properties o Click New § Name is: URL § Type is: java.lang.String § Value is: jdbc:oracle:thin:user/pass@host:port:sid Where: · user/pass are the username/password respectively · host is the IP address of the Oracle DB Server · port is the port on which Oracle is listening (ex. 1521). · sid is the Oracle SID or name for the database o Click Ok until you've reached the Data Source Screen. · Complete Deployment o Click Save on the nav-bar at the top of the screen. o Select server-config.xml (or the top option) and click Ok. o Stop and then restart the WebSphere AppServer. · Once started, go to http://someIpAddress/appname/file.jsp to test the deployment. Christopher Assenza
Action structure for CRUD
struts-newbie I used David Winterfeldt's Generator against a table called broker to produce a form bean, a broker bean, a broker_PK (primary key) bean, and a brokerjdbc bean (which contains SQL CRUD functions). Now I need to create the Action (or Actions) to handle these operations. I have looked at Ted Husted's Artimus app where he uses Helper Objects and creates one Action with multiple perform methods. I think I understand what's going on, but isn't there a simpler way? Is there anything wrong with just checking the request parameters within the Action to see which button was clicked and then call the appropriate method on the jdbc bean? Or is that a bad approach? /struts-newbie
RE: Detecting browser on the server side
Do a Google search on BrowserHawk -- they have done a lot of research into server-side browser detection. I think Jason Hunter (the O'reilly servlets book author) did most of the work on the java version. -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 11:33 PM To: [EMAIL PROTECTED] Subject: Detecting browser on the server side Does anyone know if it is possible to perform the equivalent Javascript function below on the server-side? script language=Javascript type=text/javascript if (document.getElementById) { // This is a standards' compliant browser } /script Also, I'd like to identify if the browser will accept text/xml - should I just check the header for this? What I'm trying to do is write a tag library that will detect (1) if the user's browser supports HTML 4.0 (javascript function), and (2) if the browser will render xml. Thanks, Matt File: ATT88147.txt
artimus
Title: artimus I'm having trouble getting artimus (husted sample app) to run on Tomcat 4.1-dev. I think I took all the steps outlined in web-inf/readme.txt. I changed the poolman.xml file to reflect my local oracle drive and db. (the poolman.xml file works fine with the sample poolman-webapp from codestudio). When I try to search or log onto the admin interface I get an error in the browser: javax.servlet.ServletException: Cannot retrieve definition for form bean null The Catalina console displays: org.apache.scaffold.util.QueryException: Unable to access data. the poolman log displays: October 26, 2001 10:21:44 AM EDT: PoolMan JDBCPool unable to locate a default JNDI provider, jdbc/article DataSource not bound to JNDI: null October 26, 2001 10:21:44 AM EDT: PoolMan Local Pool Deployer: Created JDBC XA Connection Pool named: article Do I have to create the table article in the Oracle db or will the app do that automatically?