How to get Multiple Rows Data in Struts
Hi all, (B (BI am having a JSP which contains 12 rows of editable fields. The each row (Bcontains same type of editable fields. (B (BNow, how shall i handle it in the Form Bean. Shall i create 12 different (Bfields for each row or can I use Array/List for that. (B (BWill struts set the fields in the Array Object of form bean automatically?? (B (BThanks in Advance. (BRegards, (Bsamit (B (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Ancient computing
I know I've come late to this thread - but my first was a couple of logarithmic potentiometers and a meter - analogue computing at it simplest - but it worked and provided the battery was not going flat remarkably accurate - at least as good as the slide rules we all had at that time. - eh! what where did I put my hearing aid... db -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 23:38 To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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]
Populating hidden fields from an iterator
I'm trying to get struts to generate rows of data with an edit button beside (Beach row. When that edit button is pressed, the record it references will be (Bloaded into an edit screen. (B (BThe record is referenced by its ID value, which I want to put into a hidden (Bfield. (B (BI tried doing the following, but it simply places the literal *element.id" as (Bthe value of the hidden property rather than the value I thought it would (Breference. (B (B (Btable (Btr (BthID/th (B/tr (Btr (BthData/th (B/tr (Blogic:iterate id="element" name="testForm" property="testData" (Btr (Btd (Bbean:write name="element" property="id"/ (B/td (Btd (Bbean:write name="element" property="data"/ (B/td (Btd (Bhtml:form action="do_view_test_data.do" name="testForm" (Btype="com.somewhere.TestForm" (Bhtml:hidden property="currentId" value="element.id"/ (Bhtml:submit value="Edit"/ (B/html:form (B/td (B/tr (B/logic:iterate (B/table (B (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
Re: help with populating a select box from a bean
Take a look at html:options. I think that's what you're looking for. Regards Jose bobd wrote: The following code successfully iterates over an array coursetitles stored in bean reference courseCatalog. logic:iterate id=element name=courseCatalog property=coursetitles scope=session bean:write name=element/ /logic:iterate I'm now trying to populate a select box and it looks like logic:iterate is not going to work to create html:option elements. What is the best way to do this? thanks, -bob __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Design question
If I understood your domain there is a page where user can choose a formation: once choosen the formation, the control should be forwarded to another page where, together with data binded with the formation, user would have the possibility to add new info. Is that correct? In this case, there could be a tricky to avoid session scope savings: once the user chooses the formation(i.e. he/she submit the form), your action could ask to a business component(a service class, an EJB, whatever) to fill in a JavaBean with the relevant information related to the formation. The next JSP page shown to the user could take advantage from the Struts tags to get info from the Bean and display these info to the user, together with the new info the user can add to the formation. Two advantages would come from this approach: - first, you would avoid to save lots of info in the session scope, which we know if resource's consuming; - second, you would fulfill the MVC contract, letting the business domain to take care of getting and setting data in the relevant objects, and letting the view just to access the filled data presenting those to the user My 2 cents. -Original Message- From: alexj [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:29 PM To: Struts Users Mailing List Subject: Re: Design question I got a little question how can I manage that case : In my project I need to add activities to a formation an user select into a view page. I need to forward the selected formation to an other view page where this page need to contain specific populated datas (like branch) from the previously selected formation and then I can fill the new activity according the branch a formation have. What I'm thinking is to save in the session scope all the datas in relation with formations (but didn't show all in the first view) and then add a link to be able to forward to a specific formation page. But I'm really not sure if it's a good way. (I'm not sure if I'm clear enough to). Thanks for you advice. -- Alexandre Jaquet - 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]: What is vim?
Real Men program with punch cards! Using an old rust knitting needle!?! What is a VDU anyway??? - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:14 PM Subject: RE: [OT]: What is vim? Oh, quit yer whining http://www.ee.ryerson.ca:8080/~elf/hack/realmen.html -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 4:00 PM To: Struts Users Mailing List Subject: Re: [OT]: What is vim? On Mon, 3 Mar 2003 14:56:45 -0500 Mark Galbreath [EMAIL PROTECTED] wrote: And any non-dot-completion editor refines your sense of the API because it forces you to RTFM. Ok, I see the whole vi/emacs/IDE wars starting up:) Sure in the beginning a newbie should learn to use a basic text editor and an API, but I can GUARANTEE you I can set a bunch of methods in large bean that a team member created using dot-completion faster than you can if you have to look up all the methods in the java doc (which often times isn't created until late in the project cycle). Don't get me wrong I love learning vi and the only IDE I pretty much use now is jEdit, although I do use the dot completion when coding in Java. Looking up to find out whether the set method is setPhoneNumber or or setPhone is a heck of a lost faster with dot completion than having to check out another windows and find the name of the method and then type it all out. I really don't understand why people are against dot completion. A true newbie still would have to RTFM to find out what method to call for many things so dot completion doesn't even come into play there. You can simply code faster with dot completion. -- Rick Reumann - 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: Accepting arrays as values in mapped-backed ActionForms
Ok, I've had time to look over your notes. I may be missing some pieces to the puzzle here. If I understand you correctly, you've got a bean (searchBean) that has a List of Story beans, each with id and title. You have a formbean (submitToGroupForm) that returns a Map of Groups (getExistingGroups) keyed off of the id from an iteration of the first bean (searchBean). Is this correct so far? Which bean is the form associated with this action? (I am assuming submitToGroupForm) Why do you iterate over the formbean, then iterate over a field on that bean? Can you post more details on what you are wanting to accomplish here? -- James Mitchell Web Developer/Struts Evangelist http://jakarta.apache.org/struts/ People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard (1813-1855) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:38 PM To: 'Struts Users Mailing List' Subject: RE: Accepting arrays as values in mapped-backed ActionForms John, sorry for not getting back sooner. I've been in meetings since lunch. I'll see what I can work up tonight. -- James Mitchell Web Developer/Struts Evangelist http://jakarta.apache.org/struts/ People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard (1813-1855) -Original Message- From: John Devine [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 2:41 PM To: 'Struts Users Mailing List' Subject: RE: Accepting arrays as values in mapped-backed ActionForms Sure I'd love to see an example! But like I said, I ended up using the scriptlets for iteration because within the iteration of storyList I call a tile like so: td tile:insert page=/WEB-INF/tilestemplates/storyDetailwithBlurb.jsp tile:put name=story beanName=story / tile:put name=counter beanName=counter / /tile:insert /td and I couldn't get the tile to be called properly when it was within an logic:iterate tag. (and I haven't boned up on the nested tags enough to be comfortable with them yet). If you have an example of naming the property of the multibox to accept a set of options for each story in the iteration, that's where my real problem lies right now. The way I have it now works fine for html:text and single parameter inputs, but I can't get it to work for multiple parameter inputs. Thanks, John -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:28 PM To: 'Struts Users Mailing List' Subject: RE: Accepting arrays as values in mapped-backed ActionForms You can accomplish all of this with tags and elimate your scriptlets. I have something close to that, let me know if you want an example. -- James Mitchell Web Developer/Struts Evangelist http://jakarta.apache.org/struts/ People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard (1813-1855) -Original Message- From: John Devine [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:52 PM To: 'Struts Users Mailing List' Subject: RE: Accepting arrays as values in mapped-backed ActionForms Hello Struts community! No one's picked up on this thread and I just wonder whether it's a stupid or unclear question or whether it's just not of interest. If the question's been answered before, could someone let me know and I'll go back to searching lists. I didn't find any answers earlier. Basically what I'm trying to is set up a form that will contain a Map of String arrays. At this point, when Struts populates the Map, it assumes the map elements will be plain strings. Does anyone know of a way to tell it that the members of the map should be populated as arrays (because multiple request parameters will have the same name). Thanks in advance for any response, John Devine -Original Message- From: John Devine [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 5:10 PM To: [EMAIL PROTECTED] Subject: Accepting arrays as values in mapped-backed ActionForms Does anyone know how to specify that the value of the HashMap in a mapped-backed ActionForm should be an array of Strings rather than just a single String? I'm having a problem in trying to set up a page of several rows of indexed multi-boxes: I have a regular action form that includes: public Map existingGroups = new HashMap(); public Map getExistingGroups(){ return existingGroups; } public void setExistingGroups(Map map){ this.existingGroups = map; } On my JSP, I include several different
Re: [OT] Ancient computing
I can go one better! When I was a kid, my dad took me to the company he was installing a system for and they had a room with a *valve* computer!!! It had plug boards and everything *sniff sniff* and they let me have a play before they ripped it out. All those cables... Then, when I was working for Rolls Royce, we got to program the lathes using punch cards! Bloody marvelous!! Hours of mindless tedium and bordom! I WANT MY YOUTH BACK - Original Message - From: Ray Madigan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 12:37 AM Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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]
Localisation
I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Strutscx-user] Passing strutscx the location of an xml resource.
Very helpful as always Berny, Thank-you. The XML in question is a reusable list of db connections, that I need to read in as a sort of resource (except that it doesn't fit with the name= set up) so I think the JXPath solution would be the one for this. And just another little question, for the dynamically created data (that will be transformed for the end-user client side) is it the StrutsCXConstants.XML_KEY in the request where I should put this? Kind Regards, Simon - Original Message - From: Bernhard Woehrlin [EMAIL PROTECTED] To: Simon Kelly [EMAIL PROTECTED]; Strutscx User [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 12:11 PM Subject: AW: [Strutscx-user] Passing strutscx the location of an xml resource. Hi Simon, the XML file which fits to the XLS stylesheets in the strutscx-config.xml gets generated dynamically. Therefore it's not asigned anywhere. Another question is, how do you persist your data: In a database, or as EJB, or as simple flat XML files. If you go for flat XML files (like the StrutsCX prototype application does), you do have a couple of choices to read in or maniupulate these files. The sample application therefore uses Castor XML. Check the InfoCastoDAO and you'll find a hard coded String pointing to the destination Castor should save theses XML files. - Feel free to replace this String and add it to the strutscx-config.xml. You can add there any XML element you think makes sense for you. Later you could access this data i.e. with JXPath( - like the Actions of the sample application do to learn where the XSL are located). Hope this is of some help... Berny -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Simon Kelly Gesendet: Mittwoch, 5. März 2003 11:43 An: Strutscx User Betreff: [Strutscx-user] Passing strutscx the location of an xml resource. Hi, Just a quicky. Which file would I put the resource location pointer to an xml file? IE similar to the definition name=home.html4.intro !-- a unique name -- !--put/WEB-INF/xsl/html4/info_intro.xsl/put-- put/WEB-INF/xsl/html4/info_intro.xsl/put /definition in strutscx-config. Regards Simon Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Strutscx-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/strutscx-user - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
store an entry from application.resources...
into a variable. Hi @ all, how can i store an entry from application.resources ( message resource bundle ) into a variable to pass it to x:transform as a parameter in my jsp. if there is any other approach please tell me. if i use this x:param name=myparam1 value='bean:message . /'/ i get an error. i need this: x:transform xml=${myxml} xslt=${myxslt} x:param name=myparam1 value=[value from message resource bundle1]/ x:param name=myparam2 value=[value from message resource bundle2]/ x:param name=myparam3 value=[value from message resource bundle3]/ /x:transform thx in advance mit freundlichen Grüßen Georg XL. Mouratidis Web Application Developer Heiler|Software AG Mittlerer Pfad 9 D-70499 Stuttgart Tel: 0711-139 84-265 Fax: 0711-866 63 01 Email: [EMAIL PROTECTED] Connecting Buyer and Supplier http://www.heiler.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localisation
You could set a group of forwards up, based on the locale ie forward name=this_en path=/jsp_pages/out_en-jsp redirect=true/ forward name=this_de path=/jsp_pages/out_de-jsp redirect=true/ forward name=this_ko path=/jsp_pages/out_ko-jsp redirect=true/ within action/ And you can then dynamically create the name from the selected action by the client. Or, better still, you could create a generic jsp, which calls all text by tagged resources, and have a collection of resources for that page with all the differing languages in. Allowing for easier updating of the page and page content. I use xslt, so I can't give you a jsp example, but there are some examples of this in Programming Jakata Strus and a few on the web. Cheers Simon - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:11 PM Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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]
REPOST - Using tiles mappings in global forwards
If the forward attribute of the action element can take both an actual path or a tiles definition to forward to, shouldn't the global forwards element have similar functionality? In Chuck Cavaness's book (Programming Jakarta Struts), he attempts to do this on page 347. I just can't get it to work. Is this perhaps functionality which is now broken? Joshua I have successfully set up tiles using a tiles-def.xml file. In this file, I have set up a definition for my.default. I have been successfully able to view this layout by inserting the following code into a jsp: %@ taglib uri=struts-html prefix=html% %@ taglib uri=struts-bean prefix=bean% %@ taglib uri=struts-tiles prefix=tiles% tiles:insert definition=my.default/ Again, this works fine. I have been attempting to declare a global forward mapping for the same layout: global-forwards forward name=welcome path=my.default redirect=false/ /global-forwards I have inserted the following code into a jsp file to test the forwards: %@ taglib uri=struts-logic prefix=logic% logic:forward name=welcome/ When I hit the page containing this code, Tomcat gives me a 404 (The requested resource (/myapp/my.default) is not available.). Whats happening here? Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localisation
ok simon.. thanks one more question, what happens to text entry fields tat havent been submited if the user clicks to alter his locale.. when the page is loaded his entries will be lost.. how can i stop this? Simon Kelly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You could set a group of forwards up, based on the locale ie forward name=this_en path=/jsp_pages/out_en-jsp redirect=true/ forward name=this_de path=/jsp_pages/out_de-jsp redirect=true/ forward name=this_ko path=/jsp_pages/out_ko-jsp redirect=true/ within action/ And you can then dynamically create the name from the selected action by the client. Or, better still, you could create a generic jsp, which calls all text by tagged resources, and have a collection of resources for that page with all the differing languages in. Allowing for easier updating of the page and page content. I use xslt, so I can't give you a jsp example, but there are some examples of this in Programming Jakata Strus and a few on the web. Cheers Simon - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:11 PM Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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: REPOST - Using tiles mappings in global forwards
global-forwards forward name=welcome path=my.default redirect=false/ /global-forwards I have inserted the following code into a jsp file to test the forwards: %@ taglib uri=struts-logic prefix=logic% logic:forward name=welcome/ Try changing the path to /WEB-INF/pages/my.default or similar. It may be that the mappings pointer to where your my.default resides is not right, so have a check on those as well. Cheers Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TILES - Network Traffic...
Hi Puneet, Sorry for the delay in responding - I've been away for a few days. What you describe is similar to what we did in a web application about 12 months ago - but that was using SPAN... to display/hide the page contents - so in fact all tabs were loaded first and then just displayed when needed. This was using a bit of javascript on the client - the most difficult part was rebuilding the tabs on the client browser - to visibly highlight the page being displayed. This was done by building a HTML string in script and assigning the contents of the string to the innerHTML of a DIV... I guess it may be possible to check if the IFrame has been loaded (i.e. src has been populated) and if not set the src property and set visibility to visible (after setting the non-selected tabs' visibility to hidden). This would allow re-displaying already downloaded tab's contents and downloading on-the-fly new tabs. Already downloaded IFrames would be rendered but hidden. This may work very nicely indeed. H. -Original Message- From: Puneet Agarwal [mailto:[EMAIL PROTECTED] Sent: 03 March 2003 20:11 To: Struts Users Mailing List Subject: Re: TILES - Network Traffic... Hue, That's exactly what I am looking at to be able to use both TILES and IFRAMES. Especially for TAB's, I want to achieve the following : My page has two tabs, when the page loads up, it shows the fist tab and has not brought the information about second tab, but when use clicks on the second tab, information about the second tab comes from the server side, now after this if user goes back to tab 1, it should not go to server side. I am looking as to how can I achieve this using both TILES and IFRAMES, to avoid the network round-trip. I understand that this may not be possible by using TILES only. Thanks for your views Cheers Puneet - Original Message - From: Hue Holleran [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED]; 'Puneet Agarwal' [EMAIL PROTECTED] Sent: Monday, March 03, 2003 6:22 PM Subject: RE: TILES - Network Traffic... Please don't flame - I'm not trying to start a tiles vs frames debate. If bandwidth is absolutely critical then you may want to consider (shock! horror!) frames or use inline IFrames. Tiles is great but will produce a bit of extra output over frames as it will generally be used to render the entire page, header, body, menu footer etc. Images should be cached by the browser, as will other add-in files if you use references to external .js files etc. I think it will be unlikely that you could save much bandwidth by using frames but you may be able to reduce the bandwidth a little - if you really, really have to - but this will be offset by the (significantly?) increased difficulty of managing and developing with frames, particularly. Personally I do not favour frames. Tiles makes it much, much easier to manage layouts but is analagous to a jsp:include (but oh so much more powerful - see link in Cedric's email for earlier thread) so will not, in itself save bandwidth. You can still use IFrames with tiles and this combination can be great for say a menu that needs to flick between a few options - I guess you could use javascript to dynamically update the reference in an IFrame and this will save bandwidth. H. -Original Message- From: Puneet Agarwal [mailto:[EMAIL PROTECTED] Sent: 03 March 2003 16:45 To: Struts Users Mailing List Subject: TILES - Network Traffic... I am quite new to TILES and have a query abt the way it renders HTML pages. Does it embed the javaScript code into the HTML page itself or it has generic JavaScript Library files, and includes them using a JavaScript include directive in HTML for JavaScript file, so that it could be cached at client side and lead to smaller payload on network front. If not is there any other advantage of using TILES. For our project network traffic is the biggest concern, the decision to use TILES greatly depend on the above. Your view shall help us greatly. Cheers Puneet - 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: Localisation
- Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:38 PM Subject: Re: Localisation ok simon.. thanks one more question, what happens to text entry fields tat havent been submited if the user clicks to alter his locale.. when the page is loaded his entries will be lost.. how can i stop this? Good question. Something I have not come up against yet. But what you could do is have the language buttons go via an action class that will rebuild the page for the new language, which means that the entered info will still be in the request in the formBean you are filling (could cause problems if the bean is validated, as *I think* that the validation will occur when the new request for language change happens. You'll have to check this out), you then just extract it and repopulate the page with this aswell as the change of language. Off the top of my head I wouldn't know how to code this, but when the good old US wakes up I expect help will be plentyfull ;-) Cheers Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localisation
You could set a group of forwards up, based on the locale ie forward name=this_en path=/jsp_pages/out_en-jsp redirect=true/ forward name=this_de path=/jsp_pages/out_de-jsp redirect=true/ forward name=this_ko path=/jsp_pages/out_ko-jsp redirect=true/ within action/ Does this mean that someone has to implement a different .jsp for each language? I need to implement something similar and I'm not sure that I understand the answer. Don't you use the bean:message to display text in different languages? I'm I missing something here? James what is exactly the solution you are going to follow? Cheers Simon Thank you in advance Konstantina - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:11 PM Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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]
Urgent, TilesRequestProcessor
Hi, i've a problem with TilesRequestProcessor; i insert in my struts-config.xml the definition of my classes: controller processorClass=struts.requestP / and requestP extends TilesRequestProcessor (i don't understand whi if i use tiles plug-in i don't exstend RequestProcessor..) in this class i overload the processPreprocess and processForwardConfig methods, now if i call an jsp page this processor dont't work (i use System.out for see if it work..), it's work if i use TilesAction...whi? example of my page: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert definition=base flush=true controllerUrl=/til.do / and in my struts-config.xml: action type=struts.tilesA path=/til forward name=success path=mainLayout/ /action in my tiles-defs.xml: definition name=base path=/tilesLayout/baseLayout.jsp put name=page value=baseEstesa / put name=title value=prova.titolo / put name=header value=/tilesLayout/header.jsp / put name=body value=/tilesLayout/body.jsp / put name=menuI value=/tilesLayout/menuI.jsp / put name=footer value=/tilesLayout/footer.jsp / /definition in this case i use an TilesAction and i see the System.out from my processor(my processor work),but if i don't use the TilesAction: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert definition=base flush=true / the processor don't work...whi? Thanks, Alessio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Nesting logic:iterate
Hi all, is it possible to nest iterate-tags with Struts 1.1? I have an ArrayList rows which contains ArrayLists. I tried this in a JSP: logic:iterate id=row name=rows logic:iterate id=field name=row bean:write name=field/ /logic:iterate /logic:iterate But I always get an error, saying _jspx_field_1 is already defined in the JSP. Is there something wrong with my code or isn't this possible? TIA Heiko -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Localisation
So... if they click on say , the flag for Belgium, what language will they get? -Original Message- From: James [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 March 2003 03:12 To: [EMAIL PROTECTED] Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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: Nesting logic:iterate
I have used the following: logic:iterate id=subscription name=provider property=subscriptions logic:iterate id=product name=subscription property=products /logic:iterate /logic:iterate and it works find. You have to give in each case the property that will get the collection on which the iteration will occur. Konstantina - Original Message - From: Heiko Jürgens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 2:00 PM Subject: Nesting logic:iterate Hi all, is it possible to nest iterate-tags with Struts 1.1? I have an ArrayList rows which contains ArrayLists. I tried this in a JSP: logic:iterate id=row name=rows logic:iterate id=field name=row bean:write name=field/ /logic:iterate /logic:iterate But I always get an error, saying _jspx_field_1 is already defined in the JSP. Is there something wrong with my code or isn't this possible? TIA Heiko -- - 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: help with populating a select box from a bean
I generally populate a collection of LabelValue beans and put them in the form or some scope and use optionsCollection tag. For example if I had a collection of LabelValue beans and named it categoryOptions and my form property was category, then the following would be the syntax to render the select box. html:select property=category html:optionsCollection property=categoryOptions label=label value=value/ /html:select HTH, robert -Original Message- From: bobd [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 2:43 AM To: [EMAIL PROTECTED] Subject: help with populating a select box from a bean The following code successfully iterates over an array coursetitles stored in bean reference courseCatalog. logic:iterate id=element name=courseCatalog property=coursetitles scope=session bean:write name=element/ /logic:iterate I'm now trying to populate a select box and it looks like logic:iterate is not going to work to create html:option elements. What is the best way to do this? thanks, -bob __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localisation
flemish.. if they want french they click on the french flag Andrew Hill [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So... if they click on say , the flag for Belgium, what language will they get? -Original Message- From: James [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 March 2003 03:12 To: [EMAIL PROTECTED] Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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: Localisation
i'm not sure at the moment our current ' work around' is to only display the flags on the 'home' page which can be accessed via the menu. This way no data entry is lost.. but i would prefer a way of doing it from any page and returning to the same page, preferably with no data entry loss (or validation).. Konstantina Stamopoulou [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You could set a group of forwards up, based on the locale ie forward name=this_en path=/jsp_pages/out_en-jsp redirect=true/ forward name=this_de path=/jsp_pages/out_de-jsp redirect=true/ forward name=this_ko path=/jsp_pages/out_ko-jsp redirect=true/ within action/ Does this mean that someone has to implement a different .jsp for each language? I need to implement something similar and I'm not sure that I understand the answer. Don't you use the bean:message to display text in different languages? I'm I missing something here? James what is exactly the solution you are going to follow? Cheers Simon Thank you in advance Konstantina - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:11 PM Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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
Title: Untitled Document I'm new to struts. How can I put my Messages in DB and use Message-Resource to bring it from DB every time I need it in the Application? Thanks, Yaakov (Koby) Dabush 1301 Shoreway Road, Suite 302, Belmont, CA 94002Tel: +1.650.632.0101 Fax: +1.650.802.6709Arie et Ofer Building, Omarim 9, 84965 Omer, ISRAELTel: +972.8.646.6350, Fax: +972.8.646.6354http://www.entopia.com
Extra bytes at the end of the class file
I received a javax.servlet.ServletException: Extra bytes at the end of the class file when trying to get an instance of a singleton class (someclass.getInstance()). What does this mean? Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localisation
I had a similar situation which I resolved the following way: LocalActionClass sets the locale to whatever comes in the language parameter from the LocaleForm if it supports so you have multiple ApplicationResources files for each of the languages you'd like to support. Then it forwards the request back to the view it came from. Now the trick here was that I wanted to describe this action only once in struts-config.xml !-- Locale Action from Device Confirmation View-- action path=/locale type=LocaleAction name=localeForm scope=request /action and I defined all the pages where the user can change the locale as global forwards global-forwards forward name=home path=/index.vm/ forward name=rv path=/registrationView.vm/ forward name=cv path=/confirmationView.vm/ /global-forwards so your link to change a locale from index.vm would be a href=/exp/locale.action?view=homelanguage=spanishimg src=images/spanish.jpg border=0/a and from registrationView.vm a href=/exp/interface.action?view=rvlanguage=spanishimg src=images/spanish.jpg border=0/a locale form has two parameters: view and language. Since I use global forwards instead of real view names, my user never sees them. Cheers, Ivan - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 2:11 PM Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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: Localisation
Ivan.. that is exactly what im looking for... cheers fella.. my only quetion is if the view is a data entry screen, and they have entered data.. when the view is returned to the entered data is lost.. is there a way round this. We thought about subclassing ActionClass and adding code to the execute method to check if the post was from the locale link or a 'proper' post.. then all Actions could subclass this. This would allow us to populate the form with any entered data and hopefully avoid the headache of having to re-enter everything. does this sound feasible?? Ivan N. Zhidov [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I had a similar situation which I resolved the following way: LocalActionClass sets the locale to whatever comes in the language parameter from the LocaleForm if it supports so you have multiple ApplicationResources files for each of the languages you'd like to support. Then it forwards the request back to the view it came from. Now the trick here was that I wanted to describe this action only once in struts-config.xml !-- Locale Action from Device Confirmation View-- action path=/locale type=LocaleAction name=localeForm scope=request /action and I defined all the pages where the user can change the locale as global forwards global-forwards forward name=home path=/index.vm/ forward name=rv path=/registrationView.vm/ forward name=cv path=/confirmationView.vm/ /global-forwards so your link to change a locale from index.vm would be a href=/exp/locale.action?view=homelanguage=spanishimg src=images/spanish.jpg border=0/a and from registrationView.vm a href=/exp/interface.action?view=rvlanguage=spanishimg src=images/spanish.jpg border=0/a locale form has two parameters: view and language. Since I use global forwards instead of real view names, my user never sees them. Cheers, Ivan - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 2:11 PM Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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: Nesting logic:iterate
I tried it that way but I still get the same error ... I have used the following: logic:iterate id=subscription name=provider property=subscriptions logic:iterate id=product name=subscription property=products /logic:iterate /logic:iterate and it works find. You have to give in each case the property that will get the collection on which the iteration will occur. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question
Koby, There is a package out there developed by James Mitchell called DBMessageResurces or something like thate. I believe that it use to be able to be downloaded from www.open-tools.org/struts-atlanta/downloads. Todd From: Koby Dabush [EMAIL PROTECTED] Date: 2003/03/05 Wed AM 08:01:09 EST To: [EMAIL PROTECTED] Subject: question I'm new to struts. How can I put my Messages in DB and use Message-Resource to bring it from DB every time I need it in the Application? Thanks, Yaakov (Koby) Dabush 1301 Shoreway Road, Suite 302, Belmont, CA 94002 Tel: +1.650.632.0101 Fax: +1.650.802.6709 Arie et Ofer Building, Omarim 9, 84965 Omer, ISRAEL Tel: +972.8.646.6350, Fax: +972.8.646.6354 http://www.entopia.com http://www.entopia.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question
This link does not work. I need something very simple instead of putting my messages in ApplicationResources file I just want to put it inside the DB (Oracle) Help Please... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:20 PM To: Struts Users Mailing List Subject: Re: question Koby, There is a package out there developed by James Mitchell called DBMessageResurces or something like thate. I believe that it use to be able to be downloaded from www.open-tools.org/struts-atlanta/downloads. Todd From: Koby Dabush [EMAIL PROTECTED] Date: 2003/03/05 Wed AM 08:01:09 EST To: [EMAIL PROTECTED] Subject: question I'm new to struts. How can I put my Messages in DB and use Message-Resource to bring it from DB every time I need it in the Application? Thanks, Yaakov (Koby) Dabush 1301 Shoreway Road, Suite 302, Belmont, CA 94002 Tel: +1.650.632.0101 Fax: +1.650.802.6709 Arie et Ofer Building, Omarim 9, 84965 Omer, ISRAEL Tel: +972.8.646.6350, Fax: +972.8.646.6354 http://www.entopia.com http://www.entopia.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where can I find Example
Hi, I'm new Where can I find exampleS of struts Application (other than struts-example) ? Thanks Disclaimer: This electronic transmission and any files attached to it are strictly confidential and intended solely for the addressee. If you are not the intended addressee, you must not disclose, copy or take any action in reliance of this transmission. If you have received this transmission in error, please notify the sender by return and delete the transmission. Although the sender endeavors to maintain a computer virus free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where can I find Example
http://sf.net/projects/struts -Original Message- From: Pellier, Marc [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 6:23 AM To: Struts Users Mailing List Subject: Where can I find Example Hi, I'm new Where can I find exampleS of struts Application (other than struts-example) ? Thanks ** ** Disclaimer: This electronic transmission and any files attached to it are strictly confidential and intended solely for the addressee. If you are not the intended addressee, you must not disclose, copy or take any action in reliance of this transmission. If you have received this transmission in error, please notify the sender by return and delete the transmission. Although the sender endeavors to maintain a computer virus free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Thank You. ** ** - 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: Nesting logic:iterate
Heiko, I _believe_ that field is a deprecated struts tag, so that word may give you problems. Try changing field to some other variable name, and give that a go. Hopefully, someone who is a better struts programmer than I am can comment on this later - it's still early in the US. =) -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu On Wed, 2003-03-05 at 07:00, Heiko Jürgens wrote: Hi all, is it possible to nest iterate-tags with Struts 1.1? I have an ArrayList rows which contains ArrayLists. I tried this in a JSP: logic:iterate id=row name=rows logic:iterate id=field name=row bean:write name=field/ /logic:iterate /logic:iterate But I always get an error, saying _jspx_field_1 is already defined in the JSP. Is there something wrong with my code or isn't this possible? TIA Heiko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Association between Session object and Cookies/URL rewriting
I don't understand very well how Struts manages session objects and why a sessionID is fixed for a user ? Session objects are stored on the web server (Tomcat in my case) and cookie saved on the disk allows to retrieve the HttpSession associated to a user. But I don't understand how the cookie is created and why is it associated to a client ? How Struts creates the session cookie ? I read that the cookie object is created when a user first loads a web page that is a part of the application. But at this stage what distinguishes a user X from a user Y ? In my application I distinguish two users with authentication information but when the first page is displayed the authentication is not done. How Struts know that it is a new user and that it has to create a new HtppSession and a new cookie? Is a user (and so a cookie) associated to a user NT account ? I am not certain to have been rather clear Thanks in advance for your help. Sandra --- As of February 12, 2003 Thomson unifies its email addresses on a worldwide basis.Please note my new email address: [EMAIL PROTECTED] Thomson is the leader in solutions and technologies for the entertainment and media industries and serves its customers under its four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. More about Thomson: http://www.thomson.net/videochain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localisation
I understand you wanting to keep the data across the locale change request though it's doubtful that it will be used much by an average user since they usually pick the language first and don't change it in the middle of filling out the form. When I was trying to figure out a way to do it, subclassing was one of the options but then I didn't want to make validation cumbersome because on locale change you'd have to skip validating other parameters so you'd have to check whether locale was changed in the validation logic pertinent to a particular form and somehow making (every) form aware of locale change didn't sit well with me for I think changing locale is a different aspect :) I'm still using Struts 1.0 so may be 1.1 has better mechanism to do that. Cheers, Ivan - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 4:15 PM Subject: Re: Localisation Ivan.. that is exactly what im looking for... cheers fella.. my only quetion is if the view is a data entry screen, and they have entered data.. when the view is returned to the entered data is lost.. is there a way round this. We thought about subclassing ActionClass and adding code to the execute method to check if the post was from the locale link or a 'proper' post.. then all Actions could subclass this. This would allow us to populate the form with any entered data and hopefully avoid the headache of having to re-enter everything. does this sound feasible?? Ivan N. Zhidov [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I had a similar situation which I resolved the following way: LocalActionClass sets the locale to whatever comes in the language parameter from the LocaleForm if it supports so you have multiple ApplicationResources files for each of the languages you'd like to support. Then it forwards the request back to the view it came from. Now the trick here was that I wanted to describe this action only once in struts-config.xml !-- Locale Action from Device Confirmation View-- action path=/locale type=LocaleAction name=localeForm scope=request /action and I defined all the pages where the user can change the locale as global forwards global-forwards forward name=home path=/index.vm/ forward name=rv path=/registrationView.vm/ forward name=cv path=/confirmationView.vm/ /global-forwards so your link to change a locale from index.vm would be a href=/exp/locale.action?view=homelanguage=spanishimg src=images/spanish.jpg border=0/a and from registrationView.vm a href=/exp/interface.action?view=rvlanguage=spanishimg src=images/spanish.jpg border=0/a locale form has two parameters: view and language. Since I use global forwards instead of real view names, my user never sees them. Cheers, Ivan - Original Message - From: James [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 2:11 PM Subject: Localisation I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - 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: Where can I find Example
Marc, http://jakarta.apache.org/struts/resources/examples.html It's also generally a good idea to search the archives before posting a question on a list - this question has been asked several times. A good search archive is: http://marc.theaimsgroup.com/?l=struts-userr=1w=2 Best of luck, -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu On Wed, 2003-03-05 at 08:22, Pellier, Marc wrote: Hi, I'm new Where can I find exampleS of struts Application (other than struts-example) ? Thanks Disclaimer: This electronic transmission and any files attached to it are strictly confidential and intended solely for the addressee. If you are not the intended addressee, you must not disclose, copy or take any action in reliance of this transmission. If you have received this transmission in error, please notify the sender by return and delete the transmission. Although the sender endeavors to maintain a computer virus free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Thank You. - 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] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data)
You know it was! The ZX81 was the first machine I owned. The first machinesI used were a ZX80 and an Acorn Atom at our school computer club. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 8:53 PM To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) Wossit a ZX81 perchance? -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2003 05:34 To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) My first two computers didn't even have floppy drives ... 300 baud tape and 1024 bytes of memory! -Original Message- From: James Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:28 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Gladly only I had you figured as an old guy! Simon Programmed in RPG/400 once and now regret it Chappell Well, I'm old to the computer industry, but only a year with Struts... James Has punched cards for OS/VS1 on an IBM/360 Turner - 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: Association between Session object and Cookies/URL rewriting
Struts doesn't create coockies, J2EE servlet container does (tomcat). When you use request.getSession() in your code, J2EE server will a coockie (or a request parameter if URL rewriting is used, see your server config) to get the session ID. If no ID is set, it will generate a new session ID and add a set-coockie HTTP header in response. New request from user browser will come to the server with a SESSIONID coockie header, and request.getSession() implementation will be able to find the session object from ID. Read J2EE or Tomcat documentation to get more infos on sessions (sessionid coockie, URL rewriting ...). Nico. I don't understand very well how Struts manages session objects and why a sessionID is fixed for a user ? Session objects are stored on the web server (Tomcat in my case) and cookie saved on the disk allows to retrieve the HttpSession associated to a user. But I don't understand how the cookie is created and why is it associated to a client ? How Struts creates the session cookie ? I read that the cookie object is created when a user first loads a web page that is a part of the application. But at this stage what distinguishes a user X from a user Y ? In my application I distinguish two users with authentication information but when the first page is displayed the authentication is not done. How Struts know that it is a new user and that it has to create a new HtppSession and a new cookie? Is a user (and so a cookie) associated to a user NT account ? I am not certain to have been rather clear Thanks in advance for your help. Sandra --- As of February 12, 2003 Thomson unifies its email addresses on a worldwide basis.Please note my new email address: [EMAIL PROTECTED] Thomson is the leader in solutions and technologies for the entertainment and media industries and serves its customers under its four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. More about Thomson: http://www.thomson.net/videochain - 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: Extra bytes at the end of the class file
Joshua, Try recompiling the class - I've heard that this can happen when the JVM and compiler are different, especially if the compiler is old. -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu On Wed, 2003-03-05 at 08:03, White, Joshua A (CASD, IT) wrote: I received a javax.servlet.ServletException: Extra bytes at the end of the class file when trying to get an instance of a singleton class (someclass.getInstance()). What does this mean? Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - 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]
Wrapping Collections in LazyList to auto-populate form onSubmit
From the BananaBean example, I put the following in a nested:form nested:iterate property=bananas nested:text property=flavour/ /nested:iterate and get this exception: java.lang.IllegalArgumentException: Property 'bananas' is not indexed In the form I construct the bananas list using private List bananas = ListUtils.lazyList(new ArrayList(), new Factory() { public Object create() { return new BananaBean(); } }); In the display action I populate the list using bananas.add
Re: Wrapping Collections in LazyList to auto-populate form onSubmit
Use Collection instead than List (a list is not indexed) -- Alexandre Jaquet - Original Message - From: William Salvucci [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 2:58 PM Subject: Wrapping Collections in LazyList to auto-populate form onSubmit From the BananaBean example, I put the following in a nested:form nested:iterate property=bananas nested:text property=flavour/ /nested:iterate and get this exception: java.lang.IllegalArgumentException: Property 'bananas' is not indexed In the form I construct the bananas list using private List bananas = ListUtils.lazyList(new ArrayList(), new Factory() { public Object create() { return new BananaBean(); } }); In the display action I populate the list using bananas.add - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with FormFile.getInputStream()
I am using a file tag to upload a file and that seems to be working fine. I then want to email that file as an attachment and that is where I start to run into trouble. I am then trying to make a MimeBodyPart with the InputStream of the FormFile and the resulting file isn't complete. It is as if the first part of the file is lost. I have a Vector of FormFiles that I am working with: MimeBodyPart[] attachments = new MimeBodyPart[form.getAttachments().size()]; for(int i=0;iform.getAttachments().size();i++) { FormFile file = (FormFile)form.getAttachments().elementAt(i); //printing out the size and first charcter of the io stream from the FormFile log.debug(size of formfile=+file.getFileSize()); log.debug(start formfile=+file.getInputStream().read()); attachments[i] = new MimeBodyPart(file.getInputStream()); attachments[i].setFileName(file.getFileName()); attachments[i].setDisposition(MimeBodyPart.ATTACHMENT); //printing out the size and first charcter of the io stream from the BodyPart log.debug(size of body part=+attachments[i].getSize()); log.debug(start of body part=+attachments[i].getInputStream().read()); } The resulting MimeBodyPart appears to be only a portion of the original file, and the logging produced supports this. size of formfile=1914 start formfile=84 size of body part=1717 start of body part=67 I am at a loose at to what I am doing wrong... any assistance would be appreciated. Thanks, Eva
Re: Problems with FormFile.getInputStream()
Hi try that : //Message MimeMessage mensaje = new MimeMessage(session); mensaje.setFrom(new InternetAddress(from)); InternetAddress[] address = {new InternetAddress(TO)};//where TO is an email address mensaje.setRecipients(Message.RecipientType.TO, address); mensaje.setSubject(subject); mensaje.setSentDate(new Date()); if (attach.length()!=0) { // Text MimeBodyPart text = new MimeBodyPart(); Text.setText(Body); MimeBodyPart Bin = new MimeBodyPart(); DataSource mySource = new FileDataSource (attach); //Binary Bin.setDataHandler(new DataHandler(mySource)); Bin.setFileName(attach); // Join and Seending MimeMultipart multiple = new MimeMultipart(); multiple.addBodyPart(Text); multiple.addBodyPart(Bin); mensaje.setContent(multiple); -- Alexandre Jaquet - Original Message - From: Eva Sager [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:21 PM Subject: Problems with FormFile.getInputStream() I am using a file tag to upload a file and that seems to be working fine. I then want to email that file as an attachment and that is where I start to run into trouble. I am then trying to make a MimeBodyPart with the InputStream of the FormFile and the resulting file isn't complete. It is as if the first part of the file is lost. I have a Vector of FormFiles that I am working with: MimeBodyPart[] attachments = new MimeBodyPart[form.getAttachments().size()]; for(int i=0;iform.getAttachments().size();i++) { FormFile file = (FormFile)form.getAttachments().elementAt(i); //printing out the size and first charcter of the io stream from the FormFile log.debug(size of formfile=+file.getFileSize()); log.debug(start formfile=+file.getInputStream().read()); attachments[i] = new MimeBodyPart(file.getInputStream()); attachments[i].setFileName(file.getFileName()); attachments[i].setDisposition(MimeBodyPart.ATTACHMENT); //printing out the size and first charcter of the io stream from the BodyPart log.debug(size of body part=+attachments[i].getSize()); log.debug(start of body part=+attachments[i].getInputStream().read()); } The resulting MimeBodyPart appears to be only a portion of the original file, and the logging produced supports this. size of formfile=1914 start formfile=84 size of body part=1717 start of body part=67 I am at a loose at to what I am doing wrong... any assistance would be appreciated. Thanks, Eva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where can I find Example
This link has examples from the Oreilly book. http://examples.oreilly.com/jakarta/ --- Pellier, Marc [EMAIL PROTECTED] wrote: Hi, I'm new Where can I find exampleS of struts Application (other than struts-example) ? Thanks Disclaimer: This electronic transmission and any files attached to it are strictly confidential and intended solely for the addressee. If you are not the intended addressee, you must not disclose, copy or take any action in reliance of this transmission. If you have received this transmission in error, please notify the sender by return and delete the transmission. Although the sender endeavors to maintain a computer virus free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Java method size limitations
This is FYI - it was an issue that came up when someone (not me!) had an 8500 line Java source file. He got a code too large for try statement exception during compilation, which puzzled even some long term Java programmers. Apparently, there is an upper limit of 64K (compiled) on java methods. (see http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#154) The Java method bytecode code length is defined as an int (32-bit), but exception start/end blocks are defined by shorts (16-bit). This limits the method length to 2^16=64K. Hopefully, noone on this list will ever write a class that large, but in case you ever run across this.. -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with FormFile.getInputStream()
nop it's didn't will solve your trouble... - Original Message - From: alexj [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:27 PM Subject: Re: Problems with FormFile.getInputStream() Hi try that : //Message MimeMessage mensaje = new MimeMessage(session); mensaje.setFrom(new InternetAddress(from)); InternetAddress[] address = {new InternetAddress(TO)};//where TO is an email address mensaje.setRecipients(Message.RecipientType.TO, address); mensaje.setSubject(subject); mensaje.setSentDate(new Date()); if (attach.length()!=0) { // Text MimeBodyPart text = new MimeBodyPart(); Text.setText(Body); MimeBodyPart Bin = new MimeBodyPart(); DataSource mySource = new FileDataSource (attach); //Binary Bin.setDataHandler(new DataHandler(mySource)); Bin.setFileName(attach); // Join and Seending MimeMultipart multiple = new MimeMultipart(); multiple.addBodyPart(Text); multiple.addBodyPart(Bin); mensaje.setContent(multiple); -- Alexandre Jaquet - Original Message - From: Eva Sager [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:21 PM Subject: Problems with FormFile.getInputStream() I am using a file tag to upload a file and that seems to be working fine. I then want to email that file as an attachment and that is where I start to run into trouble. I am then trying to make a MimeBodyPart with the InputStream of the FormFile and the resulting file isn't complete. It is as if the first part of the file is lost. I have a Vector of FormFiles that I am working with: MimeBodyPart[] attachments = new MimeBodyPart[form.getAttachments().size()]; for(int i=0;iform.getAttachments().size();i++) { FormFile file = (FormFile)form.getAttachments().elementAt(i); //printing out the size and first charcter of the io stream from the FormFile log.debug(size of formfile=+file.getFileSize()); log.debug(start formfile=+file.getInputStream().read()); attachments[i] = new MimeBodyPart(file.getInputStream()); attachments[i].setFileName(file.getFileName()); attachments[i].setDisposition(MimeBodyPart.ATTACHMENT); //printing out the size and first charcter of the io stream from the BodyPart log.debug(size of body part=+attachments[i].getSize()); log.debug(start of body part=+attachments[i].getInputStream().read()); } The resulting MimeBodyPart appears to be only a portion of the original file, and the logging produced supports this. size of formfile=1914 start formfile=84 size of body part=1717 start of body part=67 I am at a loose at to what I am doing wrong... any assistance would be appreciated. Thanks, Eva - 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] Java method size limitations
loool -- Alexandre Jaquet - Original Message - From: Becky Norum [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:28 PM Subject: [OT] Java method size limitations This is FYI - it was an issue that came up when someone (not me!) had an 8500 line Java source file. He got a code too large for try statement exception during compilation, which puzzled even some long term Java programmers. Apparently, there is an upper limit of 64K (compiled) on java methods. (see http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#15 4) The Java method bytecode code length is defined as an int (32-bit), but exception start/end blocks are defined by shorts (16-bit). This limits the method length to 2^16=64K. Hopefully, noone on this list will ever write a class that large, but in case you ever run across this.. -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu - 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] Ancient computing
My guess is early 70sbecause my first experience was also in high school using an old IBM System ?? with 64k memory.It took up a complete room.You saved your program by not dropping the punch cards. If your program didn't have any compile errors, it would be 20 minutes executing until the output came out on the printer ! -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:38 PM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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: question
Koby Dabush wrote: I'm new to struts. How can I put my Messages in DB and use Message-Resource to bring it from DB every time I need it in the Application? Create a new class which extends ResourceBundle and takes the data from DB. Read the java.util.ResourceBundle docs. Hth, Tib Ps: Pls choose more descriptive subject, thx. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Extra bytes at the end of the class file
Becky, I am using Tomcat jakarta-tomcat-4.1.18 with jdk 1.3.1_07 on win xp. If I drop the war into the webapps directory all is fine as well. The problem only seems to happen after using the custom Tomcat install/deploy tasks. Anyone have similar problems? After deploying using the install/deploy ant tasks, the application runs fine with the exception of this one class file. Joshua -Original Message- From: Becky Norum [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:54 AM To: Struts Users Mailing List Subject: Re: Extra bytes at the end of the class file Joshua, Try recompiling the class - I've heard that this can happen when the JVM and compiler are different, especially if the compiler is old. -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu On Wed, 2003-03-05 at 08:03, White, Joshua A (CASD, IT) wrote: I received a javax.servlet.ServletException: Extra bytes at the end of the class file when trying to get an instance of a singleton class (someclass.getInstance()). What does this mean? Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - 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: Nesting logic:iterate
Hi all, is it possible to nest iterate-tags with Struts 1.1? Hi, Heiko: I've had luck with patterns similar to what others have suggested, but if you have plain lists or vectors inside lists or vectors.. a better route to go is to try logic:iterate id=row name=bean property=myproperty logic:iterate id=element collection=%= row % do something w/ element /logic:iterate /logic:iterate I don't happen to have my examples handy (I'm still at home :), but hope you get the idea. As another person suggested if you have the inner element defined as a bean property on the object bound to row.. then you can use name/property as well. The scoping gotchas of struts are plenty -- this is one of them that I stumble across often :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Monkey examples
Hi! I'm a newbie, trying to get a taste of struts. I'm using Tomcat 3, and I've put all the struts libraries and jars in the apps folder, so that all the apps have access to them. The struts applications (documentation, templates, etc) seem to be working fine. However, I've downloaded the monkey examples and deployed them, but I cannot use them :(. I'm getting Cannot find ActionMappings or ActionFormBeans collection. I've read that this error is due to problems in the struts-config.xml, but I haven't changed any of them, I've checked the xml tags and they all seem fine to me. Is there something else that might be causing this error? Thanks, Margarita. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Java method size limitations
This came up before in relation to tomcat's jsp compiler generating large methods. I believe they now break up methods into smaller pieces to avoid the limitation. Regardless, I can't think of any good reason to have an 8500 line class! David From: Becky Norum [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [OT] Java method size limitations Date: 05 Mar 2003 09:28:14 -0500 This is FYI - it was an issue that came up when someone (not me!) had an 8500 line Java source file. He got a code too large for try statement exception during compilation, which puzzled even some long term Java programmers. Apparently, there is an upper limit of 64K (compiled) on java methods. (see http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#154) The Java method bytecode code length is defined as an int (32-bit), but exception start/end blocks are defined by shorts (16-bit). This limits the method length to 2^16=64K. Hopefully, noone on this list will ever write a class that large, but in case you ever run across this.. -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wrapping Collections in LazyList to auto-populate form onSubmit
That's wierd. I use the LazyList all the time and do not run in to that problem. Did you try using jstl to see if the problem is perhaps somewhere else. You will need to import the jstl core taglib and the struts html-el tag libs. c:forEach items=requestScope.[you form name].bananas var=bannana varStatus=status html:text property=bannans[${status.index}].flavour/ /c:forEach Have Fun, Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: alexj [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 7:05 AM To: Struts Users Mailing List Subject: Re: Wrapping Collections in LazyList to auto-populate form onSubmit Use Collection instead than List (a list is not indexed) -- Alexandre Jaquet - Original Message - From: William Salvucci [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 2:58 PM Subject: Wrapping Collections in LazyList to auto-populate form onSubmit From the BananaBean example, I put the following in a nested:form nested:iterate property=bananas nested:text property=flavour/ /nested:iterate and get this exception: java.lang.IllegalArgumentException: Property 'bananas' is not indexed In the form I construct the bananas list using private List bananas = ListUtils.lazyList(new ArrayList(), new Factory() { public Object create() { return new BananaBean(); } }); In the display action I populate the list using bananas.add - 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] Java method size limitations
-Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:43 AM To: [EMAIL PROTECTED] Subject: Re: [OT] Java method size limitations This came up before in relation to tomcat's jsp compiler generating large methods. I believe they now break up methods into smaller pieces to avoid the limitation. Regardless, I can't think of any good reason to have an 8500 line class! First off, Tomcat has indeed fixed this problem. Jasper now translates custom tag calls into private methods, instead of just inlining them in the _jspService method. But some servlet containers (*cough*Dynamo*cough*) throw *everything* in the _jspService method. So you could have a really tight, well designed page -- no scriplets, all tags, tiled, etc. -- and, if you have a lot of tags or other hidden code, it will still blow up because of the way the container performs it's JSP -- .java translation. And you won't know it until runtime. This is really frustrating when you encounter it on supposedly enterprise level containers. If it's really enterprise level, you'd think they'd have less of a brain dead translation engine. In any case, I remember looking over the list of items for Java 1.5 and the upper limit on jumps was something that was being addressed. -= J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nesting logic:iterate
Hi Sundar, I tried it both ways, but I _always_ get a Jsp compile error, saying that _jspx_xxx_1 is already defined, where xxx stands for the id-attribute (e.g. element) of the inner logic:iterate ! I've had luck with patterns similar to what others have suggested, but if you have plain lists or vectors inside lists or vectors.. a better route to go is to try logic:iterate id=row name=bean property=myproperty logic:iterate id=element collection=%= row % do something w/ element /logic:iterate /logic:iterate I don't happen to have my examples handy (I'm still at home :), but hope you get the idea. As another person suggested if you have the inner element defined as a bean property on the object bound to row.. then you can use name/property as well. The scoping gotchas of struts are plenty -- this is one of them that I stumble across often :) -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wrapping Collections in LazyList to auto-populate form onSubmit
It's not a good conception that an List can be indexed (an Collection to) that's suck... an ArrayList ok but not a simple List... (a simple List don't use an array as the internal structure) but for an iterator it's song ok. But that's my opinion Java data structure are really strange. -- Alexandre Jaquet - Original Message - From: Brandon Goodin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:50 PM Subject: RE: Wrapping Collections in LazyList to auto-populate form onSubmit That's wierd. I use the LazyList all the time and do not run in to that problem. Did you try using jstl to see if the problem is perhaps somewhere else. You will need to import the jstl core taglib and the struts html-el tag libs. c:forEach items=requestScope.[you form name].bananas var=bannana varStatus=status html:text property=bannans[${status.index}].flavour/ /c:forEach Have Fun, Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: alexj [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 7:05 AM To: Struts Users Mailing List Subject: Re: Wrapping Collections in LazyList to auto-populate form onSubmit Use Collection instead than List (a list is not indexed) -- Alexandre Jaquet - Original Message - From: William Salvucci [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 2:58 PM Subject: Wrapping Collections in LazyList to auto-populate form onSubmit From the BananaBean example, I put the following in a nested:form nested:iterate property=bananas nested:text property=flavour/ /nested:iterate and get this exception: java.lang.IllegalArgumentException: Property 'bananas' is not indexed In the form I construct the bananas list using private List bananas = ListUtils.lazyList(new ArrayList(), new Factory() { public Object create() { return new BananaBean(); } }); In the display action I populate the list using bananas.add - 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]
JavaScript: resouces not rendering
I have a piece of code such as: html:form... ... input type=image ... src=1.gif onMouseOver=this.src='2.gif' ... /html:form I want to externalize all the images on my application like: ...src=bean:message key=app.img.1/ onMouseOver=this.src='bean:message key=app.img.2'/... The first resource will render, but any tag inside onMouseOver or the like, won't. I've come across a couple of solutions: 1. Declare the tag as a JSP variable and call it inside the JS. 2. Change the struts form tag to a normal HTML tag. The problem is that they both seem like hacks, and I was wondering what is the 'proper' way to do it. Thanks in advance, DX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] JMS
I apologized for the off-topic question, is there a mailing-list for Java Messaging Service that anyone knows about, I'm trying to find some answers to some question I have about that technology. Your help is much appreciated. Thanks. -Gus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaScript: resouces not rendering
Looks like you are not using quotes properly. Make sure ' is closed with ' and with . David From: Darkgoyle [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: JavaScript: resouces not rendering Date: Wed, 5 Mar 2003 10:07:16 -0500 I have a piece of code such as: html:form... ... input type=image ... src=1.gif onMouseOver=this.src='2.gif' ... /html:form I want to externalize all the images on my application like: ...src=bean:message key=app.img.1/ onMouseOver=this.src='bean:message key=app.img.2'/... The first resource will render, but any tag inside onMouseOver or the like, won't. I've come across a couple of solutions: 1. Declare the tag as a JSP variable and call it inside the JS. 2. Change the struts form tag to a normal HTML tag. The problem is that they both seem like hacks, and I was wondering what is the 'proper' way to do it. Thanks in advance, DX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JMS
http://forum.java.sun.com/forum.jsp?forum=29 From: Gus Delgado [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [OT] JMS Date: Wed, 05 Mar 2003 10:06:56 -0500 I apologized for the off-topic question, is there a mailing-list for Java Messaging Service that anyone knows about, I'm trying to find some answers to some question I have about that technology. Your help is much appreciated. Thanks. -Gus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question
I'm sorry, but that link doesn't work right now. I can send you what I have. It is a copy of the struts-example modified to pull the MessageResources from a database. It uses OJB under the covers, but you could easily change it to whatever you want. If you are interested in it, I can send you the project as a zip. -- James Mitchell Web Developer/Struts Evangelist http://jakarta.apache.org/struts/ People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard (1813-1855) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:20 AM To: Struts Users Mailing List Subject: Re: question Koby, There is a package out there developed by James Mitchell called DBMessageResurces or something like thate. I believe that it use to be able to be downloaded from www.open-tools.org/struts-atlanta/downloads. Todd From: Koby Dabush [EMAIL PROTECTED] Date: 2003/03/05 Wed AM 08:01:09 EST To: [EMAIL PROTECTED] Subject: question I'm new to struts. How can I put my Messages in DB and use Message-Resource to bring it from DB every time I need it in the Application? Thanks, Yaakov (Koby) Dabush 1301 Shoreway Road, Suite 302, Belmont, CA 94002 Tel: +1.650.632.0101 Fax: +1.650.802.6709 Arie et Ofer Building, Omarim 9, 84965 Omer, ISRAEL Tel: +972.8.646.6350, Fax: +972.8.646.6354 http://www.entopia.com http://www.entopia.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nesting logic:iterate
Try using the method I suggested in this message: http://marc.theaimsgroup.com/?l=struts-userm=104575299502257w=2 At 03:53 PM 3/5/2003 +0100, you wrote: Hi Sundar, I tried it both ways, but I _always_ get a Jsp compile error, saying that _jspx_xxx_1 is already defined, where xxx stands for the id-attribute (e.g. element) of the inner logic:iterate ! I've had luck with patterns similar to what others have suggested, but if you have plain lists or vectors inside lists or vectors.. a better route to go is to try logic:iterate id=row name=bean property=myproperty logic:iterate id=element collection=%= row % do something w/ element /logic:iterate /logic:iterate I don't happen to have my examples handy (I'm still at home :), but hope you get the idea. As another person suggested if you have the inner element defined as a bean property on the object bound to row.. then you can use name/property as well. The scoping gotchas of struts are plenty -- this is one of them that I stumble across often :) -- - 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] JMS
JMS-INTEREST (http://swjscmail1.java.sun.com/) Joe -Original Message- From: Gus Delgado [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 10:07 AM To: Struts Users Mailing List Subject: [OT] JMS I apologized for the off-topic question, is there a mailing-list for Java Messaging Service that anyone knows about, I'm trying to find some answers to some question I have about that technology. Your help is much appreciated. Thanks. -Gus - 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: question
I'm very interested on it, can you send it to me please?? -Message d'origine- De : James Mitchell [mailto:[EMAIL PROTECTED] Envoyé : Wednesday, March 05, 2003 4:20 PM À : 'Struts Users Mailing List' Objet : RE: question I'm sorry, but that link doesn't work right now. I can send you what I have. It is a copy of the struts-example modified to pull the MessageResources from a database. It uses OJB under the covers, but you could easily change it to whatever you want. If you are interested in it, I can send you the project as a zip. -- James Mitchell Web Developer/Struts Evangelist http://jakarta.apache.org/struts/ People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard (1813-1855) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:20 AM To: Struts Users Mailing List Subject: Re: question Koby, There is a package out there developed by James Mitchell called DBMessageResurces or something like thate. I believe that it use to be able to be downloaded from www.open-tools.org/struts-atlanta/downloads. Todd From: Koby Dabush [EMAIL PROTECTED] Date: 2003/03/05 Wed AM 08:01:09 EST To: [EMAIL PROTECTED] Subject: question I'm new to struts. How can I put my Messages in DB and use Message-Resource to bring it from DB every time I need it in the Application? Thanks, Yaakov (Koby) Dabush 1301 Shoreway Road, Suite 302, Belmont, CA 94002 Tel: +1.650.632.0101 Fax: +1.650.802.6709 Arie et Ofer Building, Omarim 9, 84965 Omer, ISRAEL Tel: +972.8.646.6350, Fax: +972.8.646.6354 http://www.entopia.com http://www.entopia.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] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data)
my ZX81 had a 16k RAM pack. -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: 05 March 2003 13:45 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) You know it was! The ZX81 was the first machine I owned. The first machinesI used were a ZX80 and an Acorn Atom at our school computer club. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 8:53 PM To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) Wossit a ZX81 perchance? -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2003 05:34 To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) My first two computers didn't even have floppy drives ... 300 baud tape and 1024 bytes of memory! -Original Message- From: James Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:28 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Gladly only I had you figured as an old guy! Simon Programmed in RPG/400 once and now regret it Chappell Well, I'm old to the computer industry, but only a year with Struts... James Has punched cards for OS/VS1 on an IBM/360 Turner - 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] ** CONFIDENTIALITY / DISCLAIMER NOTICE This communication contains information, which is confidential and may also be privileged. It is for the exclusive use of the recipient(s). If you are not the intended recipient(s) please note that any distortion, copying or use of this communication or the information in it is strictly prohibited. Any views or opinions presented are solely those of the author and do not necessarily represent those of Euro RSCG Wnek Gosper. If you have received this communication in error please notify us by e-mailing the author or by telephoning (020 7240 4111) and then delete the communication and any copies of it. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. http://www.eurorscg.co.uk ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data)
It was six months before I got a RAMPACK. -Original Message- From: Sean Chambers [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 9:27 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) my ZX81 had a 16k RAM pack. -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: 05 March 2003 13:45 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) You know it was! The ZX81 was the first machine I owned. The first machinesI used were a ZX80 and an Acorn Atom at our school computer club. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 8:53 PM To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) Wossit a ZX81 perchance? -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2003 05:34 To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) My first two computers didn't even have floppy drives ... 300 baud tape and 1024 bytes of memory! -Original Message- From: James Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:28 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Gladly only I had you figured as an old guy! Simon Programmed in RPG/400 once and now regret it Chappell Well, I'm old to the computer industry, but only a year with Struts... James Has punched cards for OS/VS1 on an IBM/360 Turner - 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] *** *** CONFIDENTIALITY / DISCLAIMER NOTICE This communication contains information, which is confidential and may also be privileged. It is for the exclusive use of the recipient(s). If you are not the intended recipient(s) please note that any distortion, copying or use of this communication or the information in it is strictly prohibited. Any views or opinions presented are solely those of the author and do not necessarily represent those of Euro RSCG Wnek Gosper. If you have received this communication in error please notify us by e-mailing the author or by telephoning (020 7240 4111) and then delete the communication and any copies of it. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. http://www.eurorscg.co.uk *** *** - 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: question
It's 3.6 Meg. Can/Will your mail server handle it? -- James Mitchell Web Developer/Struts Evangelist http://jakarta.apache.org/struts/ People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard (1813-1855) -Original Message- From: ALAMI Ahmed [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 10:32 AM To: Struts Users Mailing List Subject: RE: question I'm very interested on it, can you send it to me please?? -Message d'origine- De : James Mitchell [mailto:[EMAIL PROTECTED] Envoyé : Wednesday, March 05, 2003 4:20 PM À : 'Struts Users Mailing List' Objet : RE: question I'm sorry, but that link doesn't work right now. I can send you what I have. It is a copy of the struts-example modified to pull the MessageResources from a database. It uses OJB under the covers, but you could easily change it to whatever you want. If you are interested in it, I can send you the project as a zip. -- James Mitchell Web Developer/Struts Evangelist http://jakarta.apache.org/struts/ People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard (1813-1855) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:20 AM To: Struts Users Mailing List Subject: Re: question Koby, There is a package out there developed by James Mitchell called DBMessageResurces or something like thate. I believe that it use to be able to be downloaded from www.open-tools.org/struts-atlanta/downloads. Todd From: Koby Dabush [EMAIL PROTECTED] Date: 2003/03/05 Wed AM 08:01:09 EST To: [EMAIL PROTECTED] Subject: question I'm new to struts. How can I put my Messages in DB and use Message-Resource to bring it from DB every time I need it in the Application? Thanks, Yaakov (Koby) Dabush 1301 Shoreway Road, Suite 302, Belmont, CA 94002 Tel: +1.650.632.0101 Fax: +1.650.802.6709 Arie et Ofer Building, Omarim 9, 84965 Omer, ISRAEL Tel: +972.8.646.6350, Fax: +972.8.646.6354 http://www.entopia.com http://www.entopia.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]
problem with vaidation of numeric field
Hi, I have to validate a double field for input using struts validator, The problem is, in some places comma , is used instead of decimal . in double field, like 123.45 is same is 123,45 but in second case struts gives an error saying invalid double field, can i make the existing validation work (double)or will have to write my own validation for it Ashish = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nesting logic:iterate
Hi Andrew, works now! Thanks Try using the method I suggested in this message: http://marc.theaimsgroup.com/?l=struts-userm=104575299502257w=2 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with FormFile.getInputStream()
I tried it, with no success... I am not having any trouble creating the MimeMessage at all, that is all working fine, it is getting the FormFile into a MimeBodyPart that I am having trouble with. In my first attempt I tried to create the MimeBodyPart using the constructor that takes in an InputStream and use FormFile.getInputStream(). That works to some extent in that it does produce a MimebodyPart that I can add the MimeMessage, but it isn't the entire file I uploaded. It is like the first part of the file is lost in transition. When I tried to use the DataHandler as you suggest, it can't find the FormFile, which isn't actually a file after all, so I wasn't sure it would work. I tried to just pass the name of the FormFile in as a String (which I didn't think would work, but it was worth a try). It seems like I came really close the first time, but I must be missing something somewhere. The fact that the InputStream coming out of the FormFile is a different size than the InputStream coming out of the MimeBodyPart makes me think that I am doing something wrong. The file that ends up being attached is the correct file, it is just that the top portion of it is cut off... Thanks, -Original Message- From: alexj [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 9:31 AM To: Struts Users Mailing List Subject: Re: Problems with FormFile.getInputStream() nop it's didn't will solve your trouble... - Original Message - From: alexj [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:27 PM Subject: Re: Problems with FormFile.getInputStream() Hi try that : //Message MimeMessage mensaje = new MimeMessage(session); mensaje.setFrom(new InternetAddress(from)); InternetAddress[] address = {new InternetAddress(TO)};//where TO is an email address mensaje.setRecipients(Message.RecipientType.TO, address); mensaje.setSubject(subject); mensaje.setSentDate(new Date()); if (attach.length()!=0) { // Text MimeBodyPart text = new MimeBodyPart(); Text.setText(Body); MimeBodyPart Bin = new MimeBodyPart(); DataSource mySource = new FileDataSource (attach); //Binary Bin.setDataHandler(new DataHandler(mySource)); Bin.setFileName(attach); // Join and Seending MimeMultipart multiple = new MimeMultipart(); multiple.addBodyPart(Text); multiple.addBodyPart(Bin); mensaje.setContent(multiple); -- Alexandre Jaquet - Original Message - From: Eva Sager [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:21 PM Subject: Problems with FormFile.getInputStream() I am using a file tag to upload a file and that seems to be working fine. I then want to email that file as an attachment and that is where I start to run into trouble. I am then trying to make a MimeBodyPart with the InputStream of the FormFile and the resulting file isn't complete. It is as if the first part of the file is lost. I have a Vector of FormFiles that I am working with: MimeBodyPart[] attachments = new MimeBodyPart[form.getAttachments().size()]; for(int i=0;iform.getAttachments().size();i++) { FormFile file = (FormFile)form.getAttachments().elementAt(i); //printing out the size and first charcter of the io stream from the FormFile log.debug(size of formfile=+file.getFileSize()); log.debug(start formfile=+file.getInputStream().read()); attachments[i] = new MimeBodyPart(file.getInputStream()); attachments[i].setFileName(file.getFileName()); attachments[i].setDisposition(MimeBodyPart.ATTACHMENT); //printing out the size and first charcter of the io stream from the BodyPart log.debug(size of body part=+attachments[i].getSize()); log.debug(start of body part=+attachments[i].getInputStream().read()); } The resulting MimeBodyPart appears to be only a portion of the original file, and the logging produced supports this. size of formfile=1914 start formfile=84 size of body part=1717 start of body part=67 I am at a loose at to what I am doing wrong... any assistance would be appreciated. Thanks, Eva - 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,
Re: JavaScript: resouces not rendering
Well, actually that was my bad when typing the e-mail. It seems like tags within JS within another tag won't render, this is being seen repeatedly... DX - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 10:17 AM Subject: Re: JavaScript: resouces not rendering Looks like you are not using quotes properly. Make sure ' is closed with ' and with . David From: Darkgoyle [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: JavaScript: resouces not rendering Date: Wed, 5 Mar 2003 10:07:16 -0500 I have a piece of code such as: html:form... ... input type=image ... src=1.gif onMouseOver=this.src='2.gif' ... /html:form I want to externalize all the images on my application like: ...src=bean:message key=app.img.1/ onMouseOver=this.src='bean:message key=app.img.2'/... The first resource will render, but any tag inside onMouseOver or the like, won't. I've come across a couple of solutions: 1. Declare the tag as a JSP variable and call it inside the JS. 2. Change the struts form tag to a normal HTML tag. The problem is that they both seem like hacks, and I was wondering what is the 'proper' way to do it. Thanks in advance, DX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - 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: Relative link to top of page and Struts
For the more complex solution - I use the base tag: base href=http://%= request.getServerName()%:%= request.getServerPort()%%=request.getContextPath()%/ Which renders: base href=http://www.calandva.com:80/holmansite/; At the top of the page: html:link linkName=Top/ At the bottom: html:link page=/do/family/AutoForward?forward=family.pagedef anchor=TopTop/html:link Rendered anchor tag: a name=Top/a Rendered link tag: a href=/holmansite/do/family/AutoForward?forward=family.pagedef#TopTop/a URL on hover: http://www.calandva.com/holmansite/do/family/AutoForward?forward=family.page def#Top Cal http://www.calandva.com/Last update 01/26/03 -Original Message- From: Moyer, Alan L [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 15:10 To: [EMAIL PROTECTED] Subject: RE: Relative link to top of page and Struts I tried Wendy's suggestion - just used A HREF=#topJump to top of page/A I get the same behavior. Note: The page has struts tags for other, dynamic reasons. For example, html:base/ html:html html:form The browser doesn't seem to understand to just go to the top of the page. I confess I don't have a complete understanding of what the base tag is doing for me. It translates onto the HTML page as base href=http://localhost/Opal_Struts/admin/jsp/admin_formSelect.jsp; mousing over the link shows http://localhost/Opal_Struts/admin/jsp/admin_formSelect.jsp#top but the server is looking for the action mapping, as I indicated. Al -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:20 PM To: 'Struts Users Mailing List' Subject: RE: Relative link to top of page and Struts There seems to be some confusion on your page as to what the URL vs. the base tag is doing. There are a couple of potential gotchas with using relative links/anchors with or without the combined html:base tag. You are better off to go with Wendy's suggestion. (Keep it simple) -- James Mitchell Software Engineer/Struts Evangelist -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:06 PM To: 'Struts Users Mailing List' Subject: RE: Relative link to top of page and Struts Question: Using Struts, how can I get the browser to just link to the top of the page. I've done this successfully in the past using jsp pages without Struts. I just do use a plain old HTML A tag: A HREF=#topJump to top of page/A If there's nothing dynamic about it, and it's a link to the same page, then I don't see a reason to use a Struts tag. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Learn more about Paymentech's payment processing services at www.paymentech.com THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Ancient computing
Dang, I must be a youngster -- mine were a Zenith-Heath kit computer running CP/M and an Atari 400 with BASIC. -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 9:34 AM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing My guess is early 70sbecause my first experience was also in high school using an old IBM System ?? with 64k memory.It took up a complete room.You saved your program by not dropping the punch cards. If your program didn't have any compile errors, it would be 20 minutes executing until the output came out on the printer ! -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:38 PM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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] Ancient computing
ok so i am a kid. first computer - 386. -Original Message- From: Bueno Carlos M [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 10:46 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Ancient computing Dang, I must be a youngster -- mine were a Zenith-Heath kit computer running CP/M and an Atari 400 with BASIC. -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 9:34 AM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing My guess is early 70sbecause my first experience was also in high school using an old IBM System ?? with 64k memory.It took up a complete room.You saved your program by not dropping the punch cards. If your program didn't have any compile errors, it would be 20 minutes executing until the output came out on the printer ! -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:38 PM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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: Localisation
Don't know about other people, James, but you don't give me enough information. Why you would care what page they changed locale on is a mystery. But, I assume somehow that the flags are built into your layout, so they can change locale on any page or many pages. Why you would wnat to specify it to forward to the page they changed locale on in the struts-config.xml is also a mystery. But, why don't you do it with a changed_locale instead of a success or failure and so on? It would be relatively easy to include that functionality, where it belongs, in the logic passed on to the forward in the action for the form. If you wanted to get fancy, you could even use a registration/notification scheme in an event context. There are many, many ways to do this. Why do you want to do it hardcoded in the struts-config.xml? I cannot see why you would go that direction for a solution. Configuration is for configuration. This does not seem to be a configuration issue to me. Micael At 11:11 AM 3/5/03 -0800, you wrote: I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Ancient computing
Here in South Africa technology was in the same state in the late 70s and early 80s. Doing computer studies meant complete coding sheet this week next week receive punch cards and compile report if successfull compile you may even get an execution report. 8 programs took the whole year to complete. We actually went to visit the computer room half-way through our senior year as a class trip. By that time I already had a ZX Spectrum and was laughing my at this room ful of computer with not much more capability the my little spectrum. -Original Message- From: Pani, Gourav [mailto:[EMAIL PROTECTED] Sent: 05 March, 2003 17:47 To: 'Struts Users Mailing List' Subject: RE: [OT] Ancient computing ok so i am a kid. first computer - 386. -Original Message- From: Bueno Carlos M [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 10:46 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Ancient computing Dang, I must be a youngster -- mine were a Zenith-Heath kit computer running CP/M and an Atari 400 with BASIC. -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 9:34 AM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing My guess is early 70sbecause my first experience was also in high school using an old IBM System ?? with 64k memory.It took up a complete room.You saved your program by not dropping the punch cards. If your program didn't have any compile errors, it would be 20 minutes executing until the output came out on the printer ! -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:38 PM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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] __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Ancient computing
First family computer I remember: 8080 First that I used: Atari or Commodore64 with BASIC (hooked it to the TV, screen was blue with white letters [forboadings of M$??], eventually had a 5 1/4 disk drive) I'm young. I remember typing before writing. Bueno Carlos M wrote: Dang, I must be a youngster -- mine were a Zenith-Heath kit computer running CP/M and an Atari 400 with BASIC. -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 9:34 AM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing My guess is early 70sbecause my first experience was also in high school using an old IBM System ?? with 64k memory.It took up a complete room.You saved your program by not dropping the punch cards. If your program didn't have any compile errors, it would be 20 minutes executing until the output came out on the printer ! -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:38 PM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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] Ancient computing
my first experience was in high school too. She was blonde, had a great body and loved driving in my car so one nightoh, you mean first computing experience, that's not as good a story... the meek shall inherit the earth. that's meek not geek. -Original Message- From: Pani, Gourav [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 10:47 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Ancient computing ok so i am a kid. first computer - 386. -Original Message- From: Bueno Carlos M [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 10:46 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Ancient computing Dang, I must be a youngster -- mine were a Zenith-Heath kit computer running CP/M and an Atari 400 with BASIC. -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 9:34 AM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing My guess is early 70sbecause my first experience was also in high school using an old IBM System ?? with 64k memory.It took up a complete room.You saved your program by not dropping the punch cards. If your program didn't have any compile errors, it would be 20 minutes executing until the output came out on the printer ! -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:38 PM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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]
Using a TreeModel for Menu State - Best Practice to send statechanges via Struts
The TreeModel interface and DefaultTreeModel implementation of the JDK provide the necessary functionality to manage the state of a tree which will be managed in a set of database tables. We will be rendering the state of the tree in HTML. My question is how to build the HTML links to correctly communicate which link is clicked in Struts 1.1 RC1. I picture a single Action class, something like MenuAction that would then get a set of parameters indicating the node clicked and then delegate to the business object to update the TreeModel accordingly. Much of the documentation is about using ActionForms to pass information to the Struts Action. Without A Formbean how does one correctly use the action attribute of the html:link tag in struts 1.1? html:link action=/menu?menuID=20content_id=30Arts/html:link html:link action=/menu?menuID=10content_id=30English/html:link Tree could be something like: Arts Music Learning Experiences Theature Best Practices ELA Learning Experiences Best Practices !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META content=text/html; charset=iso-8859-1 http-equiv=Content-Type META content=MSHTML 5.00.3510.1100 name=GENERATOR/HEAD BODY style=FONT: 10pt Tahoma; MARGIN-LEFT: 2px; MARGIN-TOP: 2px DIVFONT face=Courier New size=3The TreeModel interface and DefaultTreeModel implementation of the JDK provide the necessarynbsp;functionality to manage the state of a tree which will be managed in a set of database tables.nbsp; We will be rendering the state of the tree in HTML.nbsp; My question is how to build the HTML links to correctly communicate which link is clicked in Struts 1.1 RC1.nbsp; Inbsp;picture a single Action class, something like MenuAction that would then get a set of parameters indicating the node clicked and then delegate to the business object to update the TreeModel accordingly.nbsp; Much of the documentation is about using ActionForms to pass information to the Struts Action.nbsp; Without A Formbean how does one correctly use the action attribute of the lt;html:linkgt; tag in struts 1.1?/FONT/DIV DIVnbsp;/DIV DIVFONT face=Courier New size=3lt;html:link action=/menu?menuID=20amp;content_id=30gt;Artslt;/html:linkgt;BRlt;html:link action=/menu?menuID=10amp;content_id=30gt;Englishlt;/html:linkgt;/FONT/DIV DIVnbsp;/DIV DIVFONT face=Courier New size=3Tree could be something like:/FONT/DIV DIVFONT face=Courier New size=3Arts/FONT/DIV DIVFONT face=Courier New size=3nbsp; Music/FONT/DIV DIVFONT face=Courier New size=3nbsp;nbsp;nbsp; Learning Experiences/FONT/DIV DIVFONT face=Courier New size=3nbsp; Theature/FONT/DIV DIVFONT face=Courier New size=3nbsp;nbsp;nbsp; Best Practices /FONT/DIV DIVFONT face=Courier New size=3ELA/FONT/DIV DIVFONT face=Courier New size=3nbsp; Learning Experiences/FONT/DIV DIVFONT face=Courier New size=3nbsp; Best Practices/FONT/DIV DIVnbsp;/DIV/BODY/HTML - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nesting logic:iterate
For adding nested:root name=city which tag lib do I have to add? yaron - Original Message - From: Andrew Shirk [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 5:25 PM Subject: Re: Nesting logic:iterate Try using the method I suggested in this message: http://marc.theaimsgroup.com/?l=struts-userm=104575299502257w=2 At 03:53 PM 3/5/2003 +0100, you wrote: Hi Sundar, I tried it both ways, but I _always_ get a Jsp compile error, saying that _jspx_xxx_1 is already defined, where xxx stands for the id-attribute (e.g. element) of the inner logic:iterate ! I've had luck with patterns similar to what others have suggested, but if you have plain lists or vectors inside lists or vectors.. a better route to go is to try logic:iterate id=row name=bean property=myproperty logic:iterate id=element collection=%= row % do something w/ element /logic:iterate /logic:iterate I don't happen to have my examples handy (I'm still at home :), but hope you get the idea. As another person suggested if you have the inner element defined as a bean property on the object bound to row.. then you can use name/property as well. The scoping gotchas of struts are plenty -- this is one of them that I stumble across often :) -- - 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: DynaBeans
Okay the problem was that copying the dynaproperties from a resultsetdynaclass prevented me from adding different datatype etc to get around this i created a new DyanPropery array and fed that to you basicdynaclass constrctor -- ResultSetDynaClass rsdc = new ResultSetDynaClass(rs); //Extract property names from resultset class and populate dyna properties array DynaProperty props[] = rsdc.getDynaProperties(); for(int propInd = 0;propInd props.length;propInd++) { props[propInd] = new DynaProperty(props[propInd].getName()); } BasicDynaClass bdcNew = new BasicDynaClass(bar,BasicDynaBean.class,props); -- this lets you insert whatever type you like when it come to the sets.. cheers mark Martedì, 4 mar 2003, alle 16:02 Europe/Rome, Mark Lowe ha scritto: In fact over the last 3 days i've tried using bean.set(name,value); PropertyUtils.setProperty(bean,name,value); etc, etc... anything that looks vaguely possible i've tried I know that commons.beanutils is kinda green so i've been expecting problems.. mutabledynaclass would theoretically work as well but i'd prefer to do things this way until the mutabledynaclass spec has solidifed... cheers mark Martedì, 4 mar 2003, alle 15:54 Europe/Rome, Mark Lowe ha scritto: no sorry.. gosh that would be simple... :) Martedì, 4 mar 2003, alle 15:50 Europe/Rome, Jose Gonzalez Gomez ha scritto: This is a wild guess, but... are you using getProperty() instead of get( property ) ? Mark Lowe wrote: Hello Sorry another dynabeans question I'm getting NoSuchMethodException when i can see that the properties i wish to access are available (using the describes to produce a map and exstracting the names with the keySet() method thanks mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Ancient computing
-Original Message- From: Tim Shadel [mailto:[EMAIL PROTECTED] First family computer I remember: 8080 First that I used: Atari or Commodore64 with BASIC (hooked it to the TV, screen was blue with white letters [forboadings of M$??], eventually had a 5 1/4 disk drive) First computer used: Commodore PET (was that what they were called?) First computer used extensively: Radio Shack TRS-80 First computer that awed me: Commodore 64 Laird - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data)
I was in grad school when i got to use my first Z80 computer :-( Ouch -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 5:45 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) You know it was! The ZX81 was the first machine I owned. The first machinesI used were a ZX80 and an Acorn Atom at our school computer club. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 8:53 PM To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) Wossit a ZX81 perchance? -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2003 05:34 To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) My first two computers didn't even have floppy drives ... 300 baud tape and 1024 bytes of memory! -Original Message- From: James Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:28 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Gladly only I had you figured as an old guy! Simon Programmed in RPG/400 once and now regret it Chappell Well, I'm old to the computer industry, but only a year with Struts... James Has punched cards for OS/VS1 on an IBM/360 Turner - 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: problem with vaidation of numeric field
Guess you could use a depends='mask' instead of double and write a pattern that supported '.' or ',' in addition to numbers -jeff On Wednesday, March 5, 2003, at 09:29 AM, Ashish Kulkarni wrote: Hi, I have to validate a double field for input using struts validator, The problem is, in some places comma , is used instead of decimal . in double field, like 123.45 is same is 123,45 but in second case struts gives an error saying invalid double field, can i make the existing validation work (double)or will have to write my own validation for it Ashish = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Ancient computing
Playing the Space shuttle games on the Commodore 64 was just awesome! -Original Message- From: Nelson, Laird [mailto:[EMAIL PROTECTED] Sent: 05 March, 2003 18:10 To: 'Struts Users Mailing List' Subject: RE: [OT] Ancient computing -Original Message- From: Tim Shadel [mailto:[EMAIL PROTECTED] First family computer I remember: 8080 First that I used: Atari or Commodore64 with BASIC (hooked it to the TV, screen was blue with white letters [forboadings of M$??], eventually had a 5 1/4 disk drive) First computer used: Commodore PET (was that what they were called?) First computer used extensively: Radio Shack TRS-80 First computer that awed me: Commodore 64 Laird - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Ancient computing
You win 70 to 71 - ouch again -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 6:34 AM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing My guess is early 70sbecause my first experience was also in high school using an old IBM System ?? with 64k memory.It took up a complete room.You saved your program by not dropping the punch cards. If your program didn't have any compile errors, it would be 20 minutes executing until the output came out on the printer ! -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:38 PM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data)
Thank goodness someone on this list is older than me! My bones were starting to creak. -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 10:08 AM To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) I was in grad school when i got to use my first Z80 computer :-( Ouch -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 5:45 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) You know it was! The ZX81 was the first machine I owned. The first machinesI used were a ZX80 and an Acorn Atom at our school computer club. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 8:53 PM To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) Wossit a ZX81 perchance? -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2003 05:34 To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) My first two computers didn't even have floppy drives ... 300 baud tape and 1024 bytes of memory! -Original Message- From: James Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:28 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Gladly only I had you figured as an old guy! Simon Programmed in RPG/400 once and now regret it Chappell Well, I'm old to the computer industry, but only a year with Struts... James Has punched cards for OS/VS1 on an IBM/360 Turner - 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: Nesting logic:iterate
The struts-nested taglib that ships with Struts. At 06:05 PM 3/5/2003 +0200, you wrote: For adding nested:root name=city which tag lib do I have to add? yaron - Original Message - From: Andrew Shirk [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 5:25 PM Subject: Re: Nesting logic:iterate Try using the method I suggested in this message: http://marc.theaimsgroup.com/?l=struts-userm=104575299502257w=2 At 03:53 PM 3/5/2003 +0100, you wrote: Hi Sundar, I tried it both ways, but I _always_ get a Jsp compile error, saying that _jspx_xxx_1 is already defined, where xxx stands for the id-attribute (e.g. element) of the inner logic:iterate ! I've had luck with patterns similar to what others have suggested, but if you have plain lists or vectors inside lists or vectors.. a better route to go is to try logic:iterate id=row name=bean property=myproperty logic:iterate id=element collection=%= row % do something w/ element /logic:iterate /logic:iterate I don't happen to have my examples handy (I'm still at home :), but hope you get the idea. As another person suggested if you have the inner element defined as a bean property on the object bound to row.. then you can use name/property as well. The scoping gotchas of struts are plenty -- this is one of them that I stumble across often :) -- - 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: question
Koby, You may want to email the author, James Mitchell. You can find some information about the package at: http://jakarta.apache.org/struts/news/news_2002_q4.html Along with a link to his email, [EMAIL PROTECTED] If the above package is overkill, you can create your own class which extends the MessageResource class to pull the messages / resources from the DB vs. the property file. Todd From: Koby Dabush [EMAIL PROTECTED] Date: 2003/03/05 Wed AM 08:21:10 EST To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: question This link does not work. I need something very simple instead of putting my messages in ApplicationResources file I just want to put it inside the DB (Oracle) Help Please... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:20 PM To: Struts Users Mailing List Subject: Re: question Koby, There is a package out there developed by James Mitchell called DBMessageResurces or something like thate. I believe that it use to be able to be downloaded from www.open-tools.org/struts-atlanta/downloads. Todd From: Koby Dabush [EMAIL PROTECTED] Date: 2003/03/05 Wed AM 08:01:09 EST To: [EMAIL PROTECTED] Subject: question I'm new to struts. How can I put my Messages in DB and use Message-Resource to bring it from DB every time I need it in the Application? Thanks, Yaakov (Koby) Dabush 1301 Shoreway Road, Suite 302, Belmont, CA 94002 Tel: +1.650.632.0101 Fax: +1.650.802.6709 Arie et Ofer Building, Omarim 9, 84965 Omer, ISRAEL Tel: +972.8.646.6350, Fax: +972.8.646.6354 http://www.entopia.com http://www.entopia.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] Ancient computing
-Original Message- From: du Plessis, Corneil C [mailto:[EMAIL PROTECTED] Playing the Space shuttle games on the Commodore 64 was just awesome! Attempting--very, very, very badly--to write Donkey Kong on a TRS-80 was better. :-) Laird - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Modern Computing (was RE: [OT] Ancient computing)
OK, enough reminising ... what do people currently have? I have a Mac tower with dual 550MHz G4 CPUs, 1.5Gb of RAM and the 22 CinemaDisplay flat panel monitor. I run Mac OS X 10.2.4 on it. And, it almost goes without saying that, I love it. Simon -Original Message- From: du Plessis, Corneil C [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 10:13 AM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Playing the Space shuttle games on the Commodore 64 was just awesome! -Original Message- From: Nelson, Laird [mailto:[EMAIL PROTECTED] Sent: 05 March, 2003 18:10 To: 'Struts Users Mailing List' Subject: RE: [OT] Ancient computing -Original Message- From: Tim Shadel [mailto:[EMAIL PROTECTED] First family computer I remember: 8080 First that I used: Atari or Commodore64 with BASIC (hooked it to the TV, screen was blue with white letters [forboadings of M$??], eventually had a 5 1/4 disk drive) First computer used: Commodore PET (was that what they were called?) First computer used extensively: Radio Shack TRS-80 First computer that awed me: Commodore 64 Laird - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ - 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] Ancient computing
Do I get a prizelike youth renewal or even the Struts Book so I can try to keep up with the times? -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 11:10 AM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing You win 70 to 71 - ouch again -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 6:34 AM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing My guess is early 70sbecause my first experience was also in high school using an old IBM System ?? with 64k memory.It took up a complete room.You saved your program by not dropping the punch cards. If your program didn't have any compile errors, it would be 20 minutes executing until the output came out on the printer ! -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:38 PM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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: Nesting logic:iterate
10x a lot - Original Message - From: Andrew Shirk [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 6:19 PM Subject: Re: Nesting logic:iterate The struts-nested taglib that ships with Struts. At 06:05 PM 3/5/2003 +0200, you wrote: For adding nested:root name=city which tag lib do I have to add? yaron - Original Message - From: Andrew Shirk [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 5:25 PM Subject: Re: Nesting logic:iterate Try using the method I suggested in this message: http://marc.theaimsgroup.com/?l=struts-userm=104575299502257w=2 At 03:53 PM 3/5/2003 +0100, you wrote: Hi Sundar, I tried it both ways, but I _always_ get a Jsp compile error, saying that _jspx_xxx_1 is already defined, where xxx stands for the id-attribute (e.g. element) of the inner logic:iterate ! I've had luck with patterns similar to what others have suggested, but if you have plain lists or vectors inside lists or vectors.. a better route to go is to try logic:iterate id=row name=bean property=myproperty logic:iterate id=element collection=%= row % do something w/ element /logic:iterate /logic:iterate I don't happen to have my examples handy (I'm still at home :), but hope you get the idea. As another person suggested if you have the inner element defined as a bean property on the object bound to row.. then you can use name/property as well. The scoping gotchas of struts are plenty -- this is one of them that I stumble across often :) -- - 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]
strange behaviour between tomcat 4.1 and tomcat 4.1.18
Hi all, I've migrating my struts app from tomcat4.0.1 to tomcat 4.1.18 . Every thing seemed to work fine when i one of my application I have a very strange thing. I define mutiple forms in my jsp just like below html:form action=/deleteSending.do html:hidden property=codeDemande value=/ html:hidden property=task value=delete/ /html:form html:form action=/editSending.do html:hidden property=codeDemande value=/ html:hidden property=task value=edit/ /html:form html:form action=/filterMails.do html:hidden property=codeDemande value=/ html:hidden property=task value=/ /html:form each form has a different ActionForm. In tomcat 4.0.1, there is nothing suprising me. But In tomcat 4.1.18, when view the html source code generated, I discover that each of those forms is associated to the same ActionForm name. can some explains me such a strange thing. thank in advance. Meissa
Re: Localisation
James has a very valid point, I had the same problem before. This functionality is very useful in a multilingual app where you'd want transparent page locale change with least impact on the design of your application. Basically if you want to add ability to access certain functionality throughout your app that is not related to a particular form but is universal, this is the case for it. Cheers, Ivan - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 10:53 AM Subject: Re: Localisation Don't know about other people, James, but you don't give me enough information. Why you would care what page they changed locale on is a mystery. But, I assume somehow that the flags are built into your layout, so they can change locale on any page or many pages. Why you would wnat to specify it to forward to the page they changed locale on in the struts-config.xml is also a mystery. But, why don't you do it with a changed_locale instead of a success or failure and so on? It would be relatively easy to include that functionality, where it belongs, in the logic passed on to the forward in the action for the form. If you wanted to get fancy, you could even use a registration/notification scheme in an event context. There are many, many ways to do this. Why do you want to do it hardcoded in the struts-config.xml? I cannot see why you would go that direction for a solution. Configuration is for configuration. This does not seem to be a configuration issue to me. Micael At 11:11 AM 3/5/03 -0800, you wrote: I have a LocaleActionClass that sets the locale according to which wee flag the user clicks, my question is how in the struts-config.xml do i specify it to forward to the page they changed locale on (i.e their original page). James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - 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: Problem with Monkey examples
I have the same problem tomcat 4.1 -Original Message- From: Margarita Manterola [mailto:[EMAIL PROTECTED] Sent: mercredi 5 mars 2003 15:42 To: Struts Users Mailing List Subject: Problem with Monkey examples Hi! I'm a newbie, trying to get a taste of struts. I'm using Tomcat 3, and I've put all the struts libraries and jars in the apps folder, so that all the apps have access to them. The struts applications (documentation, templates, etc) seem to be working fine. However, I've downloaded the monkey examples and deployed them, but I cannot use them :(. I'm getting Cannot find ActionMappings or ActionFormBeans collection. I've read that this error is due to problems in the struts-config.xml, but I haven't changed any of them, I've checked the xml tags and they all seem fine to me. Is there something else that might be causing this error? Thanks, Margarita. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Disclaimer: This electronic transmission and any files attached to it are strictly confidential and intended solely for the addressee. If you are not the intended addressee, you must not disclose, copy or take any action in reliance of this transmission. If you have received this transmission in error, please notify the sender by return and delete the transmission. Although the sender endeavors to maintain a computer virus free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: question
That's almost correct. The email is for a different James (bet you didn't know we had so many ;) But that's ok, we look like twins.LOL!!! Guess I should change that huh? -- James Mitchell Web Developer/Struts Evangelist http://jakarta.apache.org/struts/ People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard (1813-1855) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 8:40 AM To: Struts Users Mailing List Subject: Re: RE: question Koby, You may want to email the author, James Mitchell. You can find some information about the package at: http://jakarta.apache.org/struts/news/news_2002_q4.html Along with a link to his email, [EMAIL PROTECTED] If the above package is overkill, you can create your own class which extends the MessageResource class to pull the messages / resources from the DB vs. the property file. Todd From: Koby Dabush [EMAIL PROTECTED] Date: 2003/03/05 Wed AM 08:21:10 EST To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: question This link does not work. I need something very simple instead of putting my messages in ApplicationResources file I just want to put it inside the DB (Oracle) Help Please... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:20 PM To: Struts Users Mailing List Subject: Re: question Koby, There is a package out there developed by James Mitchell called DBMessageResurces or something like thate. I believe that it use to be able to be downloaded from www.open-tools.org/struts-atlanta/downloads. Todd From: Koby Dabush [EMAIL PROTECTED] Date: 2003/03/05 Wed AM 08:01:09 EST To: [EMAIL PROTECTED] Subject: question I'm new to struts. How can I put my Messages in DB and use Message-Resource to bring it from DB every time I need it in the Application? Thanks, Yaakov (Koby) Dabush 1301 Shoreway Road, Suite 302, Belmont, CA 94002 Tel: +1.650.632.0101 Fax: +1.650.802.6709 Arie et Ofer Building, Omarim 9, 84965 Omer, ISRAEL Tel: +972.8.646.6350, Fax: +972.8.646.6354 http://www.entopia.com http://www.entopia.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]