validation doesn't validate
I can't get the validation framework to do anything. I'm speculating that the validation.xml file isn't being read; I tried putting a rule that doesn't exist and then some arbitrary syntactically incorrect text in the file, and I didn't get an error anywhere I could find. On the other hand, there is a message like this: INFO: Loading validation rules file from '/WEB-INF/validation.xml' in the console log. And no errors. No errors in the localhost_log, either. So maybe it *is* reading the validation file. My form bean name matches my validation form name, which matches the name in my action mapping. I have validate=true in my action mapping. I have a validation rule defined for a field on the form. (Two, actually: required and integer.) Nothing. I'm using a DynaValidatorActionForm, in case that matters. Oh, and this is RC1 of 1.1 running in tomcat 4.1. Help! I'm sure this is a common problem, and I'll be embarassed when I learn what it is, but I'm stuck. Thanks, -- Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
iBatis Out of Memory
Hi all, I have a problem with iBatis in my project . I have several xml files to be loaded and by default iBatis loads them all . Is there a way to solve this problem ? I think there may be an option to change the behavior so iBatis will load only appropriate xml only . Loading all xml files cause out of memory in Tomcat and the server got to be restarted . Thx Regards IG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic input forward?
Hi Struts fans/experts, I'm curious, is there a dynamic way of redefining what the 'mapping.getInputForward()' function will return? Why I ask this? Well, if I have a 'Screen X', and I can get to this screen from 'Screen A' or 'Screen B' or 'Screen C' - if I clicked cancel/exit on Screen X, I'd like to go to the correct input forward screen. Is the -only- way to achieve this to have multiple mappings for the action that loads 'Screen X', and each of those mappings would have as their 'input=...' Screen A, or B or C? Or is there some other way of determining where I 'came from' to a particular screen without having to map 3 different action mappings to the same action but different input=..'s? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Resources covering sessions and databases
Hi there, has anybody a good documentation, howto, tutorial covering the sessions, databases and user-authentication? I've found tutorials covering how to build a login but I haven't found a documentation about what happens if I have logged in... (The session-part) :)) thanks yours sincerly Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cascade Select
I would like to know is there a way to create cascade selects combo-boxes using a tag library compatible with struts? Also, I would like to know how does struts developer usually handles a situation where second combo box is to be filled with a value selected from the first combo box. I am aware of following approaches, but still looking for more elegant solution to this problem: (1.) Refresh the jsp page on select of the first combo box, and reset the bean for the second combo box. This approach requires a server side call and if it takes longer to reload it becomes annoying. (2.) Create a pick-list instead of a combo. Pick-list pops up on press of a select icon box. Pick-lists are not as user friendly as combo boxes. (3). Create a applet-servlet bridge to access database from. The article can be found at http://www.onjava.com/lpt/a/1342 This approach works but requires a client side applet. Thanks, Mihir
Need help for single sign-on implementation
Hi All, We have couple of applications (some in servlet/jsp implementation and some in struts), I would like to build an layer on top of that so that user can access different applications from a single common interface. Currently we validate the user from the database and keep all the credential informations in each application's own session after the user login. Just want to check is there any way to share the credential information among all the apps and passing the data from one apps to another, If yes, what is the best way to implement that? We are using Tomcat4.1.24 for development and Deployed to WebSphere5.0. I think there is something call cross context in Tomcat. Is that relevance? How about in WebSphere? thanks -- ___ Get your free email from www.doramail.com with 30 Megs of disk space in webhosting and e-mail storage! Powered by Outblaze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help for single sign-on implementation
Hi All I need same help -Original Message- From: Kuma Zuki [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 1:13 PM To: [EMAIL PROTECTED] Subject: Need help for single sign-on implementation Hi All, We have couple of applications (some in servlet/jsp implementation and some in struts), I would like to build an layer on top of that so that user can access different applications from a single common interface. Currently we validate the user from the database and keep all the credential informations in each application's own session after the user login. Just want to check is there any way to share the credential information among all the apps and passing the data from one apps to another, If yes, what is the best way to implement that? We are using Tomcat4.1.24 for development and Deployed to WebSphere5.0. I think there is something call cross context in Tomcat. Is that relevance? How about in WebSphere? thanks -- ___ Get your free email from www.doramail.com with 30 Megs of disk space in webhosting and e-mail storage! Powered by Outblaze - 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]
Re: Resource problem displaying validator error arguments
Hi Dusty, I have a similar problem as well. I'll be interested in any replies. Out of curiosity, what are you using BigInteger for? Adam Dustin Sallings wrote: Hello *, Summary: My arguments are always showing up as null (even when its' not a resource), but the message itself is coming out of the resources just fine. I'm having a problem I'm presently unable to figure out. I've got the following validator rules: field property=serialNumber depends=maxlength,biginteger arg0 key=fields.serialNumber resource=false / arg1 name=maxlength key=${var:maxlength} resource=false/ var var-namemaxlength/var-name var-value12/var-value /var /field field property=snDirection depends=required,mask arg0 key=fields.serialNumberPart / var var-namemask/var-name var-value^(start|end)$/var-value /var /field Relevant resource properties are as follows: errors.biginteger={0} does not contain a valid number. errors.invalid={0} is not valid. fields.serialNumber=Serial number fields.serialNumberPart=Serial number part The first one uses a validator I implemented that verifies the input can be converted to a big integer. The second is using mask. Both of these are correctly doing their validation, however, both of them return null for arg0. html:errors produces the following when the input is not valid: null does not contain a valid number. null is not valid. What could I have possibly done to accomplish this? Same thing on 1.1rc2 and 1.1. Thanks. -- Dustin Sallings - 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]
Re: validation doesn't validate
Sounds like you made the same mistake as me, not reading the Javadoc for DynaValidatorActionForm properly. To use this you specify the action mapping PATH in the validation xml form tag, not the name. If you want to specify validation against your form-bean names, then use DynaValidationForm, not DynaValidationACTIONForm. hth Adam Michael Muller wrote: I can't get the validation framework to do anything. I'm speculating that the validation.xml file isn't being read; I tried putting a rule that doesn't exist and then some arbitrary syntactically incorrect text in the file, and I didn't get an error anywhere I could find. On the other hand, there is a message like this: INFO: Loading validation rules file from '/WEB-INF/validation.xml' in the console log. And no errors. No errors in the localhost_log, either. So maybe it *is* reading the validation file. My form bean name matches my validation form name, which matches the name in my action mapping. I have validate=true in my action mapping. I have a validation rule defined for a field on the form. (Two, actually: required and integer.) Nothing. I'm using a DynaValidatorActionForm, in case that matters. Oh, and this is RC1 of 1.1 running in tomcat 4.1. Help! I'm sure this is a common problem, and I'll be embarassed when I learn what it is, but I'm stuck. Thanks, -- Mike - 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]
Re: Webapp Security?
David Erickson wrote: Just curious how others have gone about protecting the resouces within their webapp.. in our personal setup we would like to control access to every resource if possible, we have our own custom login page that sets session variables, and pulls the data from the database. To protect your JSP, put them in a subdir of WEB-INF. Actions are still able to redirect to those JSPs but they are not direct accessible. To protect your other files, just make a servlet and use path-mapping like '/resources/*' to map all requests to this servlet. Any resource request like 'resources/image.gif' is mapped to this servlet, which can check user rights and decide to send back the requested data or not. The resources itself can be in any directory on the server, which can be accessed directly by the servlet. You may even map above resource request to different directories for each user. Hope this helps Regards Markus We can authenticate people with code in each of the actions, but nothing is preventing someone from directly going to a jpg or a jsp file or anything of the like. What I thought about doing was subclassing the tomcat connectors, the default, the jsp one, and the struts one and then authenticating each request.. but that adds a lot of overhead. Anybody have any other good ideas? We'd like to stick with just tomcat 4.1.24... no apache (no .htaccess).. what is everyone else implementing? -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: form.submit problem
Javascript works on client side, So, it does not matter do you use html:button or input type=button... On client site html:button is present as input type=button Open source for page and check that the form has 'formName' name. O_Parthasarathy Kesavaraj [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hai I am using struts to display the values fetched from the database.When the user gives input values and clicks submit button(not html:button it is input type=button since html:buttton requires a property to be declared in form-bean) i am calling a function where i am setting a value for a hidden variable and calling document.formName.submit().It is showing an javascript error that property or method not supported.What could be the problem?should i use only html:button when i am using struts?Thanks in advance Regards Partha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: form.submit problem
Hai It has the form name 'formName' and i have given document.formName.submit() onlyBut it is saying that property or method not supportedAny other solution Regds Partha -- From: Sergey Smirnov[SMTP:[EMAIL PROTECTED] Reply To: Struts Users Mailing List Sent: Thursday, July 03, 2003 1:44 PM To: [EMAIL PROTECTED] Subject: Re: form.submit problem Javascript works on client side, So, it does not matter do you use html:button or input type=button... On client site html:button is present as input type=button Open source for page and check that the form has 'formName' name. O_Parthasarathy Kesavaraj [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hai I am using struts to display the values fetched from the database.When the user gives input values and clicks submit button(not html:button it is input type=button since html:buttton requires a property to be declared in form-bean) i am calling a function where i am setting a value for a hidden variable and calling document.formName.submit().It is showing an javascript error that property or method not supported.What could be the problem?should i use only html:button when i am using struts?Thanks in advance Regards Partha - 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]
Using pojo-beans in html:text?!
Hi Folks, I have a JSP site using struts html-taglib, jstl and jsp-tags. So I have the following strutcture: jsp:useBean id=division class=de.grob.portal.domain.pojo.DivisionTO scope=session / html:form action=... ... /html:form jsp:include page=/work/foo.jsp flush=true/ Included page foo.jsp html:form action= html:text name=division property=name size=40 maxlength=45 style=margin-left:25% / . . /html:form It seems the division Bean reference is not found by html:text in any scope. If I add a name attribute to the ActionForm assigend to the html-form Action _this_ bean is contains the typed in value. So what is the sence of the name attribute if it wont work. Does it only searches the page scope? Why cannot I configure a scope for html:text? What did I wrong? Thx for advise Toby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using pojo-beans in html:text?!
Hello Toby, where or what exactly is your problme? See below. *** RT Hi Folks, RT I have a JSP site using struts html-taglib, jstl and jsp-tags. RT So I have the following strutcture: RT jsp:useBean id=division RTclass=de.grob.portal.domain.pojo.DivisionTO RTscope=session RT / RT html:form action=... RT... RT /html:form RT jsp:include page=/work/foo.jsp flush=true/ RT Included page foo.jsp RT html:form action= RThtml:text name=division RT property=name RT size=40 RT maxlength=45 RT style=margin-left:25% RT/ RT . RT . RT /html:form RT It seems the division Bean reference is not found by html:text in any scope. Is it found or not. Do you get any error message? RT If I add a name attribute to the ActionForm assigend to the html-form Action RT _this_ bean is contains the typed in value. What do you mean? RT RT So what is the sence of the name RT attribute if it wont work. Does it only searches the page scope? Why cannot RT I configure a scope for html:text? What did I wrong? RT Thx for advise RT Toby RT - RT To unsubscribe, e-mail: [EMAIL PROTECTED] RT For additional commands, e-mail: [EMAIL PROTECTED] Regards, Dirk +--- Quality leads ---+ | Dirk Markert [EMAIL PROTECTED] | | Dr. Markert Softwaretechnik AG | | Joseph-von-Fraunhofer-Str. 20 | | 44227 Dortmund | +-- to success! -+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Testing Frameworks - experience/recommendation
Thanks to both Erik and Simon for the excellent advice/links, Regards, Brian -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 17:11 To: Struts Users Mailing List Subject: Re: Testing Frameworks - experience/recommendation Brian McSweeney wrote: Hi all, I know this has been discussed previously, but Id like some user feedback. Im going to start writing test cases soon, and Id like to know peoples experience using the various frameworks available. First off, my environment: Im using Struts talking to ejbs (session façade to entity beans). So to test, Id like to test both functionality, and performance under load. My understanding is about the frameworks available is that they pretty much all use Junit. I know that strutstestcase is recommended a lot, but it doesnt seem obvious to me how to do load testing with it, like I could with JunitPerf. Anyones experience, advice would be very much appreciated, Not specific to load or performance testing, but I found the following article helpful in testing some parts of my model/domain code: http://www-106.ibm.com/developerworks/library/j-mocktest.html The only problem is that if you are using ServiceLocator pattern, and you wish to subclass the ServiceLocator to override its behavior (so that you can have it provide mock objects instead of actual database connections or EJB handles, etc), static methods are not inherited in subclasses. For instance, I am using a static method to access the ServiceLocator singleton instance Erik - 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]
RE: Webapp Security?
The who sees what problem is one I faced some time ago - and whilst I would have liked to use CMA / Filters, it simply was not a good fit for the application - each user had to have a range of different permissions based on one/more customer codes, one/more product codes and user role admin/company/customer/supplier - all of which had to be configurable for the individual user. I ended up writing my own application security manager - when the user logs in, his permissions are loaded from DB and then checked before any action is performed - with appropriate errors if a violation is detected. db -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 19:13 To: 'Struts Users Mailing List' Subject: RE: Webapp Security? If you want to give user's dynamic permissions at runtime, you could add a filter on top of container managed authentication (CMA). CMA is nice b/c you can use any authenticate with LDAP, a database (my example uses MySQL), or a flat file - or even an NT Domain. You'll probably have to setup some sort of system that defines who can see what - so you'll eventually (probably) end up implementing some sort of roles/groups - unless you're planning on checking for individual usernames or some such attribute before allowing access. Tomcat's security constraint stuff is the same thing as CMA. HTH, Matt -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:54 AM To: Struts Users Mailing List Subject: Re: Webapp Security? Is it based on using security restraints and having all your users set into groups in the tomcat-users.xml file? If so our problem is we don't want to have users based into groups but want to give permissions to users individually to many different things.. and we want to store our users in a database rather than tomcat's xml file.. if I am mistaken on how this works please correct me =) (I havn't actually looked at it, I've just looked at tomcat's security restraint stuff before) -David - Original Message - From: Raible, Matt [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:47 AM Subject: RE: Webapp Security? How about using container managed security with tomcat's realms? It works great for me. Here's an example app if you're interested: http://tinyurl.com/fuvq HTH, Matt -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:27 AM To: Struts Mailing List Subject: Webapp Security? Just curious how others have gone about protecting the resouces within their webapp.. in our personal setup we would like to control access to every resource if possible, we have our own custom login page that sets session variables, and pulls the data from the database. We can authenticate people with code in each of the actions, but nothing is preventing someone from directly going to a jpg or a jsp file or anything of the like. What I thought about doing was subclassing the tomcat connectors, the default, the jsp one, and the struts one and then authenticating each request.. but that adds a lot of overhead. Anybody have any other good ideas? We'd like to stick with just tomcat 4.1.24... no apache (no .htaccess).. what is everyone else implementing? -David - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp Security?
Marc wrote: To protect your JSP, put them in a subdir of WEB-INF. Actions are still able to redirect to those JSPs but they are not direct accessible. To protect your other files, just make a servlet and use path-mapping like '/resources/*' to map all requests to this servlet. What kind of security breaches are JSPs susceptible to, once they protected by a security-constraint path mapping? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp Security?
On 02/07/2003 18:53 David Erickson wrote: Is it based on using security restraints and having all your users set into groups in the tomcat-users.xml file? If so our problem is we don't want to have users based into groups but want to give permissions to users individually to many different things.. and we want to store our users in a database rather than tomcat's xml file.. if I am mistaken on how this works please correct me =) (I havn't actually looked at it, I've just looked at tomcat's security restraint stuff before) Just set up a JDBC realm for your context and use roles. A role can be as fine or coarse grained as you like. Then just write an admin app which allows you assign roles to users. It's easy. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +--+-+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp Security?
Adam Hardy wrote: Marc wrote: To protect your JSP, put them in a subdir of WEB-INF. Actions are still able to redirect to those JSPs but they are not direct accessible. To protect your other files, just make a servlet and use path-mapping like '/resources/*' to map all requests to this servlet. What kind of security breaches are JSPs susceptible to, once they protected by a security-constraint path mapping? what I mean is, are other files like HTML style sheets images vulnerable? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to pass parameters to a javascript popup
Hi all, In my jsp I want to create a standard linkhelp with this field/link which will use javascipt to create a little popup dialog. I want my site to be internationalized, so the contents of the dialog box is also a jsp which is going to read from my resource bundle to get the help message. I was thinking of trying to pass a string into the popup dialog jsp, so that I would only ever have to write a single popup.jsp and it would be able to get the error message based on the string. For example Main.jsp link messageValue=message1 help with this functionlink/ link messageValue=message2 help with this functionlink/ then in the popup.jsp bean:message key=messageValue/ However, I'm not sure a) if this makes any sense b) how to pass the parameter (should I go through an action?) hope this makes some sense, thanks for any responses, Brian
Fwd: ezmlm warning
Hey, any idea what's going on here? Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Date: 3 Jul 2003 03:19:47 - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: ezmlm warning X-MailScanner: Found to be clean X-MailScanner-Information: Please contact your ISP for more information - Be sure to include all mail headers X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-5.6, required 5, BAYES_01, NO_REAL_NAME) Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] Messages to you from the struts-user mailing list seem to have been bouncing. I've attached a copy of the first bounce message I received. If this message bounces too, I will send you a probe. If the probe bounces, I will remove your address from the struts-user mailing list, without further notice. I've kept a list of which messages from the struts-user mailing list have bounced from your address. Copies of these messages may be in the archive. To retrieve a set of messages 123-145 (a maximum of 100 per request), send an empty message to: [EMAIL PROTECTED] To receive a subject and author list for the last 100 or so messages, send an empty message to: [EMAIL PROTECTED] Here are the message numbers: 82821 --- Enclosed is a copy of the bounce message I received. Return-Path: Received: (qmail 4544 invoked from network); 21 Jun 2003 08:51:43 - Received: from tomb.kattare.com (65.212.180.50) by daedalus.apache.org with SMTP; 21 Jun 2003 08:51:43 - Received: from localhost (localhost) by tomb.kattare.com (8.12.8/8.12.4) id h5L8pukK013835; Sat, 21 Jun 2003 01:51:56 -0700 Date: Sat, 21 Jun 2003 01:51:56 -0700 From: Mail Delivery Subsystem [EMAIL PROTECTED] Message-Id: [EMAIL PROTECTED] To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary=h5L8pukK013835.1056185516/tomb.kattare.com Subject: Returned mail: see transcript for details Auto-Submitted: auto-generated (failure) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is a MIME-encapsulated message --h5L8pukK013835.1056185516/tomb.kattare.com The original message was received at Sat, 21 Jun 2003 01:45:38 -0700 from daedalus.apache.org [208.185.179.12] - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 553 5.3.5 system config error) - Transcript of session follows - 553 5.3.5 mailspool.kattare.com. config error: mail loops back to me (MX problem?) 554 5.3.5 Local configuration error --h5L8pukK013835.1056185516/tomb.kattare.com Content-Type: message/delivery-status Reporting-MTA: dns; tomb.kattare.com Received-From-MTA: DNS; daedalus.apache.org Arrival-Date: Sat, 21 Jun 2003 01:45:38 -0700 Final-Recipient: RFC822; [EMAIL PROTECTED] Action: failed Status: 5.3.5 Diagnostic-Code: SMTP; 553 5.3.5 system config error Last-Attempt-Date: Sat, 21 Jun 2003 01:51:56 -0700 --h5L8pukK013835.1056185516/tomb.kattare.com Content-Type: text/rfc822-headers Return-Path: [EMAIL PROTECTED] Received: from apache.org (daedalus.apache.org [208.185.179.12]) by tomb.kattare.com (8.12.8/8.12.4) with SMTP id h5L8jbkK013829 for [EMAIL PROTECTED]; Sat, 21 Jun 2003 01:45:38 -0700 Received: (qmail 99429 invoked by uid 500); 21 Jun 2003 08:42:31 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Struts Users Mailing List struts-user.jakarta.apache.org Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 99418 invoked from network); 21 Jun 2003 08:42:30 - Received: from tmsl-adsl.demon.co.uk (HELO curry.tmsl.demon.co.uk) (80.177.114.181) by daedalus.apache.org with SMTP; 21 Jun 2003 08:42:30 - Received: from bacon.tmsl.demon.co.uk (bacon.tmsl.demon.co.uk [192.168.7.102]) by curry.tmsl.demon.co.uk (8.11.6/8.11.6) with ESMTP id h5L8ggl26505 for [EMAIL PROTECTED]; Sat, 21 Jun 2003 09:42:42 +0100 Date: Sat, 21 Jun 2003 09:42:41 +0100 From: Paul Thomas [EMAIL PROTECTED] To: struts-user [EMAIL PROTECTED] Subject: Re: ConcurrentModificationException when returning ArrayList Message-ID: [EMAIL PROTECTED] References: [EMAIL PROTECTED] Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: [EMAIL PROTECTED]; from [EMAIL PROTECTED] on Fri, Jun 20, 2003 at 05:20:35 +0100 X-Mailer: Balsa 1.2.3 Lines: 24 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --h5L8pukK013835.1056185516/tomb.kattare.com-- ~~ Kito D. Mann . [EMAIL PROTECTED] .Virtua, Inc. ..existence doesn't necessarily mean living... Kito D. Mann
Fwd: ezmlm warning [Sorry]
Sorry, that was a mistake -- wrong value in the to: field :-). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nested tags : trying to get recursion to work
What does yout struts config file look like? Sounds like that is where the problem is... Also, you can't just start with a nest tag (to my knowledge) you have to have it in a nested:form or nested:root, but I may be wrong. The docs are a bit thin and I can't even get the examples to work properly -- Sloan - Original Message - From: Pratima Aiyagari [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 6:33 PM Subject: Nested tags : trying to get recursion to work I am trying to get recursive inclusion to work with the nested tags. Here is what I'm trying to do: I have a directory, which might have a bunch of files or more directories inside of it. Just like any regular directory structure. And I need to display all the directories and the files inside each. In main.jsp: nested:nest property=directory jsp:include page=recursiveDirectories.jsp / /nested:nest There is a bean in the request whose getter [getDirectory] method returns a directory. So, this should be fine. In recursiveDirectories.jsp nested:root readflag=[nested:write property=readFlag/] /nested:root The directory bean which is now passed to nested:root has a getReadFlag method. So this should work ? Or not .. :-/ I get a strange exception. It says Cannot find bean blank in any scope Please see end of this post for the exact exception. It says it can't find some bean, but no indication of what that might be .. Any help appreciated! Pratima === org.apache.jasper.JasperException: Cannot find bean in any scope at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch er.java:575) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher .java:498) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 22) at org.apache.jsp.queryInvReport_jsp._jspx_meth_nested_nest_0(queryInvReport_js p.java:1470) at org.apache.jsp.queryInvReport_jsp._jspService(queryInvReport_jsp.java:735) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 69) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces sor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at
Re: How to pass parameters to a javascript popup
Brian McSweeney wrote: a) if this makes any sense yes it does b) how to pass the parameter (should I go through an action?) I don't see any reason to go thro an action, but you could go thro an action forward mapping for the sake of the URL appearance and security. A querystring parameter would be fine. What do you think the problem might be? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] MVC / Model 2 for Microsoft ???
Just an FYI on this topic. Found this searching MSDN for patterns. http://msdn.microsoft.com/practices/type/Patterns/ImpMVCinASP/default.aspc -Gp -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: June 18, 2003 11:21 AM To: Struts Users Mailing List Subject: Re: [OT] MVC / Model 2 for Microsoft ??? On Wednesday 18 June 2003 09:14, Ted Husted wrote: James Mitchell wrote: I get so tired of hearing of this Struts version of PHP or ASP. Sorry guys, you just can't build a controller with a page by page scripting technology. Have you looked at Maverick, James? As a matter of fact, someone mentioned it last week, so I downloaded the project and briefly skimmed through some of the code. Unfortunately, I have not had time to run the samples or give it a good test-drive, but I hope to soon. I'll post back soon. http://mav.sourceforge.net/ They apparently have .NET and .PHP versions that use controllers, with a request processing pattern that sounds familiar. =:0) http://mavnet.sourceforge.net/ http://amb.sourceforge.net/ I'll be trying these hands-on in July but wondered if you had had a chance to look at these before. -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 770-822-3359 AIM:jmitchtx - 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]
ConcurrentModificationException in the IterateTag class
Hi, I did some loadtesting on a webapplication where i have several jsp-documents, each of them containing iterate-tags. When just one user is testing the application everything works fine, but during the loadtest i got an exception every now and then. The Exception looks like this: java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(Unknown Source) at java.util.AbstractList$Itr.next(Unknown Source) at de.intersoft.web.taglib.logik.IterateTag.doAfterBody(IterateTag.java:523) at jsp_servlet._bestand.__VertragsdatenDetails._jspService (__VertragsdatenDetails.java:3298) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:241) at de.intersoft.lifestream.wizard.WiControlServlet.leiteRequestWeiter(WiControlServlet.java:621) at de.intersoft.lifestream.wizard.WiControlServlet.service(WiControlServlet.java:311) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) We modified the IterateTag-class slightly, but we didn't write any new code, but instead only deleted unneccessary methods in order to have less dependencies to other classes. The doAfterBody Method, where the exception is throws looks like this: public int doAfterBody() throws JspException { // Render the output from this iteration to the output stream if(bodyContent != null) { TagUtil.writePrevious(pageContext, bodyContent.getString ()); bodyContent.clearBody(); } // Decide whether to iterate or quit if((lengthValue 0) (lengthCount = lengthValue)) return (SKIP_BODY); if(iterator.hasNext()) { // THE EXCEPTION IS THROWN IN THE NEXT ROW Object element = iterator.next(); if(element == null) pageContext.removeAttribute(id); else pageContext.setAttribute(id, element); lengthCount++; if(indexId != null) pageContext.setAttribute(indexId, new Integer(getIndex())); return (EVAL_BODY_TAG); } else return (SKIP_BODY); } I know, that a ConcurrentModificationException occurs if for example the underlying collection of the Iterator is changed or the Iterator itself is changed while you use it in a while(...)-block or for(...)-block or something else, but as I said, we didn't write any new code, so I wonder if anyone else experienced these ConcurrentModificationExceptions in the Iterate-class yet ??? Thanks in advance, Dirk Bade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to pass parameters to a javascript popup
Hi Adam, Thanks for the help. The problem I have is, if I'm using the html:link tag to pass the parameters, how do I pass the static value? For example, if I wanted to have two links on the one page, I was thinking of doing something like the following: html:link href= paramId=helpMessage staticvalue=helpMessage1 onClick=openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, height=500,left=10,top=100') /html:link html:link href= paramId=helpMessage staticvalue=helpMessage2 onClick=openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, height=500,left=10,top=100') /html:link A) will this parameter get appended to the 'poppedup.jsp@ B) there is no staticvalue attribute on the link tag. So how do I define a string value to get passed. The docs say you need to pass it a page scoped bean and it looks up the value from the bean!! This always confuses me, Thanks for your help, Brian -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 03 July 2003 13:42 To: Struts Users Mailing List Subject: Re: How to pass parameters to a javascript popup Brian McSweeney wrote: a) if this makes any sense yes it does b) how to pass the parameter (should I go through an action?) I don't see any reason to go thro an action, but you could go thro an action forward mapping for the sake of the URL appearance and security. A querystring parameter would be fine. What do you think the problem might be? - 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]
RESUBMIT: Package-List file in Struts 1.1?
Anybody know where the package-list file can be found for Struts 1.1 Final? I'm trying to generate some Javadoc offline and I can't find this file in the source jar file that I downloaded. Previously, the package-list was always provided with Struts 1.0. JOHN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts-layout
I heard that this was in struts 1.1rc1, what happened to it that it didn't make 1.1 and what are the plans. Ta John Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. This e-mail message is confidential and for use by the addressee only. If you are not the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not accept responsibility for changes made to this message after it was sent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Does any one know ....
were I can get hold of a Powered By Struts image that has a transparent background? Also, a Powered By Apache one as well? Cheers Simon I have often wondered how it is that every man loves himself more than all the rest of men, but yet sets less value on his own opinion of himself than on the opinion of others. -- Georg Christoph Lichtenberg Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ConcurrentModificationException in the IterateTag class
The most likely cause is that you've got an application-scoped collection (or perhaps session-scoped) that has been modified in one thread while the iterate tag is looping in another thread. Nothing really to do with the tag itself. Quoting [EMAIL PROTECTED]: Hi, I did some loadtesting on a webapplication where i have several jsp-documents, each of them containing iterate-tags. When just one user is testing the application everything works fine, but during the loadtest i got an exception every now and then. The Exception looks like this: java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(Unknown Source) at java.util.AbstractList$Itr.next(Unknown Source) at de.intersoft.web.taglib.logik.IterateTag.doAfterBody(IterateTag.java:523) at jsp_servlet._bestand.__VertragsdatenDetails._jspService (__VertragsdatenDetails.java:3298) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:241) at de.intersoft.lifestream.wizard.WiControlServlet.leiteRequestWeiter(WiControlServlet.java:621) at de.intersoft.lifestream.wizard.WiControlServlet.service(WiControlServlet.java:311) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) We modified the IterateTag-class slightly, but we didn't write any new code, but instead only deleted unneccessary methods in order to have less dependencies to other classes. The doAfterBody Method, where the exception is throws looks like this: public int doAfterBody() throws JspException { // Render the output from this iteration to the output stream if(bodyContent != null) { TagUtil.writePrevious(pageContext, bodyContent.getString ()); bodyContent.clearBody(); } // Decide whether to iterate or quit if((lengthValue 0) (lengthCount = lengthValue)) return (SKIP_BODY); if(iterator.hasNext()) { // THE EXCEPTION IS THROWN IN THE NEXT ROW Object element = iterator.next(); if(element == null) pageContext.removeAttribute(id); else pageContext.setAttribute(id, element); lengthCount++; if(indexId != null) pageContext.setAttribute(indexId, new Integer(getIndex())); return (EVAL_BODY_TAG); } else return (SKIP_BODY); } I know, that a ConcurrentModificationException occurs if for example the underlying collection of the Iterator is changed or the Iterator itself is changed while you use it in a while(...)-block or for(...)-block or something else, but as I said, we didn't write any new code, so I wonder if anyone else experienced these ConcurrentModificationExceptions in the Iterate-class yet ??? Thanks in advance, Dirk Bade -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do struts manage this
I'm playing with a demo running with struts, jboss and a mysql database. This example extracts data from a database and dump this in a table on my browser. But i don't understand one thing. In the action method they set an attribute employees with the collection employees. Which is filled only with the emp_id numbers (see employee EJB). In struts-config.xml is employeeviewsucces forwarded to employeeviewsucces.jsp. In employeeviewsucces.jsp they refer to this employees. How can get these logic:iterate the other data from the database. (During debuging i found out that the EJB methods were called, but i don't understand who and why these methods are called. I see no link between the EJBmethods and the jsp calls. Can somebody give me e little bit more explanation please or a hint where i can find more explanation about this. Thanks in advance. Peter Here a snip of the struts action-code : . try { InitialContext jndiContext = new InitialContext(env); Object ref = jndiContext.lookup(Employee); EmployeeHome home= (EmployeeHome)PortableRemoteObject.narrow(ref,EmployeeHome.class); Collection employees = home.findAll(); session.setAttribute(employees, employees); } catch (Exception e) { return (mapping.findForward(employeeviewfailure)); } return (mapping.findForward(employeeviewsuccess)); } . Here's a the findall method of the Employee EJB . public Collection ejbFindAll() { Vector employeeKeys = new Vector(); String sqlString = select EMP_ID from EMPLOYEE; try { Statement s = connection.createStatement(); ResultSet rs = s.executeQuery(sqlString); while (rs.next()) { employeeKeys.addElement(new Integer(rs.getInt(EMP_ID))); } rs.close(); } catch (SQLException e) { System.out.println(An SQL Exception occurred while querying result set of employee); } return employeeKeys; } . employeeviewsuccess if forwarded to employeeviewsucces.jsp. Here's the snip of the code i don't understand. . logic:present name=employees scope=session logic:iterate id=currentEmployee name=employees scope=session tr td bean:write name=currentEmployee property=employeeid/ /td td bean:write name=currentEmployee property=firstname/ /td td bean:write name=currentEmployee property=lastname/ /td td bean:write name=currentEmployee property=extension/ /td td bean:write name=currentEmployee property=department/ /td td bean:write name=currentEmployee property=city/ /td td a href=employeedelete.do?id=bean:write name=currentEmployee property=employeeid/Delete/a /td td a href=employeemodifysetup.do?id=bean:write name=currentEmployee property=employeeid/Modify/a /td /tr /logic:iterate /logic:present . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic input forward?
I think having multiple mappings is the easiest. The other way is to modify the struts-workflow extension, but take it from me that this may be more complicated than it is worth. The workflow extension code has a session scoped bean that knows where you have been. With a little modification you can get this to work. Depending on if this happens a lot or just infrequently I would use the multiple mappings. The way I usually think about mappings is that there is a unique one (other than the obvious) for different inputs and different forwards (with the same name). sandeep --- Martin Naskovski [EMAIL PROTECTED] wrote: Hi Struts fans/experts, I'm curious, is there a dynamic way of redefining what the 'mapping.getInputForward()' function will return? Why I ask this? Well, if I have a 'Screen X', and I can get to this screen from 'Screen A' or 'Screen B' or 'Screen C' - if I clicked cancel/exit on Screen X, I'd like to go to the correct input forward screen. Is the -only- way to achieve this to have multiple mappings for the action that loads 'Screen X', and each of those mappings would have as their 'input=...' Screen A, or B or C? Or is there some other way of determining where I 'came from' to a particular screen without having to map 3 different action mappings to the same action but different input=..'s? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: iBatis Out of Memory
The new ibatis 1.2.5 has lazy loading of xml that you can configure. Brandon Goodin -Original Message- From: Indra Gunawan [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:54 AM To: 'Struts Users Mailing List' Subject: iBatis Out of Memory Hi all, I have a problem with iBatis in my project . I have several xml files to be loaded and by default iBatis loads them all . Is there a way to solve this problem ? I think there may be an option to change the behavior so iBatis will load only appropriate xml only . Loading all xml files cause out of memory in Tomcat and the server got to be restarted . Thx Regards IG - 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]
automated formbean and jsp generation
Hello I have a db with about a hundred of tables, and I would like to build a web app to access and modify this data. I am thinking about a mean to do this as generic as possible : I don't want to create an action, an action form and a jsp for each of my table. What I would like to do is to have a generic formbean, a generic action and a generic jsp that takes a description of the table (why not xml), and from this description is able to perform CRUD operations. I must precise that my fields are not only strings, there are also some checkboxes and listboxes. I think this is quite a common problem, and I think there must be existing tools that could help me, but I don't know them (I would like to avoid tools that generate code, for example a tool that would generate 100 jsp if I have 100 different tables, I prefer a generic solution) In fact there are 2 problems, one for the struts part, and one other : O/R mapping (I think this is not the subject of this topic, however if someone has an idea ...) Help greatly appreciated !!! jndl ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to log with TOMCAT and Struts?
Can anyone tell me how to use logging from within Struts? I have TOMCAT 4.1.18 running as well as Struts 1.1. In my Action class called UserActivator I want to log some information. Where and how do I configure what? I found on the WWW that I have to put a commons-logging.properties file within the WEB-INF/classes directory but what do I have to put in it? Where will the log file be placed given which name? What do I have to do within the Action class? Presently I have the following statements in my Action class: import org.apache.commons.logging.*; private static Log logger = LogFactory.getLog(UserActivator.class); logger.trace(some text); Thank you. Dirk Berlin, Germany - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cascade Select
(4.) Use JavaScript. Something along the lines of html:select property=yerFormProperty onchange=document.yourForm.otherSelectBox.value=this.value / This seems really obvious to me, though, so maybe I'm missing something. -= J -Original Message- From: Mihir Parekh [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 2:26 AM To: [EMAIL PROTECTED] Subject: Cascade Select I would like to know is there a way to create cascade selects combo-boxes using a tag library compatible with struts? Also, I would like to know how does struts developer usually handles a situation where second combo box is to be filled with a value selected from the first combo box. I am aware of following approaches, but still looking for more elegant solution to this problem: (1.) Refresh the jsp page on select of the first combo box, and reset the bean for the second combo box. This approach requires a server side call and if it takes longer to reload it becomes annoying. (2.) Create a pick-list instead of a combo. Pick-list pops up on press of a select icon box. Pick-lists are not as user friendly as combo boxes. (3). Create a applet-servlet bridge to access database from. The article can be found at http://www.onjava.com/lpt/a/1342 This approach works but requires a client side applet. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: More Validation Problems
Does the required option of the validator check to see if the field is null or an empty string? Maybe this is why my validations have been passing when they shouldn't, because I initialize all my properties to . I hope I've finally found my problem! - Keith -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 5:20 PM To: Struts Users Mailing List Subject: Re: More Validation Problems wait til you graduate onto struts validator, you'll have a ball then ;) Nathan Ewing wrote: Omg I figured it out :) In my validation, to see if someone had filled in a required field I was checking to see if the field was null. Because of this whenever the form displayed the bean would be created with null fields and errors would display. Then when I hit submit it would make the blank field instead of null so I wouldn't get an error :) Nathan --- Nathan Ewing [EMAIL PROTECTED] wrote: Well I figured out why I was getting a validation error. I was returning a null error if there were no errors. Unfortunately now I find my real problem. My form shows correctly (more or less), but if I hit submit instead of just popping back up with validation errors it goes to the Action class behind it. Shouldn't it by default show my form, then if I enter wrong data just show the form again with the errors, and then if it passes with no errors it should go to the action class for processing? Nathan - 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] - 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]
Re: How to log with TOMCAT and Struts?
Check out log4j, also from Jakarta. http://jakarta.apache.org/log4j/docs/index.html - Original Message - From: du-it [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 9:34 AM Subject: How to log with TOMCAT and Struts? Can anyone tell me how to use logging from within Struts? I have TOMCAT 4.1.18 running as well as Struts 1.1. In my Action class called UserActivator I want to log some information. Where and how do I configure what? I found on the WWW that I have to put a commons-logging.properties file within the WEB-INF/classes directory but what do I have to put in it? Where will the log file be placed given which name? What do I have to do within the Action class? Presently I have the following statements in my Action class: import org.apache.commons.logging.*; private static Log logger = LogFactory.getLog(UserActivator.class); logger.trace(some text); Thank you. Dirk Berlin, Germany - 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]
Re: struts-layout
struts-layout is a taglib developped by Improve to help building Struts app. http://struts.application-servers.com/ It is not currently part of Struts, and was noy included in 1.1rc1. It will not bee since Improve didn't donate code to Apache Software Fundation. Nico. - Original Message - From: McRobb, John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 3:12 PM Subject: struts-layout I heard that this was in struts 1.1rc1, what happened to it that it didn't make 1.1 and what are the plans. Ta John Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. This e-mail message is confidential and for use by the addressee only. If you are not the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not accept responsibility for changes made to this message after it was sent. - 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]
RE: Validation Problems
Websphere 5 has a nice struts-config UI that helps to keep everything organized. I've heard of other UI's out there too. - Keith -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 5:26 PM To: Struts Users Mailing List Subject: Re: Validation Problems --- Adam Hardy [EMAIL PROTECTED] wrote: What is it about action mappings? People seem to think they cost money or something. Every struts project I've done had hundreds. If you need two action mappings, don't worry about it. I think somebody worked out once that tomcat would only start to show performance degradation once the action mappings total reached 100,000. I suppose you have to make sure you keep them grouped together in struts-config.xml to stop the file getting unmanageable, but that's the only disadvantage I can think of. You can use multiple struts-config.xml files to cleanly group your definitions. David As far as I'm concerned, I'd always rather change some config statement than change code and recompile. But your action error is playing up still right? I presume if you take the html:errors tag out of the jsp, there is no exception? Post the tag here. Also, check your application resources file for the error messages, the header and the footer. Adam Nathan Ewing wrote: Upgraded, didn't help. Nathan --- Nathan Ewing [EMAIL PROTECTED] wrote: Actually version 1.1.b3 Maybe I should try the final release. Nathan --- Wendy Smoak [EMAIL PROTECTED] wrote: Nathan wrote: I'm trying to set up struts validation (using the validate() function in the actionForm) and I'm getting a few problems. First, as soon as I open the form it shows the validation errors. It doesn't wait until I fill out the form. Is there a way to prevent this? Search the archives, this has come up before. One way is to override the 'validate' method and only call super.validate() when appropriate. Second if I fill out the form correctly (and hence there would be no validation errors) I get a null pointer exception on the: org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:239) tag. What version of Struts? I am not seeing this behavior at all. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - 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]
Re: validation doesn't validate
--- Michael Muller [EMAIL PROTECTED] wrote: I can't get the validation framework to do anything. I'm speculating that the validation.xml file isn't being read; I tried putting a rule that doesn't exist and then some arbitrary syntactically incorrect text in the file, and I didn't get an error anywhere I could find. On the other hand, there is a message like this: Currently, commons-validator doesn't validate your xml file against the DTD so you won't see a syntax error. INFO: Loading validation rules file from '/WEB-INF/validation.xml' in the console log. And no errors. No errors in the localhost_log, either. So maybe it *is* reading the validation file. My form bean name matches my validation form name, which matches the name in my action mapping. I have validate=true in my action mapping. I have a validation rule defined for a field on the form. (Two, actually: required and integer.) Nothing. I'm using a DynaValidatorActionForm, in case that matters. You need to use DynaValidatorForm. David Oh, and this is RC1 of 1.1 running in tomcat 4.1. Help! I'm sure this is a common problem, and I'll be embarassed when I learn what it is, but I'm stuck. Thanks, -- Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] CCValidation
Hello, I am trying to validate credcard numbers entered by my customers. Most of them can be validated easily using Lunh method, but I am running into a problem when the customer tries to use a business credcard (or so the boss tells me). Should business credcards number be verifiable by Luhn method (used in the validator), or do I have to write something special, and if so, what is it? I figured that a lot of struts people have dealt with this, and I am interested in what you all know, Thank you, Denis PS. I am writing CredCard because struts-user spam filter keeps rejecting any email that has the full name in it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Big Javabean?
Hi There are 2 quick questions. 1) I'm considering making one huge javabean that will have 100+ fields. This bean will be share in the session across up to 23 different screen. I think this is probably the cleanest way, as the same field might show up in different screens. I don't think this will be a problem, however, I have never heard or made one single bean with that many fields. Have you seen or done that? Have you heard of any problem that might or have cause? 2) Also, since I'm on this note, I noticed if I have a variable name mI (stands for middle initial), therefore having getMI() and setMI(..), struts does not recognize those getter and setter because it is actually expecting getiM() and setiM(). I got around it by renaming my variable middleInitial, so that the getter and setter are getMiddleInitial() and setMiddleInitial(). This works fine. I'm just wondering if anyone out there aware of this or am I missing anything in the JavaBean standard? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More Validation Problems
Yes it does. Both. How can your initialization affect validation though? In your case freshly initialized properties would fail validation. Adam Kamholz, Keith (corp-staff) USX wrote: Does the required option of the validator check to see if the field is null or an empty string? Maybe this is why my validations have been passing when they shouldn't, because I initialize all my properties to . I hope I've finally found my problem! - Keith -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 5:20 PM To: Struts Users Mailing List Subject: Re: More Validation Problems wait til you graduate onto struts validator, you'll have a ball then ;) Nathan Ewing wrote: Omg I figured it out :) In my validation, to see if someone had filled in a required field I was checking to see if the field was null. Because of this whenever the form displayed the bean would be created with null fields and errors would display. Then when I hit submit it would make the blank field instead of null so I wouldn't get an error :) Nathan --- Nathan Ewing [EMAIL PROTECTED] wrote: Well I figured out why I was getting a validation error. I was returning a null error if there were no errors. Unfortunately now I find my real problem. My form shows correctly (more or less), but if I hit submit instead of just popping back up with validation errors it goes to the Action class behind it. Shouldn't it by default show my form, then if I enter wrong data just show the form again with the errors, and then if it passes with no errors it should go to the action class for processing? Nathan - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] CCValidation
--- Denis Avdic [EMAIL PROTECTED] wrote: Hello, I am trying to validate credcard numbers entered by my customers. Most of them can be validated easily using Lunh method, but I am running into a problem when the customer tries to use a business credcard (or so the boss tells me). Should business credcards number be verifiable by Luhn method (used in the validator), or do I have to write something special, and if so, what is it? I believe *all* credit card numbers can be validated using the Luhn method. The validator also checks that the card is one of several vendors which may be your problem. The supported card types are AMEX, VISA, Discover, and Master Card. David I figured that a lot of struts people have dealt with this, and I am interested in what you all know, Thank you, Denis PS. I am writing CredCard because struts-user spam filter keeps rejecting any email that has the full name in it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSTL- el - nested beans from a map used in a form?
I don't think you have defined your taglib at the top of the jsp. Your html-el should have changed when you look at the source.. sandeep --- Rick Reumann [EMAIL PROTECTED] wrote: On Sat, 2003-06-28 at 13:51, Dan Tran wrote: see this link http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt Thanks Dan. I looked at the presentation above, but it's not helping me much. I probably do still need the indexed=true to make the properties indexed, but I still don't see how this is going to get them populated in the correct bean and loaded back into the map? Adding indexed=true doesn't seem to help. -Dan - Original Message - From: Rick Reumann [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 28, 2003 9:35 AM Subject: JSTL- el - nested beans from a map used in a form? Ok this has me stumped... the down and dirty: formBean has HashMap called fooMap fooMap has keys that bring back beans of type BarBean BarBean has properties someCode , someDescrip Now I want to iterate over this map and create the properties based on the properties in BarBean and be able to update this form which will then update the underlying BarBeans in the map. (Ignore the part that I know that's a hassle about the reset method and making sure Map exist there). c:forEach var=beanInMap items=${formBean.fooMap} someCode: html-el:text property=/br someDescrip: html-el:text property=/br br /c:forEach the text will display fine in the form with: someCode: html-el:text name=beanInMap property=beanInMap.deptCode / but when the form submits all the bean property values are null ( in the reset if it matters for testing i'm just creating a few maps with empty BarBeans in the map). I'm stumped.. any help much appreciated. -- Rick - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Big Javabean?
--- Poon, Johnny [EMAIL PROTECTED] wrote: Hi There are 2 quick questions. 1) I'm considering making one huge javabean that will have 100+ fields. This bean will be share in the session across up to 23 different screen. I think this is probably the cleanest way, as the same field might show up in different screens. I don't think this will be a problem, however, I have never heard or made one single bean with that many fields. Have you seen or done that? Have you heard of any problem that might or have cause? It will be confusing for people to maintain a class that large. You should break your beans into logically separate classes. 2) Also, since I'm on this note, I noticed if I have a variable name mI (stands for middle initial), therefore having getMI() and setMI(..), struts does not recognize those getter and setter because it is actually expecting getiM() and setiM(). I got around it by renaming my variable middleInitial, so that the getter and setter are getMiddleInitial() and setMiddleInitial(). This works fine. I'm just wondering if anyone out there aware of this or am I missing anything in the JavaBean standard? Struts relies on commons-beanutils to find the bean properties. Having a variable named mI is an absolutely terrible idea anyways and middleInitial is much more descriptive. David Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More Validation Problems
Kamholz, Keith (corp-staff) USX wrote: Does the required option of the validator check to see if the field is null or an empty string? The field is first stripped of all leading and trailing whitespace. If the field is null or the required validation will fail. David Maybe this is why my validations have been passing when they shouldn't, because I initialize all my properties to . I hope I've finally found my problem! - Keith -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 5:20 PM To: Struts Users Mailing List Subject: Re: More Validation Problems wait til you graduate onto struts validator, you'll have a ball then ;) Nathan Ewing wrote: Omg I figured it out :) In my validation, to see if someone had filled in a required field I was checking to see if the field was null. Because of this whenever the form displayed the bean would be created with null fields and errors would display. Then when I hit submit it would make the blank field instead of null so I wouldn't get an error :) Nathan --- Nathan Ewing [EMAIL PROTECTED] wrote: Well I figured out why I was getting a validation error. I was returning a null error if there were no errors. Unfortunately now I find my real problem. My form shows correctly (more or less), but if I hit submit instead of just popping back up with validation errors it goes to the Action class behind it. Shouldn't it by default show my form, then if I enter wrong data just show the form again with the errors, and then if it passes with no errors it should go to the action class for processing? Nathan - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : Re: How to pass parameters to a javascriptpopup
Adam, have you tried this with an action url on parameter. Something like : a href=help onclick=openWindow('myaction.do?task=doThis');return false;Help/a I'm asking this question because It's not working with me. I seems my url action is not recognized with the openWindow call. any suggestion ? Meissa Adam Hardy [EMAIL PROTECTED] 03/07/2003 16:24 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: How to pass parameters to a javascript popup Brian McSweeney wrote: html:link href= paramId=helpMessage staticvalue=helpMessage1 onClick=openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, height=500,left=10,top=100') /html:link Try a href=help onclick=openWindow('poppedup.jsp?helpMsg=helpMsg1');return false;Help/a The return false will stop the link doing any redirecting of the current window, and the popup will obtain the URL + querystring as defined in the javascript. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
[tiles] ComponentContext returning null
Can anybody explain how the component context is set? From within an Action when I call ComponentContext context = ComponentContext.getContext( request ); context is always null. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Using pojo-beans in html:text?!
Hi, where or what exactly is your problme? See below. RT It seems the division Bean reference is not found by html:text in any scope. Is it found or not. Do you get any error message? No no error messages, no exceptions. The problem is that: html:text name=division property=name size=40 maxlength=45 style=margin-left:25% / does not set the name property of the division bean instance _although_ it _is_ in session scope. Is html:text assiged only to the form of the html:action? If yes why do we have a name attribute there? RT If I add a name attribute to the ActionForm assigend to the html-form Action RT _this_ bean is contains the typed in value. What do you mean? I experimented a litte bit. So I added the a name bean attribute (getter/setter) to the form of the surounding ActionForm of html:text tag. And now the attribute of ActionForm is set. I guess the taglibs get's a fallback to the form as it does not find a bean with the name division. Maybe the html:text examines only the page scope and not the session scope as well. html:text does not have a session attribute as far as I know... The problem I have: I use transfer object passed form EJB to the Struts Actions. I would like to use some of the transfer object bean attributes directly into the jsp page due to I don't like to copy from ActionForm to TransferObject and from Transfer Object to Bussiness Object... I'd like to reduce the copy hell... So PLEASE help me! :-) Hope I could explained my problem in a better way. Toby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do struts manage this
Collection employees = home.findAll(); This code returns a collection with Employes, LocalObject (you must read about ejbs, there are a lot of books for this.) The collection employees is not filled with emp_id but with EmployeeObject, This object has all the properties of the Employee table(employeeid, firstname, lastname, ) That the code below is OK, because the Object in the iterator has all this properties. logic:present name=employees scope=session logic:iterate id=currentEmployee name=employees scope=session tr td bean:write name=currentEmployee property=employeeid/ /td td bean:write name=currentEmployee property=firstname/ /td td bean:write name=currentEmployee property=lastname/ /td td bean:write name=currentEmployee property=extension/ /td td bean:write name=currentEmployee property=department/ /td td bean:write name=currentEmployee property=city/ If you have any question please ask.. Vangos. - Original Message - From: Peter Bosmans [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 3:16 PM Subject: How do struts manage this I'm playing with a demo running with struts, jboss and a mysql database. This example extracts data from a database and dump this in a table on my browser. But i don't understand one thing. In the action method they set an attribute employees with the collection employees. Which is filled only with the emp_id numbers (see employee EJB). In struts-config.xml is employeeviewsucces forwarded to employeeviewsucces.jsp. In employeeviewsucces.jsp they refer to this employees. How can get these logic:iterate the other data from the database. (During debuging i found out that the EJB methods were called, but i don't understand who and why these methods are called. I see no link between the EJBmethods and the jsp calls. Can somebody give me e little bit more explanation please or a hint where i can find more explanation about this. Thanks in advance. Peter Here a snip of the struts action-code : . try { InitialContext jndiContext = new InitialContext(env); Object ref = jndiContext.lookup(Employee); EmployeeHome home= (EmployeeHome)PortableRemoteObject.narrow(ref,EmployeeHome.class); Collection employees = home.findAll(); session.setAttribute(employees, employees); } catch (Exception e) { return (mapping.findForward(employeeviewfailure)); } return (mapping.findForward(employeeviewsuccess)); } . Here's a the findall method of the Employee EJB . public Collection ejbFindAll() { Vector employeeKeys = new Vector(); String sqlString = select EMP_ID from EMPLOYEE; try { Statement s = connection.createStatement(); ResultSet rs = s.executeQuery(sqlString); while (rs.next()) { employeeKeys.addElement(new Integer(rs.getInt(EMP_ID))); } rs.close(); } catch (SQLException e) { System.out.println(An SQL Exception occurred while querying result set of employee); } return employeeKeys; } . employeeviewsuccess if forwarded to employeeviewsucces.jsp. Here's the snip of the code i don't understand. . logic:present name=employees scope=session logic:iterate id=currentEmployee name=employees scope=session tr td bean:write name=currentEmployee property=employeeid/ /td td bean:write name=currentEmployee property=firstname/ /td td bean:write name=currentEmployee property=lastname/ /td td bean:write name=currentEmployee property=extension/ /td td bean:write name=currentEmployee property=department/ /td td bean:write name=currentEmployee property=city/ /td td a href=employeedelete.do?id=bean:write name=currentEmployee property=employeeid/Delete/a /td td a href=employeemodifysetup.do?id=bean:write name=currentEmployee property=employeeid/Modify/a /td /tr /logic:iterate /logic:present . - 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]
Re: Big Javabean?
Don't think there is a problem with a javabean that size. We have similar sizes. May want to think about using request scope though (with the same java bean). This means more calls to the database however. One question to ask is if you need to have concurrent access to the same data. Your session scoped bean could be out of date if someone else updates it. sandeep --- Poon, Johnny [EMAIL PROTECTED] wrote: Hi There are 2 quick questions. 1) I'm considering making one huge javabean that will have 100+ fields. This bean will be share in the session across up to 23 different screen. I think this is probably the cleanest way, as the same field might show up in different screens. I don't think this will be a problem, however, I have never heard or made one single bean with that many fields. Have you seen or done that? Have you heard of any problem that might or have cause? 2) Also, since I'm on this note, I noticed if I have a variable name mI (stands for middle initial), therefore having getMI() and setMI(..), struts does not recognize those getter and setter because it is actually expecting getiM() and setiM(). I got around it by renaming my variable middleInitial, so that the getter and setter are getMiddleInitial() and setMiddleInitial(). This works fine. I'm just wondering if anyone out there aware of this or am I missing anything in the JavaBean standard? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sslext for Struts 1.1RC2 with Struts 1.1
Hi All, Does the sslext for Struts1.1RC2 work with the new 1.1 release? Cheers, Greg Hess Software Engineer Wrapped Apps Corporation 275 Michael Cowpland Dr. Suite 201 Ottawa, Ontario K2M 2G2 Tel: (613) 591 -7552 Fax: (613) 591-0523 1 (877) 388-6742
Re: Validating by action
strip off the leading / as well Kamholz, Keith (corp-staff) USX wrote: Hey everyone, Quick question. I'm trying to get the validator working with ValidatorActionForm. In the validation.xml, do I have to put the .do in the form name, or do I just leave it as form name=/SomeAction ? Thanks! - Keith - 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]
RE: Big Javabean?
David, Thanks for your input. I guess I didn't give you enough specifics about the app that I'm developing for my question 1. It is a wizard-like app that allow user to go Back and Next. While I started out using several beans broken up logically to maintain the data, say bean1 and bean2, I found out that some screens has fields from both beans. As far as I know, struts only allow 1 form bean to be associated with a form action, I changed my design to use 1 single bean for all screen. This way, it's a lot easier to handle the Back situation where the previously entered data needs to be populated in the right fields. What I'm really asking is that, other than it might not be the easiest thing to maintain a bean with 100+, for those of you who've used such bean, is there any technical issue like performance, or session capacity, etc.? -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 9:38 AM To: Struts Users Mailing List Subject: Re: Big Javabean? --- Poon, Johnny [EMAIL PROTECTED] wrote: Hi There are 2 quick questions. 1) I'm considering making one huge javabean that will have 100+ fields. This bean will be share in the session across up to 23 different screen. I think this is probably the cleanest way, as the same field might show up in different screens. I don't think this will be a problem, however, I have never heard or made one single bean with that many fields. Have you seen or done that? Have you heard of any problem that might or have cause? It will be confusing for people to maintain a class that large. You should break your beans into logically separate classes. 2) Also, since I'm on this note, I noticed if I have a variable name mI (stands for middle initial), therefore having getMI() and setMI(..), struts does not recognize those getter and setter because it is actually expecting getiM() and setiM(). I got around it by renaming my variable middleInitial, so that the getter and setter are getMiddleInitial() and setMiddleInitial(). This works fine. I'm just wondering if anyone out there aware of this or am I missing anything in the JavaBean standard? Struts relies on commons-beanutils to find the bean properties. Having a variable named mI is an absolutely terrible idea anyways and middleInitial is much more descriptive. David Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - 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]
Re: Réf. : Re: How to pass parameters to a javascript popup
that was only a very rough version for sake of an example. Does the javascript work? I mean, does the new window pop up? if so, then do you see the correct URL in the new browser window? [EMAIL PROTECTED] wrote: Adam, have you tried this with an action url on parameter. Something like : a href=help onclick=openWindow('myaction.do?task=doThis');return false;Help/a I'm asking this question because It's not working with me. I seems my url action is not recognized with the openWindow call. any suggestion ? Meissa Adam Hardy [EMAIL PROTECTED] 03/07/2003 16:24 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: How to pass parameters to a javascript popup Brian McSweeney wrote: html:link href= paramId=helpMessage staticvalue=helpMessage1 onClick=openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, height=500,left=10,top=100') /html:link Try a href=help onclick=openWindow('poppedup.jsp?helpMsg=helpMsg1');return false;Help/a The return false will stop the link doing any redirecting of the current window, and the popup will obtain the URL + querystring as defined in the javascript. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Using pojo-beans in html:text?!
Why not use beanUtils.copyProperties to reduce the copy hell. I would have the properties on the form bean and the DTO. Another thing to consider is possible race conditions. For example if the user double clicks - the populate is done before the token checking so if anything funny happens on the populate you may compromise your data. I am very suprised that the name attribute doesn't work. The other thing to try is have the DTO on the form and just access it like dto.somePOJOProperty sandeep --- Rademacher Tobias [EMAIL PROTECTED] wrote: Hi, where or what exactly is your problme? See below. RT It seems the division Bean reference is not found by html:text in any scope. Is it found or not. Do you get any error message? No no error messages, no exceptions. The problem is that: html:text name=division property=name size=40 maxlength=45 style=margin-left:25% / does not set the name property of the division bean instance _although_ it _is_ in session scope. Is html:text assiged only to the form of the html:action? If yes why do we have a name attribute there? RT If I add a name attribute to the ActionForm assigend to the html-form Action RT _this_ bean is contains the typed in value. What do you mean? I experimented a litte bit. So I added the a name bean attribute (getter/setter) to the form of the surounding ActionForm of html:text tag. And now the attribute of ActionForm is set. I guess the taglibs get's a fallback to the form as it does not find a bean with the name division. Maybe the html:text examines only the page scope and not the session scope as well. html:text does not have a session attribute as far as I know... The problem I have: I use transfer object passed form EJB to the Struts Actions. I would like to use some of the transfer object bean attributes directly into the jsp page due to I don't like to copy from ActionForm to TransferObject and from Transfer Object to Bussiness Object... I'd like to reduce the copy hell... So PLEASE help me! :-) Hope I could explained my problem in a better way. Toby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sslext for Struts 1.1RC2 with Struts 1.1
Works for me, I recompiled it with the new libs tho. - Original Message - From: Greg Hess To: Struts Sent: Thursday, July 03, 2003 7:37 AM Subject: sslext for Struts 1.1RC2 with Struts 1.1 Hi All, Does the sslext for Struts1.1RC2 work with the new 1.1 release? Cheers, Greg Hess Software Engineer Wrapped Apps Corporation 275 Michael Cowpland Dr. Suite 201 Ottawa, Ontario K2M 2G2 Tel: (613) 591 -7552 Fax: (613) 591-0523 1 (877) 388-6742
RE: Upgrading to Struts 1.1 problem with commons-collections
Yes, it is in the classpath for SilverStream. Do you know of a way I could work around unloading the collections.jar AFTER the rest of the war (or test to ensure that is really the problem)? Is anyone else running Struts1.1 on SilverStream4.0? Kim -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:49 AM To: Struts Users Mailing List Subject: Re: Upgrading to Struts 1.1 problem with commons-collections did you actually look inside your commons-collections.jar to see that you have that class in there, and that the jar is definitely on the class path for silverstream, not just in the WEB-INF/lib where I believe the server processes can't see it? It may well at the point of unloading the war have unloaded the collections.jar. I'm not sure, just guessing here. Kim Bilida wrote: Here's the message SilverStream is giving me when the deployment fails: AgoDeploymentException: Upload of deployment data to the server failed. Archive: CM_kim(CM_kim.war) com.sssw.srvtools.deploy.AgoDeploymentException: Upload of deployment data to the server failed. com.sssw.rt.util.AgoHTTPStatusException: Failure code 500 on http://localhost:8001/CMREP//SilverStream/Objectstore/Jars/CM_kim. at com.sssw.rt.util.AgoUpload.complete(AgoUpload.java:216) at com.sssw.rt.util.MetaDataStreamer.toURL(MetaDataStreamer.java:147) at com.sssw.srvtools.deploy.MetaDataDeploymentTask.doTask(AgoSilverServerDeploymentTarget.java:505) at com.sssw.rt.util.ThreadTeamThread.doTaskInternal(ThreadTeamThread.java:99) at com.sssw.rt.util.ThreadTeamThread.run(ThreadTeamThread.java:63) -Original Message- From: Kim Bilida Sent: Wednesday, July 02, 2003 10:42 AM To: Struts Users Mailing List Subject: Upgrading to Struts 1.1 problem with commons-collections Hello all, I've upgraded to Struts 1.1 and everything compiles, deploys and runs fine. (I'm using SilverStream4.0) It's when I do a second deploy that I get the following error message. I then need to restart the server in order to redeploy. Yes, I have commons-collections.jar in the WEB-INF/lib directory. Any ideas? Thanks, Kim java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap$KeySet at org.apache.commons.collections.FastHashMap.keySet(Unknown Source) at org.apache.struts.action.ActionServlet.destroyDataSources(ActionServlet.ja va:769) at org.apache.struts.action.ActionServlet.destroy(ActionServlet.java:431) at com.sssw.srv.resources.AgWarResource.destroyServlets(AgWarResource.java:18 14) at com.sssw.srv.resources.AgWarResource.stop(AgWarResource.java:3180) at com.sssw.srv.resources.AgWarResource.terminate(AgWarResource.java:3245) at com.sssw.srv.resources.AgWarResource.deleteContent(AgWarResource.java:397) at com.sssw.srv.resources.AgFileResource.delete(AgFileResource.java:1069) at com.sssw.srv.resources.HTTPResource.perform(HTTPResource.java:1353) at com.sssw.srv.http.httpd.perform(httpd.java:5571) at com.sssw.srv.http.Client.processRequest(Client.java:898) at com.sssw.srv.http.Client.loop(Client.java:1264) at com.sssw.srv.http.Client.runConnection(Client.java:1480) at com.sssw.srv.http.Client.run(Client.java:1428) at java.lang.Thread.run(Thread.java:479) - 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] - 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]
Virtual [FRIDAY]
Most of the Americans on the List will have an extended weekend so #struts_users is having it's Friday gab session today. irc.darkmyst.org 6667 l8r, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[3]: Using pojo-beans in html:text?!
Hello Toby, see comments below. *** RT Hi, where or what exactly is your problme? See below. RT It seems the division Bean reference is not found by html:text in any RT scope. RT Is it found or not. Do you get any error message? RT No no error messages, no exceptions. The problem is that: RT html:text name=division RT property=name RT size=40 RT maxlength=45 RT style=margin-left:25% RT / RT does not set the name property of the division bean instance _although_ it RT _is_ in session scope. RT Is html:text assiged only to the form of the html:action? Yes. RT If yes why do we RT have a name attribute there? I don't know. RT If I add a name attribute to the ActionForm assigend to the html-form RT Action RT _this_ bean is contains the typed in value. What do you mean? RT I experimented a litte bit. So I added the a name bean attribute RT (getter/setter) to the form of the surounding RT ActionForm of html:text tag. And now the attribute of ActionForm is set. I RT guess the taglibs get's a fallback RT to the form as it does not find a bean with the name division. Maybe the RT html:text examines only the page scope and not the session scope as well. RT html:text does not have a session attribute as far as I know... RT The problem I have: RT I use transfer object passed form EJB to the Struts Actions. I would like to RT use some of the transfer object bean attributes directly into the jsp page RT due to I don't like to copy from ActionForm to TransferObject and from RT Transfer Object to Bussiness Object... I'd like to reduce the copy hell... RT So PLEASE help me! :-) RT Hope I could explained my problem in a better way. RT Toby RT - RT To unsubscribe, e-mail: [EMAIL PROTECTED] RT For additional commands, e-mail: [EMAIL PROTECTED] Regards, Dirk +--- Quality leads ---+ | Dirk Markert [EMAIL PROTECTED] | | Dr. Markert Softwaretechnik AG | | Joseph-von-Fraunhofer-Str. 20 | | 44227 Dortmund | +-- to success! -+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : Re: How to pass parameters to a javascript popup
Also, popup windows can reference their parent window via JavaScript. Therefore if the data you need in your popup is on the original page then you can access it using a DOM reference. From within the popup window you would do something along the lines of: var myVar = window.opener.document[theNameOfTheHtmlForm].formelement.value; -= J -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 9:53 AM To: Struts Users Mailing List Subject: Re: Réf. : Re: How to pass parameters to a javascript popup that was only a very rough version for sake of an example. Does the javascript work? I mean, does the new window pop up? if so, then do you see the correct URL in the new browser window? [EMAIL PROTECTED] wrote: Adam, have you tried this with an action url on parameter. Something like : a href=help onclick=openWindow('myaction.do?task=doThis');return false;Help/a I'm asking this question because It's not working with me. I seems my url action is not recognized with the openWindow call. any suggestion ? Meissa Adam Hardy [EMAIL PROTECTED] 03/07/2003 16:24 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: How to pass parameters to a javascript popup Brian McSweeney wrote: html:link href= paramId=helpMessage staticvalue=helpMessage1 onClick=openWindow('poppedup.jsp','popup','scrollbars=yes,w idth=1000, height=500,left=10,top=100') /html:link Try a href=help onclick=openWindow('poppedup.jsp?helpMsg=helpMsg1');return false;Help/a The return false will stop the link doing any redirecting of the current window, and the popup will obtain the URL + querystring as defined in the javascript. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Big Javabean?
I would disagree with having fine-grained action forms. You will run into problems by splitting them apart for a logicial entity. This is especially true if you have more than one type. JSP re-use is not a problem since this is done by reflection. However form-bean re-use will cause problems when you try and access some property of the base type but it isn't there and so you have some ugly casting. Using the validator solves a lot of this problem. The other advantage of coarse-grained is that you could probably write some XDoclet to help with this. Not great to have the back-end know about the front-end, but this should be minimal and with coarse-grained it won't know about the screens. Haven't done this, but wherever you need to know about the structure of the screens you could have a subclass from the XDoclet generated class. sandeep --- David Graham [EMAIL PROTECTED] wrote: --- Poon, Johnny [EMAIL PROTECTED] wrote: Hi There are 2 quick questions. 1) I'm considering making one huge javabean that will have 100+ fields. This bean will be share in the session across up to 23 different screen. I think this is probably the cleanest way, as the same field might show up in different screens. I don't think this will be a problem, however, I have never heard or made one single bean with that many fields. Have you seen or done that? Have you heard of any problem that might or have cause? It will be confusing for people to maintain a class that large. You should break your beans into logically separate classes. 2) Also, since I'm on this note, I noticed if I have a variable name mI (stands for middle initial), therefore having getMI() and setMI(..), struts does not recognize those getter and setter because it is actually expecting getiM() and setiM(). I got around it by renaming my variable middleInitial, so that the getter and setter are getMiddleInitial() and setMiddleInitial(). This works fine. I'm just wondering if anyone out there aware of this or am I missing anything in the JavaBean standard? Struts relies on commons-beanutils to find the bean properties. Having a variable named mI is an absolutely terrible idea anyways and middleInitial is much more descriptive. David Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : Re: How to pass parameters to a javascript popup
Thanks for your help Adam, Meissa, this is working for me. a href= onclick=hold=window.open('poppedup.jsp?helpMessage=helpMessage2', 'popupWindow', 'menubar=no, scrollbars=yes, width=500, height=300, screenx=1, screeny=1'); hold.focus(); return false; bean:message key=help_with_this//a strangely, onclick=openWindow isn't working. Hth, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 03 July 2003 15:40 To: Struts Users Mailing List Subject: Réf. : Re: How to pass parameters to a javascript popup Adam, have you tried this with an action url on parameter. Something like : a href=help onclick=openWindow('myaction.do?task=doThis');return false;Help/a I'm asking this question because It's not working with me. I seems my url action is not recognized with the openWindow call. any suggestion ? Meissa Adam Hardy [EMAIL PROTECTED] 03/07/2003 16:24 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: How to pass parameters to a javascript popup Brian McSweeney wrote: html:link href= paramId=helpMessage staticvalue=helpMessage1 onClick=openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, height=500,left=10,top=100') /html:link Try a href=help onclick=openWindow('poppedup.jsp?helpMsg=helpMsg1');return false;Help/a The return false will stop the link doing any redirecting of the current window, and the popup will obtain the URL + querystring as defined in the javascript. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual [FRIDAY]
Us Canadians had out long weekend last weekend ||+|| :) - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:03 AM Subject: Virtual [FRIDAY] Most of the Americans on the List will have an extended weekend so #struts_users is having it's Friday gab session today. irc.darkmyst.org 6667 l8r, Mark - 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]
Re: Réf. : Re: How to pass parameters to a javascript popup
I didn't stop to think about it, but now that I do, where did you get openWindow() from? Not heard of it before. window.open() is the correct javascript. Brian McSweeney wrote: Thanks for your help Adam, Meissa, this is working for me. a href= onclick=hold=window.open('poppedup.jsp?helpMessage=helpMessage2', 'popupWindow', 'menubar=no, scrollbars=yes, width=500, height=300, screenx=1, screeny=1'); hold.focus(); return false; bean:message key=help_with_this//a strangely, onclick=openWindow isn't working. Hth, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 03 July 2003 15:40 To: Struts Users Mailing List Subject: Réf. : Re: How to pass parameters to a javascript popup Adam, have you tried this with an action url on parameter. Something like : a href=help onclick=openWindow('myaction.do?task=doThis');return false;Help/a I'm asking this question because It's not working with me. I seems my url action is not recognized with the openWindow call. any suggestion ? Meissa Adam Hardy [EMAIL PROTECTED] 03/07/2003 16:24 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: How to pass parameters to a javascript popup Brian McSweeney wrote: html:link href= paramId=helpMessage staticvalue=helpMessage1 onClick=openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, height=500,left=10,top=100') /html:link Try a href=help onclick=openWindow('poppedup.jsp?helpMsg=helpMsg1');return false;Help/a The return false will stop the link doing any redirecting of the current window, and the popup will obtain the URL + querystring as defined in the javascript. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - 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]
logic:iterate length question
Hello all, I have a question regarding the length attribute of logic:iterate. If I set it to 0 it seems to ignore the length attribute and iterate through the whole collection. Is that a bug or a feature? Thanks Kind regards Nadja Weber T-Systems Systems Integration Business Unit Entwicklungszentrum Darmstadt T-Systems Nova GmbH Office: Otto-Rohm-Str. 71c, 64293 Darmstadt Mail: Postfach 10 05 41, 64205 Darmstadt Phone: 06151 886-4162 Fax: 06151 886-161 mailto:[EMAIL PROTECTED] Internet: http://www.t-systems.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to Struts 1.1 problem with commons-collections
If the jar is on the SilverStream classpath then a work-around won't help. The idea that the war unloaded first and removed the jar from the appserver when it still needed it was rampant speculation. However I suggest this is still your problem. How can java give you an error message that it can't find the class when the class is really there? Kim Bilida wrote: Yes, it is in the classpath for SilverStream. Do you know of a way I could work around unloading the collections.jar AFTER the rest of the war (or test to ensure that is really the problem)? Is anyone else running Struts1.1 on SilverStream4.0? Kim -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:49 AM To: Struts Users Mailing List Subject: Re: Upgrading to Struts 1.1 problem with commons-collections did you actually look inside your commons-collections.jar to see that you have that class in there, and that the jar is definitely on the class path for silverstream, not just in the WEB-INF/lib where I believe the server processes can't see it? It may well at the point of unloading the war have unloaded the collections.jar. I'm not sure, just guessing here. Kim Bilida wrote: Here's the message SilverStream is giving me when the deployment fails: AgoDeploymentException: Upload of deployment data to the server failed. Archive: CM_kim(CM_kim.war) com.sssw.srvtools.deploy.AgoDeploymentException: Upload of deployment data to the server failed. com.sssw.rt.util.AgoHTTPStatusException: Failure code 500 on http://localhost:8001/CMREP//SilverStream/Objectstore/Jars/CM_kim. at com.sssw.rt.util.AgoUpload.complete(AgoUpload.java:216) at com.sssw.rt.util.MetaDataStreamer.toURL(MetaDataStreamer.java:147) at com.sssw.srvtools.deploy.MetaDataDeploymentTask.doTask(AgoSilverServerDeploymentTarget.java:505) at com.sssw.rt.util.ThreadTeamThread.doTaskInternal(ThreadTeamThread.java:99) at com.sssw.rt.util.ThreadTeamThread.run(ThreadTeamThread.java:63) -Original Message- From: Kim Bilida Sent: Wednesday, July 02, 2003 10:42 AM To: Struts Users Mailing List Subject: Upgrading to Struts 1.1 problem with commons-collections Hello all, I've upgraded to Struts 1.1 and everything compiles, deploys and runs fine. (I'm using SilverStream4.0) It's when I do a second deploy that I get the following error message. I then need to restart the server in order to redeploy. Yes, I have commons-collections.jar in the WEB-INF/lib directory. Any ideas? Thanks, Kim java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap$KeySet at org.apache.commons.collections.FastHashMap.keySet(Unknown Source) at org.apache.struts.action.ActionServlet.destroyDataSources(ActionServlet.ja va:769) at org.apache.struts.action.ActionServlet.destroy(ActionServlet.java:431) at com.sssw.srv.resources.AgWarResource.destroyServlets(AgWarResource.java:18 14) at com.sssw.srv.resources.AgWarResource.stop(AgWarResource.java:3180) at com.sssw.srv.resources.AgWarResource.terminate(AgWarResource.java:3245) at com.sssw.srv.resources.AgWarResource.deleteContent(AgWarResource.java:397) at com.sssw.srv.resources.AgFileResource.delete(AgFileResource.java:1069) at com.sssw.srv.resources.HTTPResource.perform(HTTPResource.java:1353) at com.sssw.srv.http.httpd.perform(httpd.java:5571) at com.sssw.srv.http.Client.processRequest(Client.java:898) at com.sssw.srv.http.Client.loop(Client.java:1264) at com.sssw.srv.http.Client.runConnection(Client.java:1480) at com.sssw.srv.http.Client.run(Client.java:1428) at java.lang.Thread.run(Thread.java:479) - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : Re: How to pass parameters to a javascript popup
Dude openWindow is your java script function name.. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 10:11 AM To: Struts Users Mailing List Subject: Re: Réf. : Re: How to pass parameters to a javascript popup I didn't stop to think about it, but now that I do, where did you get openWindow() from? Not heard of it before. window.open() is the correct javascript. Brian McSweeney wrote: Thanks for your help Adam, Meissa, this is working for me. a href= onclick=hold=window.open('poppedup.jsp?helpMessage=helpMessage2', 'popupWindow', 'menubar=no, scrollbars=yes, width=500, height=300, screenx=1, screeny=1'); hold.focus(); return false; bean:message key=help_with_this//a strangely, onclick=openWindow isn't working. Hth, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 03 July 2003 15:40 To: Struts Users Mailing List Subject: Réf. : Re: How to pass parameters to a javascript popup Adam, have you tried this with an action url on parameter. Something like : a href=help onclick=openWindow('myaction.do?task=doThis');return false;Help/a I'm asking this question because It's not working with me. I seems my url action is not recognized with the openWindow call. any suggestion ? Meissa Adam Hardy [EMAIL PROTECTED] 03/07/2003 16:24 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: How to pass parameters to a javascript popup Brian McSweeney wrote: html:link href= paramId=helpMessage staticvalue=helpMessage1 onClick=openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, height=500,left=10,top=100') /html:link Try a href=help onclick=openWindow('poppedup.jsp?helpMsg=helpMsg1');return false;Help/a The return false will stop the link doing any redirecting of the current window, and the popup will obtain the URL + querystring as defined in the javascript. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic:iterate length question
Hello Nadja, according to the docs: The length value or attribute name (=0 means no limit). Thus, it's a feature. *** WN Hello all, WN I have a question regarding the length attribute of logic:iterate. If I set it to 0 it seems to ignore the length attribute and iterate through the whole collection. Is that a bug or a WN feature? WN Thanks WN Kind regards WN Nadja Weber WN T-Systems WN Systems Integration WN Business Unit Entwicklungszentrum Darmstadt WN T-Systems Nova GmbH WN Office: Otto-Rohm-Str. 71c, 64293 Darmstadt WN Mail: Postfach 10 05 41, 64205 Darmstadt WN Phone: 06151 886-4162 WN Fax: 06151 886-161 WN mailto:[EMAIL PROTECTED] WN Internet: http://www.t-systems.com WN - WN To unsubscribe, e-mail: [EMAIL PROTECTED] WN For additional commands, e-mail: [EMAIL PROTECTED] Regards, Dirk +--- Quality leads ---+ | Dirk Markert [EMAIL PROTECTED] | | Dr. Markert Softwaretechnik AG | | Joseph-von-Fraunhofer-Str. 20 | | 44227 Dortmund | +-- to success! -+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual [FRIDAY]
I don't get another holiday till the 14th Aug. Rub it in why don't you!!! Of course that day off will actually be a month spent playing golf in Scotland, Spain, France and Germany! Hey, I feel much better already. How about you lot?? Cheers Simon happy happy happy Kelly - Original Message - From: Jamie M. Guillemette [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 5:14 PM Subject: Re: Virtual [FRIDAY] Us Canadians had out long weekend last weekend ||+|| :) - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:03 AM Subject: Virtual [FRIDAY] Most of the Americans on the List will have an extended weekend so #struts_users is having it's Friday gab session today. irc.darkmyst.org 6667 l8r, Mark - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : Re: How to pass parameters to a javascript popup
Ah! That would be it then :-) Got the openWindow from google+popup+javascript... some random site Sorry :-) Thanks for all the help Brian -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 03 July 2003 16:11 To: Struts Users Mailing List Subject: Re: Réf. : Re: How to pass parameters to a javascript popup I didn't stop to think about it, but now that I do, where did you get openWindow() from? Not heard of it before. window.open() is the correct javascript. Brian McSweeney wrote: Thanks for your help Adam, Meissa, this is working for me. a href= onclick=hold=window.open('poppedup.jsp?helpMessage=helpMessage2', 'popupWindow', 'menubar=no, scrollbars=yes, width=500, height=300, screenx=1, screeny=1'); hold.focus(); return false; bean:message key=help_with_this//a strangely, onclick=openWindow isn't working. Hth, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 03 July 2003 15:40 To: Struts Users Mailing List Subject: Réf. : Re: How to pass parameters to a javascript popup Adam, have you tried this with an action url on parameter. Something like : a href=help onclick=openWindow('myaction.do?task=doThis');return false;Help/a I'm asking this question because It's not working with me. I seems my url action is not recognized with the openWindow call. any suggestion ? Meissa Adam Hardy [EMAIL PROTECTED] 03/07/2003 16:24 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: How to pass parameters to a javascript popup Brian McSweeney wrote: html:link href= paramId=helpMessage staticvalue=helpMessage1 onClick=openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, height=500,left=10,top=100') /html:link Try a href=help onclick=openWindow('poppedup.jsp?helpMsg=helpMsg1');return false;Help/a The return false will stop the link doing any redirecting of the current window, and the popup will obtain the URL + querystring as defined in the javascript. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: logic:iterate length question
Thanks for the reply. Where did you find that sentence? I looked into the Taglib API reference but it doesn't state that information. Anyway, does anybody have any idea how I could make struts *not* iterating? I just realize that this sounds stupid so maybe explaining what i need will clear things up :) I'm working on a breadcrumb navigation. So i have this collection of crumbs, which are to displayed as links, which is no problem, but now the customer wants the last crumb (which is the current page or whatever) to be displayed as plain text. So what I wanted to was iterating through my crumbs with length set to collection length-1, and then iterate through the collection again with offset set to collection length-1. This works fine unless there is only one crumb in the collection, which makes the length-1 equal 0. I hope I could make myself understood. Any ideas on how to make things work? Kind regards Nadja Weber -Ursprungliche Nachricht- Von: Dirk Markert [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 3. Juli 2003 17:21 An: Struts Users Mailing List Betreff: Re: logic:iterate length question Hello Nadja, according to the docs: The length value or attribute name (=0 means no limit). Thus, it's a feature. *** WN Hello all, WN I have a question regarding the length attribute of logic:iterate. If I set it to 0 it seems to ignore the length attribute and iterate through the whole collection. Is that a bug or a WN feature? WN Thanks WN Kind regards WN Nadja Weber WN T-Systems WN Systems Integration WN Business Unit Entwicklungszentrum Darmstadt WN T-Systems Nova GmbH WN Office: Otto-Rohm-Str. 71c, 64293 Darmstadt WN Mail: Postfach 10 05 41, 64205 Darmstadt WN Phone: 06151 886-4162 WN Fax: 06151 886-161 WN mailto:[EMAIL PROTECTED] WN Internet: http://www.t-systems.com WN - WN To unsubscribe, e-mail: [EMAIL PROTECTED] WN For additional commands, e-mail: [EMAIL PROTECTED] Regards, Dirk +--- Quality leads ---+ | Dirk Markert [EMAIL PROTECTED] | | Dr. Markert Softwaretechnik AG | | Joseph-von-Fraunhofer-Str. 20 | | 44227 Dortmund | +-- to success! -+ - 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]
Re: Virtual [FRIDAY]
Oh yeah, thanks a lot Simon ... one day for us, vs a whole month for you!!! Glad you cheered *yourself* up! :-) Susan Bradeen On 07/03/2003 11:21:13 AM Simon Kelly wrote: I don't get another holiday till the 14th Aug. Rub it in why don't you!!! Of course that day off will actually be a month spent playing golf in Scotland, Spain, France and Germany! Hey, I feel much better already. How about you lot?? Cheers Simon happy happy happy Kelly - Original Message - From: Jamie M. Guillemette [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 5:14 PM Subject: Re: Virtual [FRIDAY] Us Canadians had out long weekend last weekend ||+|| :) - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:03 AM Subject: Virtual [FRIDAY] Most of the Americans on the List will have an extended weekend so #struts_users is having it's Friday gab session today. irc.darkmyst.org 6667 l8r, Mark - 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] - 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]
Action class is not called
Everything was OK , suddenly, neither the forBean class is called nor the Action Class. Does this happened with anyone, please let me know, I tried to change the names of the pages, it goes to the right page, only drops the calls to the form bean and action class. I have the form bean form-bean name=personListViewForm type=presentation.person.JPersonListView/ I have the global forward forward name=personListView path=/personListView.do/ action path=/personListView name=personListViewForm type=presentation.person.PersonListView input=common.welcome validate=true forward name=success path=common.personListView/ forward name=failure path=common.welcome/ /action Thanks Panchasheel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: logic:iterate length question
Hello Nadja, *** WN Thanks for the reply. Where did you find that sentence? IterateTag.java line 187. WN I looked into the Taglib API reference but it doesn't state that information. WN Anyway, does anybody have any idea how I could make struts *not* iterating? Can you use another logic tag? WN I just realize that this sounds stupid so maybe explaining what i need will clear things up :) WN I'm working on a breadcrumb navigation. So i have this collection of crumbs, which are to displayed as links, which is no problem, but now the customer wants the last crumb (which is the current Have you looked at struts-layout. It contains breadcrumb navigation. WN page or whatever) to be displayed as plain text. So what I wanted to was iterating through my crumbs with length set to collection length-1, and then iterate through the collection again with WN offset set to collection length-1. This works fine unless there is only one crumb in the collection, which makes the length-1 equal 0. WN I hope I could make myself understood. WN Any ideas on how to make things work? WN Kind regards WN Nadja Weber WN -Ursprungliche Nachricht- WN Von: Dirk Markert [mailto:[EMAIL PROTECTED] WN Gesendet: Donnerstag, 3. Juli 2003 17:21 WN An: Struts Users Mailing List WN Betreff: Re: logic:iterate length question WN Hello Nadja, WN according to the docs: WN The length value or attribute name (=0 means no limit). WN Thus, it's a feature. WN *** WN Hello all, WN I have a question regarding the length attribute of logic:iterate. If I set it to 0 it seems to ignore the length attribute and iterate through the whole collection. Is that a bug or a WN feature? WN Thanks WN Kind regards WN Nadja Weber WN T-Systems WN Systems Integration WN Business Unit Entwicklungszentrum Darmstadt WN T-Systems Nova GmbH WN Office: Otto-Rohm-Str. 71c, 64293 Darmstadt WN Mail: Postfach 10 05 41, 64205 Darmstadt WN Phone: 06151 886-4162 WN Fax: 06151 886-161 WN mailto:[EMAIL PROTECTED] WN Internet: http://www.t-systems.com WN - WN To unsubscribe, e-mail: [EMAIL PROTECTED] WN For additional commands, e-mail: [EMAIL PROTECTED] WN Regards, WN Dirk WN +--- Quality leads ---+ WN | Dirk Markert [EMAIL PROTECTED] | WN | Dr. Markert Softwaretechnik AG | WN | Joseph-von-Fraunhofer-Str. 20 | WN | 44227 Dortmund | WN +-- to success! -+ WN - WN To unsubscribe, e-mail: [EMAIL PROTECTED] WN For additional commands, e-mail: [EMAIL PROTECTED] WN - WN To unsubscribe, e-mail: [EMAIL PROTECTED] WN For additional commands, e-mail: [EMAIL PROTECTED] Regards, Dirk +--- Quality leads ---+ | Dirk Markert [EMAIL PROTECTED] | | Dr. Markert Softwaretechnik AG | | Joseph-von-Fraunhofer-Str. 20 | | 44227 Dortmund | +-- to success! -+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts: error/message handling: saveErrors
Hello, all, I have the following problem: In ActionA{ ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( Afailed ) ); saveErrors( request, errors ); } In ActionB{ ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( Bfailed ) ); saveErrors( request, errors ); } When ActionA returns it will forward the processing to ActionB and then the Bfailed error will override the Afailed error. How can I show both Afailed and Bfailed error messages? Thanks a lot! Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts: error/message handling: saveErrors
we probably need to know more about your code to really answer your question. But here are few pointers. when using actionErrors. note that many functions return boolean by returning actionErrors.isEmpty(); in these cases if an error was found.. it will not bother to process the other errors.. ( cause lets face it .. the first error may be the only reason the next error was caused ) if you are using the validate() method. you can achieve this by simply adding new errors prior to returning. JMG - Original Message - From: Denis Wang [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:48 AM Subject: struts: error/message handling: saveErrors Hello, all, I have the following problem: In ActionA{ ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( Afailed ) ); saveErrors( request, errors ); } In ActionB{ ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( Bfailed ) ); saveErrors( request, errors ); } When ActionA returns it will forward the processing to ActionB and then the Bfailed error will override the Afailed error. How can I show both Afailed and Bfailed error messages? Thanks a lot! Denis - 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]
RE: struts: error/message handling: saveErrors
Instead of doing a new ActionErrors I have a function in my base Action (U can just put it in the action that your are working on Baction). public ActionErrors getErrors(HttpServletRequest request){ if (request.getAttribute(ERROR_KEY) != null) { return (ActionErrors) request.getAttribute(ERROR_KEY); } return new ActionErrors(); } Use this inside the execute. ActionErrors errors = getErrors(request); Varun -Original Message- From: Denis Wang [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 10:48 AM To: Struts Users Mailing List Subject: struts: error/message handling: saveErrors Hello, all, I have the following problem: In ActionA{ ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( Afailed ) ); saveErrors( request, errors ); } In ActionB{ ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( Bfailed ) ); saveErrors( request, errors ); } When ActionA returns it will forward the processing to ActionB and then the Bfailed error will override the Afailed error. How can I show both Afailed and Bfailed error messages? Thanks a lot! Denis - 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]
RE: struts: error/message handling: saveErrors
Thanks for your attention. Note that ActionA and ActionB are totally different classes. In this case, the 'errors' attached to request in ActionA will get lost in ActionB if the following statement is executed: // in ActionB ActionErrors errors = new ActionErrors(); ... saveErrors( request, errors ); In order that the ActionB remembers the Afailed error, i need functionalities like the following: In ActionB { ActionErrors errors = getErrors( request ); // This is the faked code which should have been enabled by struts errors.add(...) saveErrors( request, errors ); Unfortunately struts does not provide such functionalities, I doubt. Denis -Original Message- From: Jamie M. Guillemette [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:59 AM To: Struts Users Mailing List Subject: Re: struts: error/message handling: saveErrors we probably need to know more about your code to really answer your question. But here are few pointers. when using actionErrors. note that many functions return boolean by returning actionErrors.isEmpty(); in these cases if an error was found.. it will not bother to process the other errors.. ( cause lets face it .. the first error may be the only reason the next error was caused ) if you are using the validate() method. you can achieve this by simply adding new errors prior to returning. JMG - Original Message - From: Denis Wang [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:48 AM Subject: struts: error/message handling: saveErrors Hello, all, I have the following problem: In ActionA{ ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( Afailed ) ); saveErrors( request, errors ); } In ActionB{ ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( Bfailed ) ); saveErrors( request, errors ); } When ActionA returns it will forward the processing to ActionB and then the Bfailed error will override the Afailed error. How can I show both Afailed and Bfailed error messages? Thanks a lot! Denis - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp Security?
David how did you intercept incoming http requests for items so you could check to see if that was permisiable for the logged on user? I have thought about subclassing the tomcat connectors and putting in checks there before it serves the request, but that could become a lot of overhead rather quickly if you have very many things loading on a webpage. -David - Original Message - From: David Bolsover [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 3:56 AM Subject: RE: Webapp Security? The who sees what problem is one I faced some time ago - and whilst I would have liked to use CMA / Filters, it simply was not a good fit for the application - each user had to have a range of different permissions based on one/more customer codes, one/more product codes and user role admin/company/customer/supplier - all of which had to be configurable for the individual user. I ended up writing my own application security manager - when the user logs in, his permissions are loaded from DB and then checked before any action is performed - with appropriate errors if a violation is detected. db -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 19:13 To: 'Struts Users Mailing List' Subject: RE: Webapp Security? If you want to give user's dynamic permissions at runtime, you could add a filter on top of container managed authentication (CMA). CMA is nice b/c you can use any authenticate with LDAP, a database (my example uses MySQL), or a flat file - or even an NT Domain. You'll probably have to setup some sort of system that defines who can see what - so you'll eventually (probably) end up implementing some sort of roles/groups - unless you're planning on checking for individual usernames or some such attribute before allowing access. Tomcat's security constraint stuff is the same thing as CMA. HTH, Matt -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:54 AM To: Struts Users Mailing List Subject: Re: Webapp Security? Is it based on using security restraints and having all your users set into groups in the tomcat-users.xml file? If so our problem is we don't want to have users based into groups but want to give permissions to users individually to many different things.. and we want to store our users in a database rather than tomcat's xml file.. if I am mistaken on how this works please correct me =) (I havn't actually looked at it, I've just looked at tomcat's security restraint stuff before) -David - Original Message - From: Raible, Matt [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:47 AM Subject: RE: Webapp Security? How about using container managed security with tomcat's realms? It works great for me. Here's an example app if you're interested: http://tinyurl.com/fuvq HTH, Matt -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:27 AM To: Struts Mailing List Subject: Webapp Security? Just curious how others have gone about protecting the resouces within their webapp.. in our personal setup we would like to control access to every resource if possible, we have our own custom login page that sets session variables, and pulls the data from the database. We can authenticate people with code in each of the actions, but nothing is preventing someone from directly going to a jpg or a jsp file or anything of the like. What I thought about doing was subclassing the tomcat connectors, the default, the jsp one, and the struts one and then authenticating each request.. but that adds a lot of overhead. Anybody have any other good ideas? We'd like to stick with just tomcat 4.1.24... no apache (no .htaccess).. what is everyone else implementing? -David - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
RE: Virtual [FRIDAY]
I think that sucks. -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:21 AM To: Struts Users Mailing List Subject: Re: Virtual [FRIDAY] I don't get another holiday till the 14th Aug. Rub it in why don't you!!! Of course that day off will actually be a month spent playing golf in Scotland, Spain, France and Germany! Hey, I feel much better already. How about you lot?? Cheers Simon happy happy happy Kelly - Original Message - From: Jamie M. Guillemette [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 5:14 PM Subject: Re: Virtual [FRIDAY] Us Canadians had out long weekend last weekend ||+|| :) - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:03 AM Subject: Virtual [FRIDAY] Most of the Americans on the List will have an extended weekend so #struts_users is having it's Friday gab session today. irc.darkmyst.org 6667 l8r, Mark - 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] - 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]
Re: Virtual [FRIDAY]
I know!!! Happiest I've been in months ;-) Now lets see, where did I leave those plus fours! - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 5:36 PM Subject: Re: Virtual [FRIDAY] Oh yeah, thanks a lot Simon ... one day for us, vs a whole month for you!!! Glad you cheered *yourself* up! :-) Susan Bradeen On 07/03/2003 11:21:13 AM Simon Kelly wrote: I don't get another holiday till the 14th Aug. Rub it in why don't you!!! Of course that day off will actually be a month spent playing golf in Scotland, Spain, France and Germany! Hey, I feel much better already. How about you lot?? Cheers Simon happy happy happy Kelly - Original Message - From: Jamie M. Guillemette [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 5:14 PM Subject: Re: Virtual [FRIDAY] Us Canadians had out long weekend last weekend ||+|| :) - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:03 AM Subject: Virtual [FRIDAY] Most of the Americans on the List will have an extended weekend so #struts_users is having it's Friday gab session today. irc.darkmyst.org 6667 l8r, Mark - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How the Values will Update in Session List if I Used Nested Iterator
Hi Sandeep, Do you mean that, putting the ArrayList of ValueObjects( which are displayed as normal text - not editable like form fields) setting to a FormBean is preferrable over putting it directly in HTTPSession. Thanks Regards, Ashok.D - Original Message - From: Sandeep Takhar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:55 AM Subject: Re: How the Values will Update in Session List if I Used Nested Iterator I would say the form. If you don't use the form, you will end up using the name attribute on all html elements. I suppose if you use nested tag libraries then this wouldn't be true though. Whenever I do anything that involves the html tags for editing, I use form properties since it seems logical to have it in the form. Lists of things or possible values does not have to be and I like to place these in application scope. You could have them update to any bean. A form is just a bean in some scope. If you are using request scope, then make sure that the getSomething(int index) which is the api required for iterative lists, will initialize the list as well since the request scope bean won't be there any more. This has been my experience with exception of the latter paragraph. I work on a project with session scope, so didn't have to deal with this. Reading this list has indicated that it is necessary. sandeep --- AshokD [EMAIL PROTECTED] wrote: Hi, 1) I am displaying a list of ValueObjects(which are editable) in a page by setting a ArrayList to form.. When I submit the form the values are updating into form arraylist variable. What is the logic behind in updation of list in a from when I submit the form. 2) I am displaying a list of ValueObject(View only) in a page. To display this values I am using Session Variable. I think we can set this list to the form also? Which one is best (putting into a session(or request) or setting to a form). Thanks Regards, Ashok.D __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - 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]
Centralized Way of Acessing the Form Bean
Hi, I have a Session, Request scope beans in my Application. To acess Session Scope component I am using below logic: LoginForm lLoginForm = (LoginForm )session.getAttribute(formName); To acess Request Scope component I am using below logic: NewLoginForm lNewLoginForm = (NewLoginForm )request.getAttribute(formName); If i change the scope in configuration(strut-config.xml) I need to change my Action classes also (where ever I am acessing the form). Their is any centralized Way of acessing the Form Bean is their ? like: Acessing all beans from request instead of session and request. Thanks in Advance, Ashok.D
[OT] Create folder and copy files on client machine
Hi I am working on a intranet application where in i need to create folder on client machine, cache some files on it, and when the file on the server is updated copy the new file to the client machine, Any suggestions or website or code on how to go about it I using struts1.1 to develop my website, Ashish __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Centralized Way of Acessing the Form Bean
maybe I'm confused about what you're doing, but doesn't your form bean get passed in to the execute method for you? -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: AshokD [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:24 AM To: Struts Users Mailing List Subject: Centralized Way of Acessing the Form Bean Hi, I have a Session, Request scope beans in my Application. To acess Session Scope component I am using below logic: LoginForm lLoginForm = (LoginForm )session.getAttribute(formName); To acess Request Scope component I am using below logic: NewLoginForm lNewLoginForm = (NewLoginForm )request.getAttribute(formName); If i change the scope in configuration(strut-config.xml) I need to change my Action classes also (where ever I am acessing the form). Their is any centralized Way of acessing the Form Bean is their ? like: Acessing all beans from request instead of session and request. Thanks in Advance, Ashok.D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Centralized Way of Acessing the Form Bean
Hi, I am acessing the other form in a action which is not mapped to these forms. Action1 - form1 Actrion2 - form2 I am accessing the form2 in Action1. Thanks Regards, Ashok.D - Original Message - From: Jarnot Voytek Contr AU HQ/SC To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 9:51 PM Subject: RE: Centralized Way of Acessing the Form Bean maybe I'm confused about what you're doing, but doesn't your form bean get passed in to the execute method for you? -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: AshokD [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:24 AM To: Struts Users Mailing List Subject: Centralized Way of Acessing the Form Bean Hi, I have a Session, Request scope beans in my Application. To acess Session Scope component I am using below logic: LoginForm lLoginForm = (LoginForm )session.getAttribute(formName); To acess Request Scope component I am using below logic: NewLoginForm lNewLoginForm = (NewLoginForm )request.getAttribute(formName); If i change the scope in configuration(strut-config.xml) I need to change my Action classes also (where ever I am acessing the form). Their is any centralized Way of acessing the Form Bean is their ? like: Acessing all beans from request instead of session and request. Thanks in Advance, Ashok.D - 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]
Re: Centralized Way of Acessing the Form Bean
use the struts bean tag to get your form.. it will search all layers of the session. JMG - Original Message - From: AshokD [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:23 PM Subject: Centralized Way of Acessing the Form Bean Hi, I have a Session, Request scope beans in my Application. To acess Session Scope component I am using below logic: LoginForm lLoginForm = (LoginForm )session.getAttribute(formName); To acess Request Scope component I am using below logic: NewLoginForm lNewLoginForm = (NewLoginForm )request.getAttribute(formName); If i change the scope in configuration(strut-config.xml) I need to change my Action classes also (where ever I am acessing the form). Their is any centralized Way of acessing the Form Bean is their ? like: Acessing all beans from request instead of session and request. Thanks in Advance, Ashok.D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Create folder and copy files on client machine
Is your product signed? If so you could use an applet.. JMG - Original Message - From: Ashish Kulkarni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:20 PM Subject: [OT] Create folder and copy files on client machine Hi I am working on a intranet application where in i need to create folder on client machine, cache some files on it, and when the file on the server is updated copy the new file to the client machine, Any suggestions or website or code on how to go about it I using struts1.1 to develop my website, Ashish __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - 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]
Re: How the Values will Update in Session List if I Used Nested Iterator
I don't know if it is preferable, but it will work for sure. If they are not editable, then why are they in a select. sandeep --- AshokD [EMAIL PROTECTED] wrote: Hi Sandeep, Do you mean that, putting the ArrayList of ValueObjects( which are displayed as normal text - not editable like form fields) setting to a FormBean is preferrable over putting it directly in HTTPSession. Thanks Regards, Ashok.D - Original Message - From: Sandeep Takhar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:55 AM Subject: Re: How the Values will Update in Session List if I Used Nested Iterator I would say the form. If you don't use the form, you will end up using the name attribute on all html elements. I suppose if you use nested tag libraries then this wouldn't be true though. Whenever I do anything that involves the html tags for editing, I use form properties since it seems logical to have it in the form. Lists of things or possible values does not have to be and I like to place these in application scope. You could have them update to any bean. A form is just a bean in some scope. If you are using request scope, then make sure that the getSomething(int index) which is the api required for iterative lists, will initialize the list as well since the request scope bean won't be there any more. This has been my experience with exception of the latter paragraph. I work on a project with session scope, so didn't have to deal with this. Reading this list has indicated that it is necessary. sandeep --- AshokD [EMAIL PROTECTED] wrote: Hi, 1) I am displaying a list of ValueObjects(which are editable) in a page by setting a ArrayList to form.. When I submit the form the values are updating into form arraylist variable. What is the logic behind in updation of list in a from when I submit the form. 2) I am displaying a list of ValueObject(View only) in a page. To display this values I am using Session Variable. I think we can set this list to the form also? Which one is best (putting into a session(or request) or setting to a form). Thanks Regards, Ashok.D __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - 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] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tile attribute as message key?
tiles:importAttribute with bean:message name= sandeep --- Henrik Lindqvist [EMAIL PROTECTED] wrote: Hi All, Is there any easy way to use a tile definition attribute as an bean:message key? Or do you have to useAttribute to declare a Java variable, and then bean:message key=%=key%/ ...very awkward. / h e n r i k - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Centralized Way of Acessing the Form Bean
Hi, I need to acess the other forms in Action class not in jsp page. I seen just now ActionFormBeans. I think it may solve my problem. I am testing on that. Thanks Regards, Ashok.D - Original Message - From: Jamie M. Guillemette [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 10:05 PM Subject: Re: Centralized Way of Acessing the Form Bean use the struts bean tag to get your form.. it will search all layers of the session. JMG - Original Message - From: AshokD [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:23 PM Subject: Centralized Way of Acessing the Form Bean Hi, I have a Session, Request scope beans in my Application. To acess Session Scope component I am using below logic: LoginForm lLoginForm = (LoginForm )session.getAttribute(formName); To acess Request Scope component I am using below logic: NewLoginForm lNewLoginForm = (NewLoginForm )request.getAttribute(formName); If i change the scope in configuration(strut-config.xml) I need to change my Action classes also (where ever I am acessing the form). Their is any centralized Way of acessing the Form Bean is their ? like: Acessing all beans from request instead of session and request. Thanks in Advance, Ashok.D - 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]
on using beans in different scopes
I have a number of beans set in the application scope that I want to use in various select boxes. The docs say to use html:options collection=bean where bean is the bean in some scope. However when I try this I get an exception no bean specified eventhough I can show that the required bean is available in the application scope. what am i missing here? there is no scope field in the html:options tag to let it know where to look for the bean... thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best Way of Initilizing the Forms
Hi, I have 10 forms in my Application. In LoginAction itselft I need to set some data in another 5 forms. In another Action I need to set some data in another forms(which are not initilized yet). I think that form instance will set after acessing the page or acessing the Action. In my case both won't happen, If I get form object from session or request it is giving null. I think some centralized way need to intillize the form in my application (To avoid every time checking the form if it is null creating it and puttting in session or request). Any suggestions or lighting on this area. Thanks Regards, Ashok.D
Re: Webapp Security?
David Bolsover wrote: I ended up writing my own application security manager - when the user logs in, his permissions are loaded from DB and then checked before any action is performed - with appropriate errors if a violation is detected. Where are you doing the checking, in the Action? Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tile attribute as message key?
Hi, I use a similar method: My solution is to put in the session a string who is the message key and then in my jsp page i just display this. My code look like this: In the action -- String message = new String(input.sucess); request.setAttribute(message, message); -- then you forward to the appropriate jsp. In the jsp, the code look like: bean:define id=message name=message scope=request toScope=page type=java.lang.String / h3bean:message key='%= message %' //h3 --- Now, tile take bean in the session scope too, i think you can use the same method. If in you tiles-defs.xml you have a think like this: --- definition name=menuacteur path=/include/layout.jsp put name=title value=Menu Acteur / put name=header value=.mainMenu / put name=menu value=.menuActeur / put name=usermenu value=/include/user.jsp / put name=footer value=/include/footer.jsp / put name=body value=/pages/welcome.jsp / /definition --- I think you can use the same solution I use. Except the bean:define/ is different: bean:define id=message name=title scope=request toScope=page type=java.lang.String / h3bean:message key='%= message %' //h3 --- Let my now i this work. Regards Marc BEGUIGNEAU --- Henrik Lindqvist [EMAIL PROTECTED] a écrit : Hi All, Is there any easy way to use a tile definition attribute as an bean:message key? Or do you have to useAttribute to declare a Java variable, and then bean:message key=%=key%/ ...very awkward. / h e n r i k - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual [FRIDAY]
Since you're looking forward to your month of golf, I'm assuming you play much better than me. That would just mean a month of fustration and broken clubs followed by another month of replacing those clubs for me. -Tim *FORE* Chen -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:07 PM To: Struts Users Mailing List Subject: Re: Virtual [FRIDAY] I know!!! Happiest I've been in months ;-) Now lets see, where did I leave those plus fours! - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 5:36 PM Subject: Re: Virtual [FRIDAY] Oh yeah, thanks a lot Simon ... one day for us, vs a whole month for you!!! Glad you cheered *yourself* up! :-) Susan Bradeen On 07/03/2003 11:21:13 AM Simon Kelly wrote: I don't get another holiday till the 14th Aug. Rub it in why don't you!!! Of course that day off will actually be a month spent playing golf in Scotland, Spain, France and Germany! Hey, I feel much better already. How about you lot?? Cheers Simon happy happy happy Kelly - Original Message - From: Jamie M. Guillemette [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 5:14 PM Subject: Re: Virtual [FRIDAY] Us Canadians had out long weekend last weekend ||+|| :) - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 11:03 AM Subject: Virtual [FRIDAY] Most of the Americans on the List will have an extended weekend so #struts_users is having it's Friday gab session today. irc.darkmyst.org 6667 l8r, Mark - 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] - 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] - 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]