Newbie: Forwarding question
I've just started working with Struts and am having some difficulty understanding the practical difference between an ActionForward and a ForwardAction. If I am simply creating links between JSP's is there any difference between using a global ActionForward versus using an action instance of type ForwardAction? TIA
Re: nested tags
me too have the same opinion!!! nested-tags is working pretty cool!!! please post the exact issue in your application. thanks, Pramod Mike Duffy mduffy_lists@ To: Struts Users Mailing List [EMAIL PROTECTED] yahoo.com cc: Subject: Re: nested tags 07/04/2003 07:01 AM Please respond to Struts Users Mailing List I did not try to run the example specifically; however, I've built some applications based on the Monkey Tree source and I will say that nested tags are very elegant, very cool. It does work. If you have a speciffic question, the guy who wrote the nested tags code, Arron Bates, is very good about responding to this list. Good luck. Mike --- Sloan Seaman [EMAIL PROTECTED] wrote: Has anyone every gotten the nested tags to work like in the Monkey Tree examples? I can't even get the examples to work. It seems like the iterator tag has a bug in it... It doesn't seem to iterate to the next object after it comes out of the recursion... -- Sloan This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com __ 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] This electronic mail message is intended solely for the named recipients and may contain confidential and proprietary business information of eFunds Corporation and all its subsidiaries. If you are not a named recipient, please notify the sender immediately. You may not disclose the contents to any other person; use this electronic mail message or its contents for any other purpose; or further store or copy its contents in any medium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NewBie:Populating objects in Jsp
Hello, I am new to struts and Jsp and facing a very basic problem :- The requirement is that on submit of APFM01.jsp page I do some business processing and populate a ArrayList in the action Class APFM01Action. Now I want to display the contents of the ArrayList as table in the second page APFM02.jsp. I am trying to do so by using the iterate tag in the APFM02.jsp but getting the following errors :- Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] E:\jakarta-tomcat-4.1.24\work\Standalone\localhost\myProject\APFM02_jsp.java:424: cannot resolve symbol [javac] symbol : class APFM01Action [javac] location: class org.apache.jsp.APFM02_jsp [javac] APFM01Action pupilList = null; [javac] ^ [javac] E:\jakarta-tomcat-4.1.24\work\Standalone\localhost\myProject\APFM02_jsp.java:431: cannot resolve symbol [javac] symbol : class APFM01Action [javac] location: class org.apache.jsp.APFM02_jsp [javac] pupilList = (APFM01Action) pageContext.findAttribute(pupilList); [javac] ^ [javac] E:\jakarta-tomcat-4.1.24\work\Standalone\localhost\myProject\APFM02_jsp.java:457: cannot resolve symbol [javac] symbol : class APFM01Action [javac] location: class org.apache.jsp.APFM02_jsp [javac] pupilList = (APFM01Action) pageContext.findAttribute(pupilList); [javac]^ [javac] 3 errors In the APFM01Action class Iam doing the following :- SAXParser myParser = new MySAXParser(); myParser.ParseXML(browse); ArrayList pupilList= myParser.listPupil(); request.setAttribute(PUPIL_LIST,pupilList); return(mapping.findForward(success)); The APFM02.jsp code is as follows :- logic:iterate id=pupilList name= PUPIL_LIST type=APFM01Action tr align=left td bean:write name=pupilList property=upn / /td td and the Struts-config file is as follows :- form-bean name=APFM01Form type=APFM01Form/ form-bean name=APFM02Form type=APFM02Form/ /form-beans !-- == Action Mapping Definitions == -- action-mappings actionpath=/APFM01 type=APFM01Action name=APFM01Form input=/APFM01.jsp scope=session forwardname=success path=/APFM02.jsp/ forwardname=failure path=/APFM01.jsp/ /action actionpath=/APFM02 type=APFM02Action name=APFM02Form scope=request /action Thanks Sushil - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: Is Action Instantiated Once?
I think I know what is happening. I have some getter methods that hold the memeber variables in the ActionBase class. Thank you guys! Billy Ng - Original Message - From: Kwok Peng Tuck [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 8:15 PM Subject: Re: Is Action Instantiated Once? How did you code the Action ? Billy Ng wrote: I don't think I used instance variables for referencing the address book entries, but the last guy always wins. The screen of the guy who first clicks on the next button will not display anything until the screen of the guy who clicks later finishes. Billy Ng - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Billy Ng [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 6:42 PM Subject: Re: Is Action Instantiated Once? On Thu, 3 Jul 2003, Billy Ng wrote: Date: Thu, 3 Jul 2003 18:21:53 -0700 From: Billy Ng [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], Billy Ng [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Is Action Instantiated Once? Hi folks, I have a address book page that has the previous and next buttons. I notice if 2 different users try to access the address books, last one who clicks on the button always get what it should display. This sounds very like they are both are using the same Action. The address book action extends a ActionBase that extends Strut's Action. Would anybody tell me if Strut will instantiates a new acton everytime it is called? No ... one instance only (just like servlets). Did I miss something on the configuration to make it thread dependent? You're probably using instance variables in the Action class to store things relevant only to a particular request. If so, use local variables or request/session scope attributes instead. Thanks! Billy Ng Craig - 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: NewBie:Populating objects in Jsp
1. logic:iterate type attribute is uses to set the java type of a JSP variable set by the tag for current item. By default type is java.lang.Object, and if you don't use scriptlets (% java %) or Runtime Expression (%= java %) you don't need to use it. In the case you want to use type attribute, JSP has to import type declaration using a JSP directive % @page import= %. In your case, I don't think PUPIL_LIST items are APFM01Action instances. 2. id attribute is used to set the name of a JSP variable and a page scoped bean for the current item. In your case, it should be a pupil, not a pupilList. Nico. The APFM02.jsp code is as follows :- logic:iterate id=pupilList name= PUPIL_LIST type=APFM01Action tr align=left td bean:write name=pupilList property=upn / /td td and the Struts-config file is as follows :- form-bean name=APFM01Form type=APFM01Form/ form-bean name=APFM02Form type=APFM02Form/ /form-beans !-- == Action Mapping Definitions == -- action-mappings actionpath=/APFM01 type=APFM01Action name=APFM01Form input=/APFM01.jsp scope=session forwardname=success path=/APFM02.jsp/ forwardname=failure path=/APFM01.jsp/ /action actionpath=/APFM02 type=APFM02Action name=APFM02Form scope=request /action Thanks Sushil - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] 4th of July
To all Struts developers in America Have a GREAT Independence Day. Regards Jason Meredith United Kingdom *** The e-mail and any attachments are confidential. They may contain privileged information and are intended for the named addressee(s) only. If you are not the intended recipient, please notify us immediately and do not disclose, distribute, or retain this e-mail or any part of it. Unless expressly stated, opinions in this e-mail are those of the individual sender and not of the FIMAT Group. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. The FIMAT Group reserve the right to monitor e-mail communications through its networks. Where this communication constitutes a financial promotion it is issued and approved by Fimat International Banque S.A. (UK Branch) and is only intended for persons of a kind described in article 19(5) of the Financial Services and Markets Act 2000 (Financial Promotion) Order 2001. This information is not intended to be distributed to UK Private Customers (as defined by the Financial Services Authority). Fimat International Banque S.A. (UK Branch) whose registered branch in England is at SG House, 41 Tower Hill, London EC3N 4SG is authorised by the Commission Bancaire in France and by the UK Financial Services Authority; regulated by the Financial Services Authority for the conduct of UK Business and is entered in the Financial Services Authority's register (Register Number 183415), access to which can be gained via the following link: www.fsa.gov.uk/register/ Member and a SETS Participant of the London Stock Exchange (LSE). Where this communication is confirming an on exchange transaction (as defined by the LSE),the transaction is subject to the rules of the LSE. Any information, opinions, estimates and forecasts contained in this document have been arrived at or obtained from public sources believed to be reliable and in good faith which has not been independently verified and no warranty, express or implied, is made as to their accuracy, completeness or correctness. This document is not an offer to sell or a solicitation to acquire or dispose of an interest in financial instruments. If you have received this transmission in error, please telephone +44 020 7676 8999 immediately so that we can arrange for its return. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NewBie:Populating objects in Jsp
See below... -Original Message- From: sushil jain [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 11:26 PM To: Struts Users Mailing List Subject: NewBie:Populating objects in Jsp Hello, I am new to struts and Jsp and facing a very basic problem :- The requirement is that on submit of APFM01.jsp page I do some business processing and populate a ArrayList in the action Class APFM01Action. Now I want to display the contents of the ArrayList as table in the second page APFM02.jsp. I am trying to do so by using the iterate tag in the APFM02.jsp but getting the following errors :- Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] E:\jakarta-tomcat-4.1.24\work\Standalone\localhost\myProject\APFM0 2_jsp.java:424: cannot resolve symbol [javac] symbol : class APFM01Action [javac] location: class org.apache.jsp.APFM02_jsp [javac] APFM01Action pupilList = null; [javac] ^ [javac] E:\jakarta-tomcat-4.1.24\work\Standalone\localhost\myProject\APFM0 2_jsp.java:431: cannot resolve symbol [javac] symbol : class APFM01Action [javac] location: class org.apache.jsp.APFM02_jsp [javac] pupilList = (APFM01Action) pageContext.findAttribute(pupilList); [javac] ^ [javac] E:\jakarta-tomcat-4.1.24\work\Standalone\localhost\myProject\APFM0 2_jsp.java:457: cannot resolve symbol [javac] symbol : class APFM01Action [javac] location: class org.apache.jsp.APFM02_jsp [javac] pupilList = (APFM01Action) pageContext.findAttribute(pupilList); [javac]^ [javac] 3 errors In the APFM01Action class Iam doing the following :- SAXParser myParser = new MySAXParser(); myParser.ParseXML(browse); ArrayList pupilList= myParser.listPupil(); request.setAttribute(PUPIL_LIST,pupilList); return(mapping.findForward(success)); The APFM02.jsp code is as follows :- logic:iterate id=pupilList name= PUPIL_LIST type=APFM01Action Type should be the type of object that is your List (e.g. Pupil) , not the Action type. You probably don't even need to specify a type here because bean:write will use introspection to access the properties. Incidentally, 'pupil' might be a better value for the id because you are only accessing a single pupil in each iteration, not a list. tr align=left td bean:write name=pupilList property=upn / /td td and the Struts-config file is as follows :- form-bean name=APFM01Form type=APFM01Form/ form-bean name=APFM02Form type=APFM02Form/ /form-beans !-- == Action Mapping Definitions == -- action-mappings actionpath=/APFM01 type=APFM01Action name=APFM01Form input=/APFM01.jsp scope=session forwardname=success path=/APFM02.jsp/ forwardname=failure path=/APFM01.jsp/ /action actionpath=/APFM02 type=APFM02Action name=APFM02Form scope=request /action Thanks Sushil - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] 4th of July
+1 -Original Message- From: Jason Meredith [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 14:43 To: Struts Users Mailing List Subject: [OT] 4th of July To all Struts developers in America Have a GREAT Independence Day. Regards Jason Meredith United Kingdom *** The e-mail and any attachments are confidential. They may contain privileged information and are intended for the named addressee(s) only. If you are not the intended recipient, please notify us immediately and do not disclose, distribute, or retain this e-mail or any part of it. Unless expressly stated, opinions in this e-mail are those of the individual sender and not of the FIMAT Group. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. The FIMAT Group reserve the right to monitor e-mail communications through its networks. Where this communication constitutes a financial promotion it is issued and approved by Fimat International Banque S.A. (UK Branch) and is only intended for persons of a kind described in article 19(5) of the Financial Services and Markets Act 2000 (Financial Promotion) Order 2001. This information is not intended to be distributed to UK Private Customers (as defined by the Financial Services Authority). Fimat International Banque S.A. (UK Branch) whose registered branch in England is at SG House, 41 Tower Hill, London EC3N 4SG is authorised by the Commission Bancaire in France and by the UK Financial Services Authority; regulated by the Financial Services Authority for the conduct of UK Business and is entered in the Financial Services Authority's register (Register Number 183415), access to which can be gained via the following link: www.fsa.gov.uk/register/ Member and a SETS Participant of the London Stock Exchange (LSE). Where this communication is confirming an on exchange transaction (as defined by the LSE),the transaction is subject to the rules of the LSE. Any information, opinions, estimates and forecasts contained in this document have been arrived at or obtained from public sources believed to be reliable and in good faith which has not been independently verified and no warranty, express or implied, is made as to their accuracy, completeness or correctness. This document is not an offer to sell or a solicitation to acquire or dispose of an interest in financial instruments. If you have received this transmission in error, please telephone +44 020 7676 8999 immediately so that we can arrange for its return. *** - 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]
Réf. : Re: Réf. : Re: How to passparameters to a javascript popup
the javascript works well, I have a new popup but I don't se the correct url in the new browser window. Meissa Adam Hardy [EMAIL PROTECTED] 03/07/2003 16:52 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : 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 ripondre ` 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] 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.
RE: NewBie:Populating objects in Jsp
Nicolas obviously types quicker then me :-) Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 11:45 PM To: Struts Users Mailing List Subject: Re: NewBie:Populating objects in Jsp 1. logic:iterate type attribute is uses to set the java type of a JSP variable set by the tag for current item. By default type is java.lang.Object, and if you don't use scriptlets (% java %) or Runtime Expression (%= java %) you don't need to use it. In the case you want to use type attribute, JSP has to import type declaration using a JSP directive % @page import= %. In your case, I don't think PUPIL_LIST items are APFM01Action instances. 2. id attribute is used to set the name of a JSP variable and a page scoped bean for the current item. In your case, it should be a pupil, not a pupilList. Nico. The APFM02.jsp code is as follows :- logic:iterate id=pupilList name= PUPIL_LIST type=APFM01Action tr align=left td bean:write name=pupilList property=upn / /td td and the Struts-config file is as follows :- form-bean name=APFM01Form type=APFM01Form/ form-bean name=APFM02Form type=APFM02Form/ /form-beans !-- == Action Mapping Definitions == -- action-mappings actionpath=/APFM01 type=APFM01Action name=APFM01Form input=/APFM01.jsp scope=session forwardname=success path=/APFM02.jsp/ forwardname=failure path=/APFM01.jsp/ /action actionpath=/APFM02 type=APFM02Action name=APFM02Form scope=request /action Thanks Sushil - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - 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 pass parameters to a javascript popup
Perhaps you should try this : a href=help onclick=openWindow('html:rewrite page=/myaction.do/?task=doThis');return false;Help/a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NewBie:Populating objects in Jsp
Yeah, I get the first point ! Are you ready for the next question ? Nico. Nicolas obviously types quicker then me :-) Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 11:45 PM To: Struts Users Mailing List Subject: Re: NewBie:Populating objects in Jsp 1. logic:iterate type attribute is uses to set the java type of a JSP variable set by the tag for current item. By default type is java.lang.Object, and if you don't use scriptlets (% java %) or Runtime Expression (%= java %) you don't need to use it. In the case you want to use type attribute, JSP has to import type declaration using a JSP directive % @page import= %. In your case, I don't think PUPIL_LIST items are APFM01Action instances. 2. id attribute is used to set the name of a JSP variable and a page scoped bean for the current item. In your case, it should be a pupil, not a pupilList. Nico. The APFM02.jsp code is as follows :- logic:iterate id=pupilList name= PUPIL_LIST type=APFM01Action tr align=left td bean:write name=pupilList property=upn / /td td and the Struts-config file is as follows :- form-bean name=APFM01Form type=APFM01Form/ form-bean name=APFM02Form type=APFM02Form/ /form-beans !-- == Action Mapping Definitions == -- action-mappings actionpath=/APFM01 type=APFM01Action name=APFM01Form input=/APFM01.jsp scope=session forwardname=success path=/APFM02.jsp/ forwardname=failure path=/APFM01.jsp/ /action actionpath=/APFM02 type=APFM02Action name=APFM02Form scope=request /action Thanks Sushil - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - 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]
On Fri, 4 Jul 2003, Simon Kelly wrote: Date: Fri, 4 Jul 2003 07:35:54 +0200 From: Simon Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Virtual [FRIDAY] A 16 handycap, but I'll be trying to push that down to a 10 or less. Every developer I know that plays golf has a 15+ handicap (including me). Every sales person I know that plays golf has a 10 handicap. Now tell me who actually works for a living? :-) Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javascipt error in IE
Andy, I too would like to know how to fix this when using the validator Javascripts. In most cases it appears to be benign, but irritating. I've got on or two forms that it really does break though. Hope someone has an clue. - Richard -Original Message- From: Huang, Andy [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 2:19 PM To: '[EMAIL PROTECTED]' Subject: RE: javascipt error in IE No one experience this problem??? -Original Message- From: Huang, Andy Sent: Thursday, July 03, 2003 1:46 PM To: '[EMAIL PROTECTED]' Subject: javascipt error in IE I got an Error: Object Expected in IE 6, but run without any problem in Netscape or Opera. I have a login form with onsubmit=return validateLoginForm(this); to validate the login email address and password (I have included the html souce code snippet below) My guess is that the IE browser having problem to read staticJavascript.jsp when it load the page. Any help will be appreciated form name=loginForm method=post action=/Login.do onsubmit=return validateLoginForm(this); table border=0 width=100% tr th align=right Email Address: /th td align=left input type=text name=email maxlength=27 size=25 value= /td /tr tr th align=right Password: /th td align=left input type=password name=password maxlength=18 size=16 value= /td /tr tr td align=right input type=submit value=Submit /td td align=left input type=reset value=Reset /td /tr /table /form script type=text/javascript language=JavaScript !-- var focusControl = document.forms[loginForm].elements[email]; if (focusControl.type != hidden) { focusControl.focus(); } // -- /script script type=text/javascript language=Javascript1.1 !-- Begin var bCancel = false; function validateLoginForm(form) { if (bCancel) return true; else return validateEmail(form) validateMaxLength(form) validateMinLength(form); } function email () { this.aa = new Array(email, liEmail Address is an invalid e-mail address./li, new Function (varName, return this[varName];)); } function maxlength () { this.aa = new Array(password, liPassword cannot be greater than 16 characters./li, new Function (varName, this.maxlength='16'; this.minlength='3'; return this[varName];)); } function minlength () { this.aa = new Array(password, liPassword cannot be less than 3 characters./li, new Function (varName, this.maxlength='16'; this.minlength='3'; return this[varName];)); } //End -- /script script language=Javascript1.1 src=staticJavascript.jsp/script - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Question
In one application, basically I can achieved single sign on and passing data around through the HttpSession object. How can I achieve the same result among different application(Context). Correct me from wrong that I think we can't shared session object among different context. So where can I store the subject and principle and all those information after the user login, so that another application can validate the user base on the credential already retrieve? Also what can I do if I want to share data among different context. I am using Tomcat and Websphere5.0 -- ___ 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: Session Question
Hmmm. Somebody hasnt been paying attention to the list today... ;-) Here is what Craig had to say about it just a few hours ago: snip src=Craig McClanahan (in response to thread Single Sign-On over several Struts-based webapps) (Today must be ask about single sign on day, since this has already come up on earlier discussions :-) Single Sign On support for Struts-based apps is no different than for any other webapp. Every J2EE container is required to support single sign on when you're using container managed security -- consult the documentation for your server for details of how to set it up. In the particular case of Tomcat, see: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html and scroll down to Single Sign On under Special Features. If you're not using container managed security, I'm not sure it's even possible to implement single sign on without getting on the insides of your app server's APIs. Again, you'd have to consult the docs for your server for details of what's possible. /snip If you missed the discussions on it you should be able to find them in the archive. As for sharing data, one approach is to use a database (or app, or EJB etc...) outside of the individual webapp that both apps connect to. -Original Message- From: Kuma Zuki [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 15:52 To: [EMAIL PROTECTED] Subject: Session Question In one application, basically I can achieved single sign on and passing data around through the HttpSession object. How can I achieve the same result among different application(Context). Correct me from wrong that I think we can't shared session object among different context. So where can I store the subject and principle and all those information after the user login, so that another application can validate the user base on the credential already retrieve? Also what can I do if I want to share data among different context. I am using Tomcat and Websphere5.0 -- ___ 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]
Réf. : Re: How to pass parameters to a javascriptpopup
Nicolas, it works! thank you very much. Can you explain me the magic of html rewrite tag. Meissa Nicolas De Loof [EMAIL PROTECTED] 04/07/2003 09:03 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 Perhaps you should try this : a href=help onclick=openWindow('html:rewrite page=/myaction.do/?task=doThis');return false;Help/a - 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.
Re: Réf. : Re: How to pass parameters to a javascript popup
When you use a relative url (without / as first char) browser request the ressource from it's current location: For example, let's say the current URL is : http://server/context/news/consult.do if you add a RELATIVE link to list.do, browser will send a request for http://server/context/news/list.do; if you add an ABSOLUTE link to /list.do, browser will send a request for http://server/news/list.do; html:rewrite tag is used to create absolute URI, adding webapp context at runtime : html:rewrite page=/foo will generate /context/foo, regardless current URL is /context/subdir/another_subdir/action.do Nico. Nicolas, it works! thank you very much. Can you explain me the magic of html rewrite tag. Meissa Nicolas De Loof [EMAIL PROTECTED] 04/07/2003 09:03 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 Perhaps you should try this : a href=help onclick=openWindow('html:rewrite page=/myaction.do/?task=doThis');return false;Help/a - 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: NewBie:Populating objects in Jsp
Do you have a getter method for your upn property ? It should be getUpn() Steve (I've copied this back to the list, you should send messages there for better response times) -Original Message- From: sushil jain [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 12:37 AM To: Nicolas De Loof; [EMAIL PROTECTED] Subject: Re: NewBie:Populating objects in Jsp Thanks for the reply . I have made the changes but now iam getting the following error :- org.apache.jasper.JasperException: No getter method for property upn of bean pupil As suggested I have made the following changes in the APFM02.jsp:- logic:iterate id=pupil name= PUPIL_LIST tr align=left td bean:write name=pupil property=upn / /td td bean:write name=pupil property=forename/ /td Regards Sushil Nicolas De Loof [EMAIL PROTECTED] wrote: Yeah, I get the first point ! Are you ready for the next question ? Nico. Nicolas obviously types quicker then me :-) Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 11:45 PM To: Struts Users Mailing List Subject: Re: NewBie:Populating objects in Jsp 1. type attribute is uses to set the java type of a JSP variable set by the tag for current item. By default type is java.lang.Object, and if you don't use scriptlets () or Runtime Expression () you don't need to use it. In the case you want to use type attribute, JSP has to import type declaration using a JSP directive . In your case, I don't think PUPIL_LIST items are APFM01Action instances. 2. id attribute is used to set the name of a JSP variable and a page scoped bean for the current item. In your case, it should be a pupil, not a pupilList. Nico. The APFM02.jsp code is as follows :- and the Struts-config file is as follows :- type=APFM01Form/ type=APFM02Form/ type=APFM01Action name=APFM01Form input=/APFM01.jsp scope=session type=APFM02Action name=APFM02Form scope=request Thanks Sushil - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - 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! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : Re: Réf. : Re: How to passparameters to a javascript popup
Everything is clear to now. thank you again Nicolas. Meissa Nicolas De Loof [EMAIL PROTECTED] 04/07/2003 10:32 Veuillez répondre à Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: Réf. : Re: How to pass parameters to a javascript popup When you use a relative url (without / as first char) browser request the ressource from it's current location: For example, let's say the current URL is : http://server/context/news/consult.do if you add a RELATIVE link to list.do, browser will send a request for http://server/context/news/list.do; if you add an ABSOLUTE link to /list.do, browser will send a request for http://server/news/list.do; html:rewrite tag is used to create absolute URI, adding webapp context at runtime : html:rewrite page=/foo will generate /context/foo, regardless current URL is /context/subdir/another_subdir/action.do Nico. Nicolas, it works! thank you very much. Can you explain me the magic of html rewrite tag. Meissa Nicolas De Loof [EMAIL PROTECTED] 04/07/2003 09:03 Veuillez ripondre ` Struts Users Mailing List Pour : Struts Users Mailing List [EMAIL PROTECTED] cc : Objet : Re: How to pass parameters to a javascript popup Perhaps you should try this : a href=help onclick=openWindow('html:rewrite page=/myaction.do/?task=doThis');return false;Help/a - 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] 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.
Re: Virtual [FRIDAY]
I beleive with salemen, it's all down to the strength of their grip! Usually the grip on their managers privates, when discussing the places they will take clients to schmoos them. Harder the grip, the closer to Glen Eagles they get! ;-) - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:07 AM Subject: Re: Virtual [FRIDAY] On Fri, 4 Jul 2003, Simon Kelly wrote: Date: Fri, 4 Jul 2003 07:35:54 +0200 From: Simon Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Virtual [FRIDAY] A 16 handycap, but I'll be trying to push that down to a 10 or less. Every developer I know that plays golf has a 15+ handicap (including me). Every sales person I know that plays golf has a 10 handicap. Now tell me who actually works for a living? :-) Craig - 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]
No the answer is far simpler than that! Who knows an honest salesman? from:Simon Kelly [EMAIL PROTECTED] date:Fri, 04 Jul 2003 09:55:35 to: [EMAIL PROTECTED] subject: Re: Virtual [FRIDAY] I beleive with salemen, it's all down to the strength of their grip! Usually the grip on their managers privates, when discussing the places they will take clients to schmoos them. Harder the grip, the closer to Glen Eagles they get! ;-) - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:07 AM Subject: Re: Virtual [FRIDAY] On Fri, 4 Jul 2003, Simon Kelly wrote: Date: Fri, 4 Jul 2003 07:35:54 0200 From: Simon Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Virtual [FRIDAY] A 16 handycap, but I'll be trying to push that down to a 10 or less. Every developer I know that plays golf has a 15 handicap (including me). Every sales person I know that plays golf has a 10 handicap. Now tell me who actually works for a living? :-) Craig - 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] http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
extending Action problems
I make a mistake on extending the Action. I have the following code to set the parameters in the perform() to the setters. At first, I wanted whichever the classes that extends ActionBase can get the parameters by simply calling the getters. However, the Action is a singleton, the instance variables will be used by all actions. Anybody can give me suggestion to make the getters to return the mapping, form, req, and resp as local variables? Thanks! public class ActionBase extends Action { private ActionMapping mapping; private ActionForward actionForward; private ActionForm form; private HttpServletRequest req; private HttpServletResponse resp; private String view; protected void process() throws Exception {} public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) { setActionMapping(); setActionForm(data); setRequest(req); setResponse(resp); process(); } protected void setActionMapping(ActionMapping mapping) { this.mapping = mapping; } protected ActionMapping getActionMapping() { return this.mapping; } protected void setRequest(HttpServletRequest req) { this.req = req; } protected HttpServletRequest getRequest() { return this.req; } protected void setResponse(HttpServletResponse resp) { this.resp = resp; } protected HttpServletResponse getResponse() { return this.resp; } }
Struts-bean.tld
What does the struts-bean.tld do . Regards, Jagan. - 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: How do struts manage this
I have already reply once... 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.. - Original Message - From: Peter Bosmans [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 12:19 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: Struts-bean.tld
I normally use it to get the value from the properties file. a href=bean:message key=home.link/ In the Applications.properties file, you can define home.link=http://www.home.com How handy, right? You should look at the Struts' doc Billy Ng - Original Message - From: Jagannayakam [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:11 AM Subject: Struts-bean.tld What does the struts-bean.tld do . Regards, Jagan. - 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]
struts.jar
should struts.jar be specified in classpath ? Or it is sufficient to put it in web-inf/MyContext/WEB-INF/lib Regards, Jagan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts.jar
i believe it should be in the classpath, coz if it is not your application will not know where to locate it. On Friday 04 July 2003 05:25 pm, Jagannayakam wrote: should struts.jar be specified in classpath ? Or it is sufficient to put it in web-inf/MyContext/WEB-INF/lib Regards, Jagan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: extending Action problems
Yes, this is a quite annoying feature of the singleton nature of Actions (and given the efficiency of modern JVMs at instantiating and garbage collecting there is jolly good argument for changing the RequestProcessor to instantiate new instances of Action for each request (and do feel free to try this at home kids!) - though Im getting off topic here). One way of dealing with this is to create a bean (or bean like object) that has the getters and setters you need, and to pass this to any method in your action that needs it. You instantiate the object at the start of perform() (or execute() method in struts1.1) and then pass the reference to methods. In my app I have an object for this task which I named ActionContext - this basically just wrapped a Hashmap into which I could insert/retrieve stuff with ActionContext.setAttribute, getAttribute, and I also has specific getters for the perform signature objects you mentioned - ActionForm, ActionMapping, HttpServletRequest and HttpServletResponse references - (which are passed to its constructor) - so you still have to pass one reference around as a parameter - but its a lot less typing than 4 - and its a great place for putting other stuff as well that is internal to the action (and for which you would rather not use the request attributes for reasons of scoping purity). And of course since the object is instantiated in the action and is only used in that thread and is garbage collected at the end, it does not suffer the thread safety constraints you encountered. btw If you want to store other stuff in it you may decide Hashmaps are a bit on the heavy side - in which case you could have a superclass for your 'ActionContext' that has getters for request,mapping,response,actionform and instantiate classes (inner classes perhaps) in your Actions that add extra properties specific to the needs of the action. /btw drop-name celebrity=Ted Husted Actually I vaguely recall Ted mentioning in a reply to some post of mine that he used a similar technique quite often - but it may have been someone else so don't quote me on that! /drop-name -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:06 To: Struts Users Mailing List Subject: extending Action problems I make a mistake on extending the Action. I have the following code to set the parameters in the perform() to the setters. At first, I wanted whichever the classes that extends ActionBase can get the parameters by simply calling the getters. However, the Action is a singleton, the instance variables will be used by all actions. Anybody can give me suggestion to make the getters to return the mapping, form, req, and resp as local variables? Thanks! public class ActionBase extends Action { private ActionMapping mapping; private ActionForward actionForward; private ActionForm form; private HttpServletRequest req; private HttpServletResponse resp; private String view; protected void process() throws Exception {} public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) { setActionMapping(); setActionForm(data); setRequest(req); setResponse(resp); process(); } protected void setActionMapping(ActionMapping mapping) { this.mapping = mapping; } protected ActionMapping getActionMapping() { return this.mapping; } protected void setRequest(HttpServletRequest req) { this.req = req; } protected HttpServletRequest getRequest() { return this.req; } protected void setResponse(HttpServletResponse resp) { this.resp = resp; } protected HttpServletResponse getResponse() { return this.resp; } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: variable passing.
hi,try this..logic:iterate name="FormBean" property="fee" id="feeCat" indexId="ctr" scope="request"td bean:write name="feeCat" property="categoryId"/ /tdtdhtml:link page="/foo.do" paramId="id" paramName="%= ctr %" bean:write name="feeCat" property="cat"//html:link /tdhope this helps..--nagi---Original Message--- From: Struts Users Mailing List Date: Friday, July 04, 2003 01:55:34 AM To: [EMAIL PROTECTED] Subject: variable passing.logic:iterate name="FormBean" property="fee" id="feeCat" indexId="ctr" scope="request"td bean:write name="feeCat" property="categoryId"/ /tdtdhtml:link page="/foo.do" bean:write name="feeCat" property="cat"//tdI have a form "FormBean" and their I have a collection of other form and that collection is named "feeCat". I am iterating over it and displaying rows in a table in my jsp. Now on clicking one of this row I am going to "/foo.do" action. This action takes control to a different jsp with a diferent form bean.Now I want to pass the id of the row selected to the new jsp with a fresh form. How can I pass on this information. scope is request only.Thank you. :)Imran.Imran___Click below to experience Sooraj R Barjatya's latest offering'Main Prem Ki Diwani Hoon' starring Hrithik, Abhishek Kareena http://www.mpkdh.com-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]. IncrediMail - Email has finally evolved - Click Here
Re: javascipt error in IE
You mean the error comes from the email-validation? Richard Mixon wrote: Andy, I too would like to know how to fix this when using the validator Javascripts. In most cases it appears to be benign, but irritating. I've got on or two forms that it really does break though. Hope someone has an clue. - Richard -Original Message- From: Huang, Andy [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 2:19 PM To: '[EMAIL PROTECTED]' Subject: RE: javascipt error in IE No one experience this problem??? -Original Message- From: Huang, Andy Sent: Thursday, July 03, 2003 1:46 PM To: '[EMAIL PROTECTED]' Subject: javascipt error in IE I got an Error: Object Expected in IE 6, but run without any problem in Netscape or Opera. I have a login form with onsubmit=return validateLoginForm(this); to validate the login email address and password (I have included the html souce code snippet below) My guess is that the IE browser having problem to read staticJavascript.jsp when it load the page. Any help will be appreciated form name=loginForm method=post action=/Login.do onsubmit=return validateLoginForm(this); table border=0 width=100% tr th align=right Email Address: /th td align=left input type=text name=email maxlength=27 size=25 value= /td /tr tr th align=right Password: /th td align=left input type=password name=password maxlength=18 size=16 value= /td /tr tr td align=right input type=submit value=Submit /td td align=left input type=reset value=Reset /td /tr /table /form script type=text/javascript language=JavaScript !-- var focusControl = document.forms[loginForm].elements[email]; if (focusControl.type != hidden) { focusControl.focus(); } // -- /script script type=text/javascript language=Javascript1.1 !-- Begin var bCancel = false; function validateLoginForm(form) { if (bCancel) return true; else return validateEmail(form) validateMaxLength(form) validateMinLength(form); } function email () { this.aa = new Array(email, liEmail Address is an invalid e-mail address./li, new Function (varName, return this[varName];)); } function maxlength () { this.aa = new Array(password, liPassword cannot be greater than 16 characters./li, new Function (varName, this.maxlength='16'; this.minlength='3'; return this[varName];)); } function minlength () { this.aa = new Array(password, liPassword cannot be less than 3 characters./li, new Function (varName, this.maxlength='16'; this.minlength='3'; return this[varName];)); } //End -- /script script language=Javascript1.1 src=staticJavascript.jsp/script - 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 Struts with ATG 6.0
Hi, I am trying to integrate a Struts based application with ATG 6.0. But whenever I invoke an action mapping (*.do), the corresponding Action class is not invoked at all (the struts-config file is read and loaded successfully). Basically, the ATG request processor is not able to handle *.do URLs and reassign it appropriately. Can anybody help me out on the steps to integrate Struts with ATG 6.0? Thanks in anticipation. -Madhu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts.jar
Just have it in WEB-INF/lib of your webapp. The servlet container makes sure all the stuff there is available on the classpath (of the classloader it provides you). :-) -Original Message- From: Jagannayakam [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:25 To: Struts Users Mailing List (E-mail) Subject: struts.jar should struts.jar be specified in classpath ? Or it is sufficient to put it in web-inf/MyContext/WEB-INF/lib Regards, Jagan. - 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-bean.tld
The tags you are referring to are part of the struts-bean tag library. A .tld file is whats known as a 'tag library descriptor' (or words to that effect) - tld files being used by JSP to define tag libraries - in this case its a definition for the struts bean taglib. When you wish to use the bean taglib in a JSP page you use the directive %@ taglib uri=/tags/struts-bean prefix=bean % at the top of your page, the uri of course telling JSP where to find the tld file (you will note the lack of the .tld suffix though). -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:27 To: Struts Users Mailing List Subject: Re: Struts-bean.tld I normally use it to get the value from the properties file. a href=bean:message key=home.link/ In the Applications.properties file, you can define home.link=http://www.home.com How handy, right? You should look at the Struts' doc Billy Ng - Original Message - From: Jagannayakam [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:11 AM Subject: Struts-bean.tld What does the struts-bean.tld do . Regards, Jagan. - 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] Does any one know ....
Some ideas http://www.ninsky.com/struts/powered.html Steve -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 10:37 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know On Thu, 3 Jul 2003, Simon Kelly wrote: Date: Thu, 3 Jul 2003 15:08:45 +0200 From: Simon Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [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? Anyone who wants to contribute a nice Powered By Struts image, so that we can include it in the distribution, is welcome to propose one -- just send it (or a pointer) to the STRUTS-DEV mailling list. Cheers Simon Craig - 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: java.lang.ClassCastException trying to populate html:select
FYI Each web application has its own struts.jar so different web apps could be running different struts versions. If you need to use LabelValueBean in an earlier version, you can always copy the source. Don't ya just love open source? Steve -Original Message- From: Alex Cantatore [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 2:21 PM To: Struts Users Mailing List Subject: Re: java.lang.ClassCastException trying to populate html:select I forgot to mention it, but I can't use org.apache.struts.util.LabelValueBean, unfortunately, as I am using an older version of Struts. Though it would be nice to upgrade, my supervisor has told me that I have to use the older version as the server is set up to run it and there are other apps on the server that require it. ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: variable passing.
If I've understood your example correctly: html:link action=/foo paramId=id paramName=feeCat paramProperty=categoryId bean:write name=feeCat property=cat/ /html:link If feeCat's categoryId=5, this would generate the following HTML: a:href=/context/foo.do?id=5Category/a I've used 'action' instead of 'page' to avoid having to specify the .do extension. Steve -Original Message- From: imran ali [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 1:25 PM To: [EMAIL PROTECTED] Subject: variable passing. logic:iterate name=FormBean property=fee id=feeCat indexId=ctr scope=request td bean:write name=feeCat property=categoryId/ /td td html:link page=/foo.do bean:write name=feeCat property=cat/ /td I have a form FormBean and their I have a collection of other form and that collection is named feeCat. I am iterating over it and displaying rows in a table in my jsp. Now on clicking one of this row I am going to /foo.do action. This action takes control to a different jsp with a diferent form bean. Now I want to pass the id of the row selected to the new jsp with a fresh form. How can I pass on this information. scope is request only. Thank you. :) Imran. Imran ___ Click below to experience Sooraj R Barjatya's latest offering 'Main Prem Ki Diwani Hoon' starring Hrithik, Abhishek Kareena http://www.mpkdh.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: [OT] Does any one know ....
Just what I was looking for. Thanks Steve. Simon - Original Message - From: Steve Raeburn [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 12:00 PM Subject: RE: [OT] Does any one know Some ideas http://www.ninsky.com/struts/powered.html Steve -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 10:37 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know On Thu, 3 Jul 2003, Simon Kelly wrote: Date: Thu, 3 Jul 2003 15:08:45 +0200 From: Simon Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [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? Anyone who wants to contribute a nice Powered By Struts image, so that we can include it in the distribution, is welcome to propose one -- just send it (or a pointer) to the STRUTS-DEV mailling list. Cheers Simon Craig - 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: extending Action problems
Sorry, Andrew! I am a little bit slow. Please review it if I understand what you told me with the following code. public abstract class ActionBase extends Action { protected abstract void process() throws Exception; public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) { ActionContext ac = new ActionContext(mapping, form, req, resp); process(ac); } public HttpServletRequest getRequest(ActionContext ac) { return ac.getRequest(); } } - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:42 AM Subject: RE: extending Action problems Yes, this is a quite annoying feature of the singleton nature of Actions (and given the efficiency of modern JVMs at instantiating and garbage collecting there is jolly good argument for changing the RequestProcessor to instantiate new instances of Action for each request (and do feel free to try this at home kids!) - though Im getting off topic here). One way of dealing with this is to create a bean (or bean like object) that has the getters and setters you need, and to pass this to any method in your action that needs it. You instantiate the object at the start of perform() (or execute() method in struts1.1) and then pass the reference to methods. In my app I have an object for this task which I named ActionContext - this basically just wrapped a Hashmap into which I could insert/retrieve stuff with ActionContext.setAttribute, getAttribute, and I also has specific getters for the perform signature objects you mentioned - ActionForm, ActionMapping, HttpServletRequest and HttpServletResponse references - (which are passed to its constructor) - so you still have to pass one reference around as a parameter - but its a lot less typing than 4 - and its a great place for putting other stuff as well that is internal to the action (and for which you would rather not use the request attributes for reasons of scoping purity). And of course since the object is instantiated in the action and is only used in that thread and is garbage collected at the end, it does not suffer the thread safety constraints you encountered. btw If you want to store other stuff in it you may decide Hashmaps are a bit on the heavy side - in which case you could have a superclass for your 'ActionContext' that has getters for request,mapping,response,actionform and instantiate classes (inner classes perhaps) in your Actions that add extra properties specific to the needs of the action. /btw drop-name celebrity=Ted Husted Actually I vaguely recall Ted mentioning in a reply to some post of mine that he used a similar technique quite often - but it may have been someone else so don't quote me on that! /drop-name -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:06 To: Struts Users Mailing List Subject: extending Action problems I make a mistake on extending the Action. I have the following code to set the parameters in the perform() to the setters. At first, I wanted whichever the classes that extends ActionBase can get the parameters by simply calling the getters. However, the Action is a singleton, the instance variables will be used by all actions. Anybody can give me suggestion to make the getters to return the mapping, form, req, and resp as local variables? Thanks! public class ActionBase extends Action { private ActionMapping mapping; private ActionForward actionForward; private ActionForm form; private HttpServletRequest req; private HttpServletResponse resp; private String view; protected void process() throws Exception {} public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) { setActionMapping(); setActionForm(data); setRequest(req); setResponse(resp); process(); } protected void setActionMapping(ActionMapping mapping) { this.mapping = mapping; } protected ActionMapping getActionMapping() { return this.mapping; } protected void setRequest(HttpServletRequest req) { this.req = req; } protected HttpServletRequest getRequest() { return this.req; } protected void setResponse(HttpServletResponse resp) { this.resp = resp; } protected HttpServletResponse getResponse() { return this.resp; } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For
RE: Struts-bean.tld
The URI in the JSP doesn't *directly* tell the JSP where to find the tld. It's just a reference used to look up the actual location in web.xml. Often the URI is the same as the path to the tld but it doesn't have to be. In JSP 1.1 / Servlet API 2.2 you had to configure tag libraries in the web.xml file taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib and then use the taglib-uri value in a JSP to enable it to lookup the taglib descriptor (.tld) location %@ taglib uri=/WEB-INF/struts-bean prefix=bean % finally, the name of the actual tag class is found in the taglib descriptor (.tld) file namewrite/name tagclassorg.apache.struts.taglib.bean.WriteTag/tagclass In JSP 1.2 / Servlet API 2.3, life gets a little easier. You no longer have to configure tag libraries in web.xml *or* have the .tld files in your WEB-INF directory. The servlet container can find tlds in a tag library jar file if the they are placed in a META-INF/tlds directory (within the jar). To use the taglib all you have to do is reference the taglib URI in your jsp and make sure the taglib jar is on your classpath. %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean % Again, although the URI looks like it points to a website it is just a string that matches the on in the tld and uniquely identfies the tag library. Probably more information than you needed ;-) Steve -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 2:56 AM To: Struts Users Mailing List; Billy Ng Subject: RE: Struts-bean.tld The tags you are referring to are part of the struts-bean tag library. A .tld file is whats known as a 'tag library descriptor' (or words to that effect) - tld files being used by JSP to define tag libraries - in this case its a definition for the struts bean taglib. When you wish to use the bean taglib in a JSP page you use the directive %@ taglib uri=/tags/struts-bean prefix=bean % at the top of your page, the uri of course telling JSP where to find the tld file (you will note the lack of the .tld suffix though). -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:27 To: Struts Users Mailing List Subject: Re: Struts-bean.tld I normally use it to get the value from the properties file. a href=bean:message key=home.link/ In the Applications.properties file, you can define home.link=http://www.home.com How handy, right? You should look at the Struts' doc Billy Ng - Original Message - From: Jagannayakam [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:11 AM Subject: Struts-bean.tld What does the struts-bean.tld do . Regards, Jagan. - 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: Struts-bean.tld
oops! Thanks for setting me straight steve! snip Probably more information than you needed /snip On the contrary - your reply has been most enlightening and I shall be filing it in my emails clients 'useful' folder for future reference. :-) -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 18:33 To: Struts Users Mailing List Subject: RE: Struts-bean.tld The URI in the JSP doesn't *directly* tell the JSP where to find the tld. It's just a reference used to look up the actual location in web.xml. Often the URI is the same as the path to the tld but it doesn't have to be. In JSP 1.1 / Servlet API 2.2 you had to configure tag libraries in the web.xml file taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib and then use the taglib-uri value in a JSP to enable it to lookup the taglib descriptor (.tld) location %@ taglib uri=/WEB-INF/struts-bean prefix=bean % finally, the name of the actual tag class is found in the taglib descriptor (.tld) file namewrite/name tagclassorg.apache.struts.taglib.bean.WriteTag/tagclass In JSP 1.2 / Servlet API 2.3, life gets a little easier. You no longer have to configure tag libraries in web.xml *or* have the .tld files in your WEB-INF directory. The servlet container can find tlds in a tag library jar file if the they are placed in a META-INF/tlds directory (within the jar). To use the taglib all you have to do is reference the taglib URI in your jsp and make sure the taglib jar is on your classpath. %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean % Again, although the URI looks like it points to a website it is just a string that matches the on in the tld and uniquely identfies the tag library. Probably more information than you needed ;-) Steve -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 2:56 AM To: Struts Users Mailing List; Billy Ng Subject: RE: Struts-bean.tld The tags you are referring to are part of the struts-bean tag library. A .tld file is whats known as a 'tag library descriptor' (or words to that effect) - tld files being used by JSP to define tag libraries - in this case its a definition for the struts bean taglib. When you wish to use the bean taglib in a JSP page you use the directive %@ taglib uri=/tags/struts-bean prefix=bean % at the top of your page, the uri of course telling JSP where to find the tld file (you will note the lack of the .tld suffix though). -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:27 To: Struts Users Mailing List Subject: Re: Struts-bean.tld I normally use it to get the value from the properties file. a href=bean:message key=home.link/ In the Applications.properties file, you can define home.link=http://www.home.com How handy, right? You should look at the Struts' doc Billy Ng - Original Message - From: Jagannayakam [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:11 AM Subject: Struts-bean.tld What does the struts-bean.tld do . Regards, Jagan. - 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]
question about depends attribute in validator-rule.xml
Hi, i am using struts validator and want to add a validation rule by myself. i want the required validator only do validation when my custom validator return true. How can i do this? What is the meaning of depends attribute of validator element in validator-rules.xml? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: extending Action problems
Almost - but the getRequest(ac) is redundant - you would just call ac.getRequest() when you needed the request as youve passed in ac as a method parameter. You will note though that you still have to pass the ac parameter to any method that needs access to the stuff it wraps. ie: public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) { ActionContext ac = new ActionContext(mapping, form, req, resp); process(ac); etc.. } private void process(ActionContext ac) { String bob = ac.getRequest().getParameter(bob); etc } What you really really want to be able to do is: private void process() { String bob = getRequest().getParameter(bob); } isnt it? ;-) but as you saw already that simply wont work with a singleton Action - only way you can deal with this is either passing one or more parameters to methods in Action that need them OR modifying the RequestProcessor to return new instances of your Action for each request - that wouldnt need much code to achieve, but if your cautious Id suggest you stick with a parameter passing methodology. Well, I suppose there is one way I can think of to do it without having to pass around the ac as a param - but its an evil hack and Im including it more for your amusement than for your education! evil disclaimer=dont try this at home kids tested=no Put your ActionContext instance into the servlet context in perform() keyed by the threads hashcode. Provide a method getActionContext() in your base action to retrieve it. Now you can get it from any method in your action just by calling getActionContext() without having to pass it around in a param. /evil -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 18:19 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: extending Action problems Sorry, Andrew! I am a little bit slow. Please review it if I understand what you told me with the following code. public abstract class ActionBase extends Action { protected abstract void process() throws Exception; public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) { ActionContext ac = new ActionContext(mapping, form, req, resp); process(ac); } public HttpServletRequest getRequest(ActionContext ac) { return ac.getRequest(); } } - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:42 AM Subject: RE: extending Action problems Yes, this is a quite annoying feature of the singleton nature of Actions (and given the efficiency of modern JVMs at instantiating and garbage collecting there is jolly good argument for changing the RequestProcessor to instantiate new instances of Action for each request (and do feel free to try this at home kids!) - though Im getting off topic here). One way of dealing with this is to create a bean (or bean like object) that has the getters and setters you need, and to pass this to any method in your action that needs it. You instantiate the object at the start of perform() (or execute() method in struts1.1) and then pass the reference to methods. In my app I have an object for this task which I named ActionContext - this basically just wrapped a Hashmap into which I could insert/retrieve stuff with ActionContext.setAttribute, getAttribute, and I also has specific getters for the perform signature objects you mentioned - ActionForm, ActionMapping, HttpServletRequest and HttpServletResponse references - (which are passed to its constructor) - so you still have to pass one reference around as a parameter - but its a lot less typing than 4 - and its a great place for putting other stuff as well that is internal to the action (and for which you would rather not use the request attributes for reasons of scoping purity). And of course since the object is instantiated in the action and is only used in that thread and is garbage collected at the end, it does not suffer the thread safety constraints you encountered. btw If you want to store other stuff in it you may decide Hashmaps are a bit on the heavy side - in which case you could have a superclass for your 'ActionContext' that has getters for request,mapping,response,actionform and instantiate classes (inner classes perhaps) in your Actions that add extra properties specific to the needs of the action. /btw drop-name celebrity=Ted Husted Actually I vaguely recall Ted mentioning in a reply to some post of mine that he used a similar technique quite often - but it may have been someone else so don't quote me on
Re: [OT] Does any one know ....
I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - Original Message - From: Steve Raeburn [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 12:00 PM Subject: RE: [OT] Does any one know Some ideas http://www.ninsky.com/struts/powered.html Steve -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 10:37 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know On Thu, 3 Jul 2003, Simon Kelly wrote: Date: Thu, 3 Jul 2003 15:08:45 +0200 From: Simon Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [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? Anyone who wants to contribute a nice Powered By Struts image, so that we can include it in the distribution, is welcome to propose one -- just send it (or a pointer) to the STRUTS-DEV mailling list. Cheers Simon Craig - 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: Struts-bean.tld
Thanks Steve . In case of In JSP 1.2 / Servlet API 2.3 can u tell me the exact location of the Meta-inf directory and which jar file. Thanks, Jagan. -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 4:03 PM To: Struts Users Mailing List Subject: RE: Struts-bean.tld The URI in the JSP doesn't *directly* tell the JSP where to find the tld. It's just a reference used to look up the actual location in web.xml. Often the URI is the same as the path to the tld but it doesn't have to be. In JSP 1.1 / Servlet API 2.2 you had to configure tag libraries in the web.xml file taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib and then use the taglib-uri value in a JSP to enable it to lookup the taglib descriptor (.tld) location %@ taglib uri=/WEB-INF/struts-bean prefix=bean % finally, the name of the actual tag class is found in the taglib descriptor (.tld) file namewrite/name tagclassorg.apache.struts.taglib.bean.WriteTag/tagclass In JSP 1.2 / Servlet API 2.3, life gets a little easier. You no longer have to configure tag libraries in web.xml *or* have the .tld files in your WEB-INF directory. The servlet container can find tlds in a tag library jar file if the they are placed in a META-INF/tlds directory (within the jar). To use the taglib all you have to do is reference the taglib URI in your jsp and make sure the taglib jar is on your classpath. %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean % Again, although the URI looks like it points to a website it is just a string that matches the on in the tld and uniquely identfies the tag library. Probably more information than you needed ;-) Steve -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 2:56 AM To: Struts Users Mailing List; Billy Ng Subject: RE: Struts-bean.tld The tags you are referring to are part of the struts-bean tag library. A .tld file is whats known as a 'tag library descriptor' (or words to that effect) - tld files being used by JSP to define tag libraries - in this case its a definition for the struts bean taglib. When you wish to use the bean taglib in a JSP page you use the directive %@ taglib uri=/tags/struts-bean prefix=bean % at the top of your page, the uri of course telling JSP where to find the tld file (you will note the lack of the .tld suffix though). -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:27 To: Struts Users Mailing List Subject: Re: Struts-bean.tld I normally use it to get the value from the properties file. a href=bean:message key=home.link/ In the Applications.properties file, you can define home.link=http://www.home.com How handy, right? You should look at the Struts' doc Billy Ng - Original Message - From: Jagannayakam [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:11 AM Subject: Struts-bean.tld What does the struts-bean.tld do . Regards, Jagan. - 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]
GenericDataSource
Can someone explain why GenericDataSource was moved to lagacy? I have been using it successfully as a JINI DataSourse - have others experienced problems? - if so, what problems? db - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts.jar
You should always put it in lib dir. Also other related jars of the struts should also be put in the lib dir. If you put elsewhere , it may clash with other jars of tomcat like logging etc. /Ashwani Andrew Hill [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] dnode.comcc: (bcc: ashwani.kalra/Polaris) Subject: RE: struts.jar 07/04/2003 03:13 PM Please respond to Struts Users Mailing List Just have it in WEB-INF/lib of your webapp. The servlet container makes sure all the stuff there is available on the classpath (of the classloader it provides you). :-) -Original Message- From: Jagannayakam [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:25 To: Struts Users Mailing List (E-mail) Subject: struts.jar should struts.jar be specified in classpath ? Or it is sufficient to put it in web-inf/MyContext/WEB-INF/lib Regards, Jagan. - 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] This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit Us at http://www.polaris.co.in - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: variable passing.
Apparently I did misunderstand. Pick mine or nagi's answer depending on what you meant by the id of the row selected Steve -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:01 AM To: Struts Users Mailing List Subject: RE: variable passing. If I've understood your example correctly: html:link action=/foo paramId=id paramName=feeCat paramProperty=categoryId bean:write name=feeCat property=cat/ /html:link If feeCat's categoryId=5, this would generate the following HTML: a:href=/context/foo.do?id=5Category/a I've used 'action' instead of 'page' to avoid having to specify the .do extension. Steve -Original Message- From: imran ali [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 1:25 PM To: [EMAIL PROTECTED] Subject: variable passing. logic:iterate name=FormBean property=fee id=feeCat indexId=ctr scope=request td bean:write name=feeCat property=categoryId/ /td td html:link page=/foo.do bean:write name=feeCat property=cat/ /td I have a form FormBean and their I have a collection of other form and that collection is named feeCat. I am iterating over it and displaying rows in a table in my jsp. Now on clicking one of this row I am going to /foo.do action. This action takes control to a different jsp with a diferent form bean. Now I want to pass the id of the row selected to the new jsp with a fresh form. How can I pass on this information. scope is request only. Thank you. :) Imran. Imran ___ Click below to experience Sooraj R Barjatya's latest offering 'Main Prem Ki Diwani Hoon' starring Hrithik, Abhishek Kareena http://www.mpkdh.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GenericDataSource
Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts used commons-dbcp for the DataSource functionnality in replacement of GenericDataSource . Waiting for this commons to get stable before releasing 1.1 final, Struts commiters agreed to go back to GenericDataSource because commons-dbcp looked very unstable. Struts-legacy has been created to include this class outside of Struts core as DefaultDataSource have been deprecated : Future Struts version will set the datasource type attribute to mandatory, so you will have to set your selected DataSource (that can be commons-dbcp, and lot's of us use container pool service and JNDI to get a DataSource). Nico. Can someone explain why GenericDataSource was moved to lagacy? I have been using it successfully as a JINI DataSourse - have others experienced problems? - if so, what problems? db - 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: GenericDataSource
The short answer is that GenericDataSource was originally deprecated in favour of Commons DBCP. Unfortunately, problems with DBCP that could not be fixed in time for the 1.1 release meant that DBCP was removed and 1.1 reverted back to Generic DataSource. This is only a temporary measure so GenericDataSource was packaged separately from the main struts jar. Steve -Original Message- From: David Bolsover [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 4:04 AM To: Struts User Subject: GenericDataSource Can someone explain why GenericDataSource was moved to lagacy? I have been using it successfully as a JINI DataSourse - have others experienced problems? - if so, what problems? db - 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: GenericDataSource
Stop doing that! :-) Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 4:15 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: GenericDataSource Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts used commons-dbcp for the DataSource functionnality in replacement of GenericDataSource . Waiting for this commons to get stable before releasing 1.1 final, Struts commiters agreed to go back to GenericDataSource because commons-dbcp looked very unstable. Struts-legacy has been created to include this class outside of Struts core as DefaultDataSource have been deprecated : Future Struts version will set the datasource type attribute to mandatory, so you will have to set your selected DataSource (that can be commons-dbcp, and lot's of us use container pool service and JNDI to get a DataSource). Nico. Can someone explain why GenericDataSource was moved to lagacy? I have been using it successfully as a JINI DataSourse - have others experienced problems? - if so, what problems? db - 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] Does any one know ....
Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GenericDataSource
I promise to let you respond first to the next one ! ;-) Nico. Stop doing that! :-) Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 4:15 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: GenericDataSource Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts used commons-dbcp for the DataSource functionnality in replacement of GenericDataSource . Waiting for this commons to get stable before releasing 1.1 final, Struts commiters agreed to go back to GenericDataSource because commons-dbcp looked very unstable. Struts-legacy has been created to include this class outside of Struts core as DefaultDataSource have been deprecated : Future Struts version will set the datasource type attribute to mandatory, so you will have to set your selected DataSource (that can be commons-dbcp, and lot's of us use container pool service and JNDI to get a DataSource). Nico. Can someone explain why GenericDataSource was moved to lagacy? I have been using it successfully as a JINI DataSourse - have others experienced problems? - if so, what problems? db - 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: GenericDataSource
It's 4.25am here. My brain is a little bit s - l - o - w . Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 4:24 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: GenericDataSource I promise to let you respond first to the next one ! ;-) Nico. Stop doing that! :-) Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 4:15 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: GenericDataSource Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts used commons-dbcp for the DataSource functionnality in replacement of GenericDataSource . Waiting for this commons to get stable before releasing 1.1 final, Struts commiters agreed to go back to GenericDataSource because commons-dbcp looked very unstable. Struts-legacy has been created to include this class outside of Struts core as DefaultDataSource have been deprecated : Future Struts version will set the datasource type attribute to mandatory, so you will have to set your selected DataSource (that can be commons-dbcp, and lot's of us use container pool service and JNDI to get a DataSource). Nico. Can someone explain why GenericDataSource was moved to lagacy? I have been using it successfully as a JINI DataSourse - have others experienced problems? - if so, what problems? db - 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: GenericDataSource
That should be the reason why my 1.27 pm brain looks so quick ! Don't panic, I'm on holiday next week, you will have the whole day to respond to struts-users. Nico. It's 4.25am here. My brain is a little bit s - l - o - w . Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 4:24 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: GenericDataSource I promise to let you respond first to the next one ! ;-) Nico. Stop doing that! :-) Steve -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 4:15 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: GenericDataSource Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts used commons-dbcp for the DataSource functionnality in replacement of GenericDataSource . Waiting for this commons to get stable before releasing 1.1 final, Struts commiters agreed to go back to GenericDataSource because commons-dbcp looked very unstable. Struts-legacy has been created to include this class outside of Struts core as DefaultDataSource have been deprecated : Future Struts version will set the datasource type attribute to mandatory, so you will have to set your selected DataSource (that can be commons-dbcp, and lot's of us use container pool service and JNDI to get a DataSource). Nico. Can someone explain why GenericDataSource was moved to lagacy? I have been using it successfully as a JINI DataSourse - have others experienced problems? - if so, what problems? db - 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]
RE: Struts-bean.tld
The meta-inf directory is within the jar that contains your taglib(s). For struts, the standard taglibs are contained within struts.jar (open it with Winzip or similar to see the internal directory structure) Steve -Original Message- From: Jagannayakam [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:52 AM To: Struts Users Mailing List Subject: RE: Struts-bean.tld Thanks Steve . In case of In JSP 1.2 / Servlet API 2.3 can u tell me the exact location of the Meta-inf directory and which jar file. Thanks, Jagan. -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 4:03 PM To: Struts Users Mailing List Subject: RE: Struts-bean.tld The URI in the JSP doesn't *directly* tell the JSP where to find the tld. It's just a reference used to look up the actual location in web.xml. Often the URI is the same as the path to the tld but it doesn't have to be. In JSP 1.1 / Servlet API 2.2 you had to configure tag libraries in the web.xml file taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib and then use the taglib-uri value in a JSP to enable it to lookup the taglib descriptor (.tld) location %@ taglib uri=/WEB-INF/struts-bean prefix=bean % finally, the name of the actual tag class is found in the taglib descriptor (.tld) file namewrite/name tagclassorg.apache.struts.taglib.bean.WriteTag/tagclass In JSP 1.2 / Servlet API 2.3, life gets a little easier. You no longer have to configure tag libraries in web.xml *or* have the .tld files in your WEB-INF directory. The servlet container can find tlds in a tag library jar file if the they are placed in a META-INF/tlds directory (within the jar). To use the taglib all you have to do is reference the taglib URI in your jsp and make sure the taglib jar is on your classpath. %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean % Again, although the URI looks like it points to a website it is just a string that matches the on in the tld and uniquely identfies the tag library. Probably more information than you needed ;-) Steve -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 2:56 AM To: Struts Users Mailing List; Billy Ng Subject: RE: Struts-bean.tld The tags you are referring to are part of the struts-bean tag library. A .tld file is whats known as a 'tag library descriptor' (or words to that effect) - tld files being used by JSP to define tag libraries - in this case its a definition for the struts bean taglib. When you wish to use the bean taglib in a JSP page you use the directive %@ taglib uri=/tags/struts-bean prefix=bean % at the top of your page, the uri of course telling JSP where to find the tld file (you will note the lack of the .tld suffix though). -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:27 To: Struts Users Mailing List Subject: Re: Struts-bean.tld I normally use it to get the value from the properties file. a href=bean:message key=home.link/ In the Applications.properties file, you can define home.link=http://www.home.com How handy, right? You should look at the Struts' doc Billy Ng - Original Message - From: Jagannayakam [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:11 AM Subject: Struts-bean.tld What does the struts-bean.tld do . Regards, Jagan. - 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]
Re: [OT] Does any one know ....
hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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] Does any one know ....
the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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]
/ /OREF:CPT26ABD Struts logo
an image of a Lipizzaner would be cool - it embodies struts and keeps in line with the animal theme - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: GenericDataSource
Nico /Steve Thanks for the prompt replies - glad I stuck with GenericDataSource rather than trying out the commons-dbpc offerings! db -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: 04 July 2003 12:15 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: GenericDataSource Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts used commons-dbcp for the DataSource functionnality in replacement of GenericDataSource . Waiting for this commons to get stable before releasing 1.1 final, Struts commiters agreed to go back to GenericDataSource because commons-dbcp looked very unstable. Struts-legacy has been created to include this class outside of Struts core as DefaultDataSource have been deprecated : Future Struts version will set the datasource type attribute to mandatory, so you will have to set your selected DataSource (that can be commons-dbcp, and lot's of us use container pool service and JNDI to get a DataSource). Nico. Can someone explain why GenericDataSource was moved to lagacy? I have been using it successfully as a JINI DataSourse - have others experienced problems? - if so, what problems? db - 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] Does any one know ....
should use a picture of a Strutsasaurus as logo! ;-) --Alen - Original Message - From: Firat TIRYAKI [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:04 PM Subject: Re: [OT] Does any one know the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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: Re: Single Sign-On over several Struts-based webapps
Hi Craig, Thanks for your help. However, I was thinking about several webapps that do not share the same virtual host or the same realm. Probably this has nothing to do with Struts, but I'm wondering if this is possible to do in order to apply it to a distributed system. Thanks, Antonio Santos --- (Today must be ask about single sign on day, since this has already come up on earlier discussions :-) Single Sign On support for Struts-based apps is no different than for any other webapp. Every J2EE container is required to support single sign on when you're using container managed security -- consult the documentation for your server for details of how to set it up. In the particular case of Tomcat, see: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html and scroll down to Single Sign On under Special Features. If you're not using container managed security, I'm not sure it's even possible to implement single sign on without getting on the insides of your app server's APIs. Again, you'd have to consult the docs for your server for details of what's possible. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Does any one know ....
a bit like Tom when gets an electric shock in Tom Jerry? Firat TIRYAKI wrote: the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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]
Well...you see me working today :-( -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 10:55 PM To: Struts Users Mailing List Subject: RE: Virtual [FRIDAY] Whats a 'long weekend'? I am not familiar with these terms. :-( I know what a weekend is. Thats when there are less managerial/sales/support type people around at the office so I can actually get some work done without having to deal with all those distracting urgent requirements that keep coming up during the week - But whats a 'long' weekend? Is that when all those in the executive classes vanish on a Friday or Monday or something? Im guessing 'holiday' is like 'long weekend' only its not a weekend? -Original Message- From: Susan Bradeen [mailto:[EMAIL PROTECTED] Sent: Thursday, 3 July 2003 23:36 To: Struts Users Mailing List 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]
RE: Virtual [FRIDAY]
What's a handycap? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 5:03 AM To: [EMAIL PROTECTED] Subject: Re: Virtual [FRIDAY] No the answer is far simpler than that! Who knows an honest salesman? from:Simon Kelly [EMAIL PROTECTED] date:Fri, 04 Jul 2003 09:55:35 to: [EMAIL PROTECTED] subject: Re: Virtual [FRIDAY] I beleive with salemen, it's all down to the strength of their grip! Usually the grip on their managers privates, when discussing the places they will take clients to schmoos them. Harder the grip, the closer to Glen Eagles they get! ;-) - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:07 AM Subject: Re: Virtual [FRIDAY] On Fri, 4 Jul 2003, Simon Kelly wrote: Date: Fri, 4 Jul 2003 07:35:54 0200 From: Simon Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Virtual [FRIDAY] A 16 handycap, but I'll be trying to push that down to a 10 or less. Every developer I know that plays golf has a 15 handicap (including me). Every sales person I know that plays golf has a 10 handicap. Now tell me who actually works for a living? :-) Craig - 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] http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placemen t=home_multi.gifsite=amazon - 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] Does any one know ....
:o)... well great idea F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 3:23 PM Subject: Re: [OT] Does any one know a bit like Tom when gets an electric shock in Tom Jerry? Firat TIRYAKI wrote: the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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: GenericDataSource
woohoo - I just had a look at the dbcp bugzilla http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMEDbug_status=NEWbug_status=ASSIGNEDbug_status=REOPENEDemail1=emailtype1=substringemailassigned_to1=1email2=emailtype2=substringemailreporter2=1bugidtype=includebug_id=changedin=votes=chfieldfrom=chfieldto=Nowchfieldvalue=product=Commonscomponent=Dbcpshort_desc=short_desc_type=allwordssubstrlong_desc=long_desc_type=allwordssubstrbug_file_loc=bug_file_loc_type=allwordssubstrkeywords=keywords_type=anywordsfield0-0-0=nooptype0-0-0=noopvalue0-0-0=cmdtype=doitorder=Reuse+same+sort+as+last+time seems like they're still a few issues there to clear up. David Bolsover wrote: Nico /Steve Thanks for the prompt replies - glad I stuck with GenericDataSource rather than trying out the commons-dbpc offerings! db -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: 04 July 2003 12:15 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: GenericDataSource Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts used commons-dbcp for the DataSource functionnality in replacement of GenericDataSource . Waiting for this commons to get stable before releasing 1.1 final, Struts commiters agreed to go back to GenericDataSource because commons-dbcp looked very unstable. Struts-legacy has been created to include this class outside of Struts core as DefaultDataSource have been deprecated : Future Struts version will set the datasource type attribute to mandatory, so you will have to set your selected DataSource (that can be commons-dbcp, and lot's of us use container pool service and JNDI to get a DataSource). Nico. Can someone explain why GenericDataSource was moved to lagacy? I have been using it successfully as a JINI DataSourse - have others experienced problems? - if so, what problems? db - 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] Does any one know ....
Strutzilla? Alen Ribic wrote: should use a picture of a Strutsasaurus as logo! ;-) --Alen - Original Message - From: Firat TIRYAKI [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:04 PM Subject: Re: [OT] Does any one know the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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] Does any one know ....
a, yes, they must be related or something. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:29 PM Subject: Re: [OT] Does any one know Strutzilla? Alen Ribic wrote: should use a picture of a Strutsasaurus as logo! ;-) --Alen - Original Message - From: Firat TIRYAKI [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:04 PM Subject: Re: [OT] Does any one know the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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]
Re: [OT] - Lucene Intergration with Struts/Struts Jobs
Pat Quinn wrote: Hey guys, I know its not really a struts question but is anyone out there using Jakarta Lucene with struts. I've started looking into it to enable full text searching of product catalogues rather than screwing around with SQL Like statements. If you are using a facade or DAO, it's very easy to use either JDBC or Lucene as needed. All the application does is call the facade or DAO, what it does behind the scenes is out of sight. Struts should not be aware what data access method is being used. The same business logic calls should be made regardless of whether you are using JDBC, Hibernate, Lucene, all three, or a Mock implementation for testing. But, yes, many of us who use Struts have been using Lucene for years, even before it was brought to Apache. I used in examples in Professional Site Design and again in Struts in Action. (And continue to use it with current projects.) -Ted. -- Ted Husted, Struts in Action http://husted.com/struts/book.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Does any one know ....
I more pictured the outer frame of a house... with no walls put up.. im pretty sure the triangle portions that make up the room are also called struts. ... might make for a cool pic.. plus get the point across at the same time.. JMG - Original Message - From: Alen Ribic [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 8:36 AM Subject: Re: [OT] Does any one know a, yes, they must be related or something. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:29 PM Subject: Re: [OT] Does any one know Strutzilla? Alen Ribic wrote: should use a picture of a Strutsasaurus as logo! ;-) --Alen - Original Message - From: Firat TIRYAKI [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:04 PM Subject: Re: [OT] Does any one know the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tiles] ComponentContext returning null
The ComponentContext exist only if you are in a tile. You are in a tile if you insert your jsp or action with one of the tile 'insert' mechanism: tiles:insert .. or a forward to a tile definition. Otherwise, the ComponentContext doesn't exist. Hope this help, Cedric William Salvucci wrote: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Updateable Cache Framework
We had an Application Cache implemented in our app which actually stored frequently used objects in at application scope. Whenever that object was modified in the DB we had to update its state in the cache too which was a pain. I was looking for available cache frameworks that did something similar (probably closely associated with the persistence layer) but most of them provided read-only cache. I am referring to some kind of EJB mechanism like it keeps the objects reference locked until the changes in the persistence layer are committed and updates object states appropriately. Has anybody had this requirement in his project? Any available caching frameworks exist for such functionality? Thanks for any pointers. Regards, Affan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[FRIDAY] YA Ted's Trivia Contest
Since it's independence day here in the States, and we all went to the ball game last night, I'll lob one over the fence: This is a homily which I call [blank]'s Golden Rule: Eliminate duplication, eliminate dependency Who's [blank]? A signed copy of Struts in Action to the first lucky subscriber to email to [EMAIL PROTECTED] the correct answer [being whichever answer I expect :0)]. -Ted. -- Ted Husted, Struts in Action http://husted.com/struts/book.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
bean:write boolean
hi i have a arraylist of bean with boolean attributs and i want to render a image (or another string than true) when it's true and another image when it's false : logic:iterate id=permissionbean name=permissionsList tr tdbean:write name=permissionbean property=user.group//td tdbean:write name=permissionbean property=user.name//td tdbean:write name=permissionbean property=read//td tdbean:write name=permissionbean property=write//td !-- it render true or false but i want to render writeable or not writeable -- /tr /logic:iterate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bean:write boolean
I might suggest writting your own tag then to ouput the desired text. Tags are not difficult to write and you can make changes to it pretty easily if you need to modify the functionality later one. JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:40 AM Subject: bean:write boolean hi i have a arraylist of bean with boolean attributs and i want to render a image (or another string than true) when it's true and another image when it's false : logic:iterate id=permissionbean name=permissionsList tr tdbean:write name=permissionbean property=user.group//td tdbean:write name=permissionbean property=user.name//td tdbean:write name=permissionbean property=read//td tdbean:write name=permissionbean property=write//td !-- it render true or false but i want to render writeable or not writeable -- /tr /logic:iterate - 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] Does any one know ....
Something like this ? Nico. :o)... well great idea F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 3:23 PM Subject: Re: [OT] Does any one know a bit like Tom when gets an electric shock in Tom Jerry? Firat TIRYAKI wrote: the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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]
Re: bean:write boolean
I dont have a nice simple tag handy to send.. but here is what you should look up Look up the object BodyTagSupport. you will want to probably extend this one to make your tag. To build the tag there are multiple methods that get involed at different points of the tag processing. their names are pretty straight forward. doBeforeBody(); doAfterBody(); ect.. you have access to a request object.. so if you need to read a struts from value.. just use it to pull the object out of the request or session memmory. ( if you have never done this manually its pretty easy the string name of the object is exactly the same as its class name) JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:51 AM Subject: Re: bean:write boolean okay ... i've never write tags can you give me a small example ? Jamie M. Guillemette a écrit : I might suggest writting your own tag then to ouput the desired text. Tags are not difficult to write and you can make changes to it pretty easily if you need to modify the functionality later one. JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:40 AM Subject: bean:write boolean hi i have a arraylist of bean with boolean attributs and i want to render a image (or another string than true) when it's true and another image when it's false : logic:iterate id=permissionbean name=permissionsList tr tdbean:write name=permissionbean property=user.group//td tdbean:write name=permissionbean property=user.name//td tdbean:write name=permissionbean property=read//td tdbean:write name=permissionbean property=write//td !-- it render true or false but i want to render writeable or not writeable -- /tr /logic:iterate - 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] Does any one know ....
no attachment or link ! JMG - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:49 AM Subject: Re: [OT] Does any one know Something like this ? Nico. :o)... well great idea F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 3:23 PM Subject: Re: [OT] Does any one know a bit like Tom when gets an electric shock in Tom Jerry? Firat TIRYAKI wrote: the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Does any one know ....
Oups, mailing list doesn't allow attachements... and my website is down ! Sorry. Nico. Something like this ? Nico. :o)... well great idea F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 3:23 PM Subject: Re: [OT] Does any one know a bit like Tom when gets an electric shock in Tom Jerry? Firat TIRYAKI wrote: the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Does any one know ....
If you want send it directly to me.. ill post it where people can see it. JMG ( [EMAIL PROTECTED] ) - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:58 AM Subject: Re: [OT] Does any one know Oups, mailing list doesn't allow attachements... and my website is down ! Sorry. Nico. Something like this ? Nico. :o)... well great idea F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 3:23 PM Subject: Re: [OT] Does any one know a bit like Tom when gets an electric shock in Tom Jerry? Firat TIRYAKI wrote: the logo should be the skeleton of tomcat... will be cool... F. - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:48 PM Subject: Re: [OT] Does any one know hmm, you're right. I wasn't inspired by any of the struts bookcovers. Steve Raeburn wrote: Yeah, but ants are cool whereas a strut is just | or / Steve -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 4, 2003 3:50 AM To: Struts Users Mailing List Subject: Re: [OT] Does any one know I can feel a competition coming on. An image as good as the ant logo would be cool Simon Kelly wrote: Just what I was looking for. Thanks Steve. Simon - 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] - 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: bean:write boolean
thanks ... i still have some question : how do you use your tag after that ? i just have a class but i suppose i have to write its description in a tld file or something like that. do you have good links talking about writing own tags ? what about parameters ? and tag content ? Jamie M. Guillemette a écrit : I dont have a nice simple tag handy to send.. but here is what you should look up Look up the object BodyTagSupport. you will want to probably extend this one to make your tag. To build the tag there are multiple methods that get involed at different points of the tag processing. their names are pretty straight forward. doBeforeBody(); doAfterBody(); ect.. you have access to a request object.. so if you need to read a struts from value.. just use it to pull the object out of the request or session memmory. ( if you have never done this manually its pretty easy the string name of the object is exactly the same as its class name) JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:51 AM Subject: Re: bean:write boolean okay ... i've never write tags can you give me a small example ? Jamie M. Guillemette a écrit : I might suggest writting your own tag then to ouput the desired text. Tags are not difficult to write and you can make changes to it pretty easily if you need to modify the functionality later one. JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:40 AM Subject: bean:write boolean hi i have a arraylist of bean with boolean attributs and i want to render a image (or another string than true) when it's true and another image when it's false : logic:iterate id=permissionbean name=permissionsList tr tdbean:write name=permissionbean property=user.group//td tdbean:write name=permissionbean property=user.name//td tdbean:write name=permissionbean property=read//td tdbean:write name=permissionbean property=write//td !-- it render true or false but i want to render writeable or not writeable -- /tr /logic:iterate - 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: mapped properties
I may be having a brain fart, but what is a mapped property? sandeep --- Nathan Coast [EMAIL PROTECTED] wrote: Hi, is it possible to use mapped properties for populating properties within forms? If yes, does anyone have an example snip of jsp demonstrating how to use mapped properties. thanks Nathan - 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]
JAAS Struts JBoss + Tomcat
Hi, I am trying to integrate the JAAS into my Struts application running on JBoss 3.0.7 + Tomcat. I am a newbie here, and I would appreciate your help on several questions: 1. From what I read here, I saw that I should probably use the FORM auth method, and that this page should not use any of the Struts tags. Is that right? 2. In my application, the first thing a user does is passing a registration wizard. How can I set different set of permissions using the web.xml to the registration wizard pages and to the rest of the application, where both are handled by the struts ActionServlet servlet? 3. Regarding more to JBoss + Tomcat, I don't understand what happens when a web client accesses a protected page. Does JBossSX which implements the authentication takes over and perform the authentication? After the authentication is done, does my Struts action can invoke EJB methods freely or should they authenticate as well? Thanks in advance, -- Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bean:write boolean
http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html Start with this link .. if you run into any problems you can msg me. :) JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 10:16 AM Subject: Re: bean:write boolean thanks ... i still have some question : how do you use your tag after that ? i just have a class but i suppose i have to write its description in a tld file or something like that. do you have good links talking about writing own tags ? what about parameters ? and tag content ? Jamie M. Guillemette a écrit : I dont have a nice simple tag handy to send.. but here is what you should look up Look up the object BodyTagSupport. you will want to probably extend this one to make your tag. To build the tag there are multiple methods that get involed at different points of the tag processing. their names are pretty straight forward. doBeforeBody(); doAfterBody(); ect.. you have access to a request object.. so if you need to read a struts from value.. just use it to pull the object out of the request or session memmory. ( if you have never done this manually its pretty easy the string name of the object is exactly the same as its class name) JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:51 AM Subject: Re: bean:write boolean okay ... i've never write tags can you give me a small example ? Jamie M. Guillemette a écrit : I might suggest writting your own tag then to ouput the desired text. Tags are not difficult to write and you can make changes to it pretty easily if you need to modify the functionality later one. JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:40 AM Subject: bean:write boolean hi i have a arraylist of bean with boolean attributs and i want to render a image (or another string than true) when it's true and another image when it's false : logic:iterate id=permissionbean name=permissionsList tr tdbean:write name=permissionbean property=user.group//td tdbean:write name=permissionbean property=user.name//td tdbean:write name=permissionbean property=read//td tdbean:write name=permissionbean property=write//td !-- it render true or false but i want to render writeable or not writeable -- /tr /logic:iterate - 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: bean:write boolean
in french : 1000 merci :D Jamie M. Guillemette a écrit : http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html Start with this link .. if you run into any problems you can msg me. :) JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 10:16 AM Subject: Re: bean:write boolean thanks ... i still have some question : how do you use your tag after that ? i just have a class but i suppose i have to write its description in a tld file or something like that. do you have good links talking about writing own tags ? what about parameters ? and tag content ? Jamie M. Guillemette a écrit : I dont have a nice simple tag handy to send.. but here is what you should look up Look up the object BodyTagSupport. you will want to probably extend this one to make your tag. To build the tag there are multiple methods that get involed at different points of the tag processing. their names are pretty straight forward. doBeforeBody(); doAfterBody(); ect.. you have access to a request object.. so if you need to read a struts from value.. just use it to pull the object out of the request ornk session memmory. ( if you have never done this manually its pretty easy the string name of the object is exactly the same as its class name) JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:51 AM Subject: Re: bean:write boolean okay ... i've never write tags can you give me a small example ? Jamie M. Guillemette a écrit : I might suggest writting your own tag then to ouput the desired text. Tags are not difficult to write and you can make changes to it pretty easily if you need to modify the functionality later one. JMG - Original Message - From: SuniX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:40 AM Subject: bean:write boolean hi i have a arraylist of bean with boolean attributs and i want to render a image (or another string than true) when it's true and another image when it's false : logic:iterate id=permissionbean name=permissionsList tr tdbean:write name=permissionbean property=user.group//td tdbean:write name=permissionbean property=user.name//td tdbean:write name=permissionbean property=read//td tdbean:write name=permissionbean property=write//td !-- it render true or false but i want to render writeable or not writeable -- /tr /logic:iterate - 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: Is Action Instantiated Once?
The way to handle this kind of stuff is in the ActionForm. If you have standard actions, you can subclass ActionForm and have your forms subclass this new form. Edgar -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 8:42 PM To: 'Struts Users Mailing List'; 'Billy Ng' Subject: Re: Is Action Instantiated Once? On Thu, 3 Jul 2003, Billy Ng wrote: Date: Thu, 3 Jul 2003 18:21:53 -0700 From: Billy Ng [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], Billy Ng [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Is Action Instantiated Once? Hi folks, I have a address book page that has the previous and next buttons. I notice if 2 different users try to access the address books, last one who clicks on the button always get what it should display. This sounds very like they are both are using the same Action. The address book action extends a ActionBase that extends Strut's Action. Would anybody tell me if Strut will instantiates a new acton everytime it is called? No ... one instance only (just like servlets). Did I miss something on the configuration to make it thread dependent? You're probably using instance variables in the Action class to store things relevant only to a particular request. If so, use local variables or request/session scope attributes instead. Thanks! Billy Ng Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Webapp Security?
If you do go with filters and there is one other issue to consider. If you are using a combination web-server and container then filters are straight forward. If you are using your container as a web-server you have to structure your map to allow public area files (gif's, etc.) to pass through the filter. Edgar -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 2:11 PM To: 'Struts Users Mailing List' Subject: Re: Webapp Security? Ya I am thinking that creating our own security with the use of filters is the way to go. Filters is exactly what I was after but didn't know existed, instead I was trying to extend all the containers that Tomcat uses for resources, IE the JSP one, the one for everything else, and the struts container, and then having authentication built into each of their request methods. What we are after is having databases that contain permission to perform actions, permissions to see certain resources, and the capability to extend that to other things, IE which menu elements they can see on navigation pages etc. And we don't want to define groups that have selections of all of those, we want each individual user to be able to have different combinations of the above based on what permissions we want him to have. Stereotyping groups is to limited for what we want to do. So I think we'll probably use filters to accomplish this.. thoughts? -David - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 1:05 PM Subject: Re: Webapp Security? On Thu, 3 Jul 2003, David Erickson wrote: Date: Thu, 3 Jul 2003 12:37:56 -0600 From: David Erickson [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Webapp Security? Ok well lets suppose you want to protect 100% of your content, perhaps minus the login.jsp or what not page. For container managed security, a /* pattern is how you'd specify this -- the container knows that the login page should not be included in that (although I suspect various Tomcat 3.x versions had problems with this). We just spent a couple hours brainstorming how to protect our webapp. We want flexibility above and beyond what container security provides, so we want to use our own mechanisms pulling permissions from a database etc. So we we have had two veins of thought. 1) Creating some kind of struts action that handles all incoming requests, where the web.xml maps /* to struts and it handles it, by using the wildcard extension to map everything minus actions to a certain struts action, that can perform authentication for that resource, if permissions match ship it on, otherwise forward to an error. 2) Create a servlet that runs within tomcat that takes all requests, performs authentication, then ships it to either struts for actions or wherever else for resources. We only want to use tomcat4, not apache or anything.. these seem to us to be the only ways to get a good flexible handle on what people request and see. #1 would be something we would rather use because it requires only one running servlet which would be struts, whereas #2 would need 2 servlets. One of the keys to container managed security is that you need to be able to express your authorization decisions (what can the user do) in terms of roles. A role can be as coarse-grained or fine-grained as you want, and many users can be assigned the same role. Generally, the set of roles owned by a user is statically determined by the container at login time, but that is not mandated by the spec -- it's perfectly legal for a container to implement a role (for example) that is assigned if it is now 8am-5pm on a weedkay, but not other times, to allow access to a particular resource only during working hours. The second key to effective use of container managed security is that you can express access control decisions to particular URLs (or URL patterns) in terms of an AND test between roles. If you cannot do this; perhaps because there are factors besides roles innvolved in the decision, you might want to think about rolling your own security -- in that scenario, a filter is probably your best bet. Within Tomcat itself, there are several avenues to customizing the behavior of container managed security, but they are all Tomcat specific: * You can define your own Valve (the internal-to-Tomcat equivalent to a Filter), and cause it to be run either before or after the Valve that actually implements container managed security. Valves have read/write access to the request object, so they can do pretty
RE: [FRIDAY] YA Ted's Trivia Contest
Martin Fowler? -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:24 AM To: [EMAIL PROTECTED] Subject: [FRIDAY] YA Ted's Trivia Contest Since it's independence day here in the States, and we all went to the ball game last night, I'll lob one over the fence: This is a homily which I call [blank]'s Golden Rule: Eliminate duplication, eliminate dependency Who's [blank]? A signed copy of Struts in Action to the first lucky subscriber to email to [EMAIL PROTECTED] the correct answer [being whichever answer I expect :0)]. -Ted. -- Ted Husted, Struts in Action http://husted.com/struts/book.html - 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]
RES: [FRIDAY] YA Ted's Trivia Contest
Kent Back, Test Driven Development? Julio -Mensagem original- De: Ted Husted [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 4 de julho de 2003 10:24 Para: [EMAIL PROTECTED] Assunto: [FRIDAY] YA Ted's Trivia Contest Since it's independence day here in the States, and we all went to the ball game last night, I'll lob one over the fence: This is a homily which I call [blank]'s Golden Rule: Eliminate duplication, eliminate dependency Who's [blank]? A signed copy of Struts in Action to the first lucky subscriber to email to [EMAIL PROTECTED] the correct answer [being whichever answer I expect :0)]. -Ted. -- Ted Husted, Struts in Action http://husted.com/struts/book.html - 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: 4th Of July Struts Challenge...
The answer for the first part is here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg71256.html specifically the part where it talks about nested tags works. The logic:iterate I couldn't get to work and I haven't set up the el stuff, but that would probably work. All you need in the form is the Object getMap(String key) and setMap(key,object) next thing to try is the dynaform, but I've never used one before... sandeep --- Rick Reumann [EMAIL PROTECTED] wrote: Ok stupid subject line, but now I can get back to something I was curious about that I posted around a week ago. I'm really curious how to do accomplish this and yes have tried it a bunch of different ways... Here's the challenge First challenge is just with a regular ActionForm... 1) Your ActionForm has to have a property of type Map. For this adventure call it employeesMap. 2) Each map will hold for the key and employeeID ( String ssn - social security number whatever). The value will be an EmployeeBean. For testing sake just have it have two properties String name, String age. 3) Put two employees into the Map and put this Map into your ActionForm: HashMap empMap = new HashMap(); empMap.put( , new EmployeeBean(John Doe, 33 ) ); empMap.put( , new EmployeeBean(Loser Boy, 22 ) ); setEmployeesMap( empMap ); 4) Now have a jsp form iterate over this Map and provide text fields to edit the name and age of each employee. When the form is submitted there should be a way that it will submit this Map with updated EmployeeBeans with the new names and ages for each key ( and ). Pull the map out of the action you submit to and print the properties of the EmployeeBeans to test. Second challenge... is do the above using your employeesMap as a property of a DynaActionForm. Preferably use JSTL and/or struts-el also would be nice. (First one to successfully complete this challenge will win 100 dollars for each person that they forward this e-mail to, as Microsoft will be monitoring all the e-mails as well. That kid doing this project for his science fair project to see how far e-mails travel will also be involved, so please reply to him. The 100 dollars will come from that African tribe leader with that money he is just dying to give away if you just contact him. Some of the money might come from the stolen tourist kidney sales in Mexico, but I'm not positive of that). -- Rick - 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: [FRIDAY] YA Ted's Trivia Contest
David Parnas? *** TH Since it's independence day here in the States, and we all went to the TH ball game last night, I'll lob one over the fence: TH This is a homily which I call [blank]'s Golden Rule: TH Eliminate duplication, eliminate dependency TH Who's [blank]? TH A signed copy of Struts in Action to the first lucky subscriber to email TH to [EMAIL PROTECTED] the correct answer [being whichever answer I expect TH :0)]. TH -Ted. 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: How do struts manage this
First, thanks for the second reply, because we changed our mail-server and misconfigured it. So we lost a lot of mails. After reading and debugging for a while. I still don't understand it. If a dump the contents of the collection employees to stdout i see Employee:1, Employee:2, Employee:5, ..., Employee:8909 (the numbers are the emp_id). I also looked into the employees object with a debugger just after 'session.setAttribute(employees, employees);' into source of the struts action code. It gives me tesame result. I see nothing of the other properties. And still it works good. I see all my properties in my result web-page. What do you mean about LocalObject ? I've asked this question to our EJB guru , but he can't help me. So it's still black magic to me. Please help. Peter Konstadinis Euaggelos wrote: I have already reply once... 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.. - Original Message - From: Peter Bosmans [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 12:19 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 .
input type
Hi. When i'm trying to feed to the value property of a html: input tag something but String i get folloging error: [javac] /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/wire/wa/company_jsp.java:154: cannot resolve symbol [javac] symbol : method setValue (int) thought, as seen in struts-config_1_1.dtd form-property allows type attribute, thus, i can suppose that form inputs could be of any type. But how to deal with them in html: tags? wbr, eugen. -- , .. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ActionForm reset question?
I have a problem while try to populate JSP field with properties in ActionForm. I want to initialize some fields in that JSP form. I understand that I should put this stuff in reset() method. But one question is that I have to get the data through EJB. Is it also good to implement EJB logic in reset() method of ActionForm? I think ActionForm is only a JavaBean used to wrap the data. It should not have any business logic to access CMP. But how should I do to initialize a JSP page with data in database, which can only be accessed by CMP? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do struts manage this
If you have the source code you will find somewhere there is a class EmployeBean, EmployeeLocalHome, EmployeeLocal smt like that. The EmployBean class is mapped to employee table in your DB, so it has set/get for all the properties of your table. Collection employees = home.findAll(); This method gets all the employess(Object Emploeyees, LocalInterface/ LocalHomeInterface for the EJB Object ) from the database. Your ejb-guru must know this, The object Employee which is LocalInterface/ LocalHomeInterface is provided to client to do any data manipulation , this object has all the information of the table, it has set/get method for the properties of your table, Ask your EJB guru when you create an ENTITY BEAN, which interfaces do you get and what methods has each interface. Hope this helps. Vangos. - Original Message - From: Peter Bosmans [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 6:07 PM Subject: Re: How do struts manage this First, thanks for the second reply, because we changed our mail-server and misconfigured it. So we lost a lot of mails. After reading and debugging for a while. I still don't understand it. If a dump the contents of the collection employees to stdout i see Employee:1, Employee:2, Employee:5, ..., Employee:8909 (the numbers are the emp_id). I also looked into the employees object with a debugger just after 'session.setAttribute(employees, employees);' into source of the struts action code. It gives me tesame result. I see nothing of the other properties. And still it works good. I see all my properties in my result web-page. What do you mean about LocalObject ? I've asked this question to our EJB guru , but he can't help me. So it's still black magic to me. Please help. Peter Konstadinis Euaggelos wrote: I have already reply once... 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.. - Original Message - From: Peter Bosmans [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 12:19 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(); }
Re: Virtual [FRIDAY]
My right arm! Or in real terms, the number of shots above the actual number the course think a 0 handycap golfer can do it in. So each hole has the number of shots from tee to hole (5, 4 or 3), and them all up of rthe 18 holes (69-73 average) and your handy cap is the number more than this to do the course in. As simple as the English off-side rule in football/soccer really ;-) - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:27 PM Subject: RE: Virtual [FRIDAY] What's a handycap? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 5:03 AM To: [EMAIL PROTECTED] Subject: Re: Virtual [FRIDAY] No the answer is far simpler than that! Who knows an honest salesman? from:Simon Kelly [EMAIL PROTECTED] date:Fri, 04 Jul 2003 09:55:35 to: [EMAIL PROTECTED] subject: Re: Virtual [FRIDAY] I beleive with salemen, it's all down to the strength of their grip! Usually the grip on their managers privates, when discussing the places they will take clients to schmoos them. Harder the grip, the closer to Glen Eagles they get! ;-) - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:07 AM Subject: Re: Virtual [FRIDAY] On Fri, 4 Jul 2003, Simon Kelly wrote: Date: Fri, 4 Jul 2003 07:35:54 0200 From: Simon Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Virtual [FRIDAY] A 16 handycap, but I'll be trying to push that down to a 10 or less. Every developer I know that plays golf has a 15 handicap (including me). Every sales person I know that plays golf has a 10 handicap. Now tell me who actually works for a living? :-) Craig - 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] http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placemen t=home_multi.gifsite=amazon - 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]
[OT]I can no longer start TC from W2k from the
Hi All, I can no longer start TC from W2k from the Start Program Apache Tomcat 4.1 Start Tomcat using the parameters E:\j2sdk1.4.1_01\bin\java.exe -jar -Duser.dir=E:\Tomcat 4.1 E:\Tomcat 4.1\bin\bootstrap.jar start Tomcat start by opening a commandline window as usual, but this window vanishes after displaying the ff. on the screen : 04.07.2003 17:12:57 org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information 04.07.2003 17:12:57 org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance 04.07.2003 17:12:58 org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer 04.07.2003 17:12:59 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 04.07.2003 17:12:59 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1.18-LE-jdk14 I am using struts and running 2 Service on TC : one on port 8080 and the other on port 80. What could be the root course. I have looked into the logs folder, but I can find any log info. to show me what is missing. Tomcat starts both Service with no problem when I do start it in my ide. Any help will be much appreciated. Thanks. Bob.
Re: JAAS Struts JBoss + Tomcat
Erez Efrati wrote: Hi, I am trying to integrate the JAAS into my Struts application running on JBoss 3.0.7 + Tomcat. I am a newbie here, and I would appreciate your help on several questions: 1. From what I read here, I saw that I should probably use the FORM auth method, and that this page should not use any of the Struts tags. Is that right? It is best to use the FORM authentication because you can encrypt it with SSL - otherwise your users' passwords will go over the net in plain text. I haven't tried using struts tags in the login form. From what Craig said late yesterday about the login form (do a search on j_security), it is best to view it as totally seperate from your application - essentially part of the container. 2. In my application, the first thing a user does is passing a registration wizard. How can I set different set of permissions using the web.xml to the registration wizard pages and to the rest of the application, where both are handled by the struts ActionServlet servlet? You have action mappings for your app's modules, correct? Set up security constraint in web.xml to secure the different action mappings in different ways - i.e. wizard.do 3. Regarding more to JBoss + Tomcat, I don't understand what happens when a web client accesses a protected page. Does JBossSX which implements the authentication takes over and perform the authentication? After the authentication is done, does my Struts action can invoke EJB methods freely or should they authenticate as well? sorry don't know jboss. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]