Re: Modal window
There's another problem related to the modal window: it not permits submitting there. You have to create an artifact to make this (put a frame inside the modal window and put the original page to display inside the frame). 2006/1/18, Frank W. Zammetti [EMAIL PROTECTED]: FYI, there are some important details about this, should you decide to use it... * This is different than using window.open() in that the child window has no relationship to the parent, i.e., you can't script from one to the other in either direction. The only exception is that you can do window.returnValue in the child, and this value will be the return value of the call to showModalDialog(). * You can pass parameters to the child via the second parameter to showModalDialog(). It can a string, array, etc. Actually, I suppose you could pass window to it and be able to script against that and get around that first rule, but I'm not sure about that. In any case, the parameters will be exposed in the child via window.dialogArguments. * The third parameter are various feature settings of the window. They include center (yes}no), dialogheight, dialogLeft, dialogTop, dialogWidth, edge (raised|sunken), help (yes|no), resizable (yes|no) and status (yes|no). * There is a corresponding showModelessDialog() method, just for completeness. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, January 18, 2006 12:18 pm, Frank W. Zammetti said: Hi Rafael, You can do this via scripting, but it is unfortunately AFAIK an IE-only trick... window.showModalDialog(http://www.google.com,,dialogWidth:500px;dialogHeight:500px;); -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, January 18, 2006 12:05 pm, Rafael Taboada said: Hi folks. I have my app where a jsp calls another jsp.. mother jsp calls a son jsp where the user can modify some settings.. I need the user can't use mother jsp till son jsp is closed... Something like modal and nomodal window.. Could u know kow I can do that?.. any code? Thanks in advance -- Rafael Taboada Software Engineer Cell : +511-97753290 No creo en el destino pues no me gusta tener la idea de controlar mi vida - To unsubscribe, 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: Urgent help needed
I tried to do this many times but I couldn't. I look for information in the web but I think there's no possible solution. 2006/1/19, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi Window.onclose works with only IE. However, you can try unload event. Refer the code snippet below function onClose() { alert(Warning. You are closing the app!) //do cleanup operations } window.onunload=onClose Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services business from i-flex - Add Value Reduce Risk www.iflexsolutions.com/services/services.asp i-flex solutions limited - Bangalore Phone : +91(080) 5759-6873 Email : Rakesh.Bhat@ iflexsolutions.com -Original Message- From: Meenakshi Singh [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 11:42 AM To: Struts Users Mailing List (E-mail) Subject: Urgent help needed Hi, Can anybody tell me how can I detect the browser's close button. which works across all browsers. I have a requirement wherein I have to perform some steps if the browser window is closed. Some code example would be appreciated. Please help me it's urgent. Thanks Regards, Meenakshi. - To unsubscribe, 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: Opening a new window
I think you can use javascript for accessing to struts html:hidden variables. 12 Jan 2006 14:59:49 -, rahul kshirsagar [EMAIL PROTECTED]: Hi, I am using struts in my application.I have one parent jsp from which i am opening a new window.Now i want to pass some value from this child window and close the same. How to pass this value from child to parent jsp and also retain values in parent jsp? Which is the efficient way to implement the same? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Application pattern] Advice
For CRUD (create, restore, update, delete) I would use a DispatchAction for each object. 2005/12/27, Xavier Vanderstukken [EMAIL PROTECTED]: I need your help to design my web application using struts and hibernate. I have several classes to save/delete/update (like user, category, project,...). I dont know what is the best pattern to use : - 1action per object and all the operations(save,update,delete) in the same action - only one action for all the objects and all the operations - one action per operation (number of object * number of operation -- lot of actions, mapping and forms) - another pattern Thanks for your advices - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
El gran dia
Bueno, a las 21.00 en la fuente luminosa ¿no? ¿Leerá Eduardo el correo? ¿Habrá que avisarlo? ¿Conservará el móvil? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: El gran dia
Excuse me, I sent last message to a wrong list!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help req in htnl:link tag !!!
Why don't you use javascript and a form tag. 2005/11/25, Malhotra, Amitkumar (Exchange) [EMAIL PROTECTED]: Hello Folks, Am using html:link action=someaction tag to invoke an action when a hyperlink is clicked, Do want to pass parameters to the action class when this is done and do not want these to be visible in the address bar, how can I do this ?? Thanks and Regards, Amit Malhotra. *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** - To unsubscribe, 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: Reporting Tools
If you want to make pdf documents, you could use itext http://www.lowagie.com/iText/ 2005/11/21, Meenakshi Singh [EMAIL PROTECTED]: Jasper Reports is a powerful open source tool. U can have a look at it at http://jasperreports.sourceforge.net I have used it in my project m satisfied with the results. Regards, Meenakshi. - To unsubscribe, 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 a property
maybe, html:text property=A.B.property ... 2005/10/26, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, I have an object ('A') in session that I recover form a jsp whit the tag jsp:useBean. This object ('A') contains another object ('B'). And is form this ('B') I want to recover a property that use it like value into text's field. In this case, a html:text... How can I do? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts bean utils-problems with properties
Maybe it fails because types are incompatible for BeanUtils. All the same getters and setters must return or accept the same type of Object. 2005/10/19, hem hem [EMAIL PROTECTED]: Hi all, i am new to this forum.this is my first post.i hope this mailing list helps me. in the first page in my struts web app, i need to enter the details of 5 persons. they have proprties name,sex,rollnumber and age for that i created a bean with these 4 properties which have getter and setter methods in it. then i instantiated the bean 5 times for the properties of 5 persons the bean name is person in my action form i instatiated like this: Person person1=new Person(); Person person2=new Person(); Person person3=new Person(); and so on in my jsp i used the property names as person1.name http://person1.name, person1.sex like that. so far its ok but i need to populate the model objects from this form. for that i used apache commons beanutils as below: PersonModel is exactly the same bean as my Person bean with exactly the same properties and same getter and setter methods. but the datatypes of properties in PersonModel are diffrent from Person bean(all the properties are Strings in Person but 2 are Strings,1Long,1int in PersonModel) PersonModel person1Model=new PersonModel (); BeanUtils.copyProperties(person1Model,personForm.getPerson1()); but this is failing to copy the properties and throwing illegalargumentexception. can anyone help how can i achieve this(copying properties) it seems to be nested property problem.i am new to struts. your suggestion are very much appreciated. regards and thanks in advance - Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: form.submit() issue with html:button
Have you put *submit()* correctly? It works: html:button onclick=document.forms[0].submit(); / 2005/10/19, Carl Smith [EMAIL PROTECTED]: I seem to have a issue using html:button's onclick. My value of onclick is a javascript performing form.submit(), but I found out this is not working. However if I chang my button to html:submit then the javascript is working. Why this is the case? Thanks. - Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: Clever trick required
A possible solution could be: logic:notEmpty name=family logic:iterate name=family type=Family id=aFamily logic:notEmpty name=aFamily property=members bean:define id=firstRow value=true / logic:iterate name=aFamily property=members type=Member id=aMember logic:notEqual name=firstRow value=true tr td p jsp:getProperty name=aMember property=name/ /p /td td pnbsp;/p /td /tr /logic:notEqual logic:equal name=firstRow value=true tr td p jsp:getProperty name=aFamily property=name/ /p /td td p jsp:getProperty name=aMember property=name/ /p /td /tr bean:define id=firstRow value=false / /logic:equal /logic:iterate /logic:notEmpty /logic:iterate /logic:notEmpty 2005/10/17, Murray Collingwood [EMAIL PROTECTED]: Hi all Bean 1 has a property, a list of Bean 2s. I want to display these on the screen but I don't want to display repeated occurrences of the same value from Bean 1. For example, lets assume Bean 1 is surname and Bean 2 is first names, and we have families, and what I want is something like: Smith Tom Mary Freddy Jones John Liz Jim Wendy What I get is: Smith Tom Smith Mary Smith Freddy Jones John Jones Liz Jones Jim Jones Wendy My code is simple: logic:notEmpty name=family logic:iterate name=family type=Family id=aFamily logic:notEmpty name=aFamily property=members logic:iterate name=aFamily property=members type=Member id=aMember tr td p jsp:getProperty name=aFamily property=name/ /p /td td p jsp:getProperty name=aMember property=name/ /p /td /tr /logic:iterate /logic:notEmpty /logic:iterate /logic:notEmpty How do I change this to achieve what I want There must be a simple trick for doing this. Kind regards mc FOCUS Computing Mob: 0415 24 26 24 [EMAIL PROTECTED] http://www.focus-computing.com.au -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.1/136 - Release Date: 15/10/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What's wrong with DTOs?
I think DTOs is the best solution. However, is tedious to copy properties. Yes, I know that you can use BeanUtils but sometimes you need a DTO that is a combinations of two model objects and you have to use getters and setters. 2005/10/17, Vic Cekvenich [EMAIL PROTECTED]: I don't think anything wrong w/ DTO. You have your DAO, your model... in my case I use collections as DTO, but beanutils is fine. .V [EMAIL PROTECTED] wrote: Hi, Gurus, Background: I just started a Struts project with Hibernate. I have chosen to use the Data Access Object with (Abstract Factory) design pattern because my client uses Oracle and I use Postgresql database. I am working with other teams remotely and they decided to use DTO. Problem: A few months ago, I recall a message thread on this list with a subject header of: 'DTOs are evil'. Since I am new to this, I am having problems understanding why. I thought that DTO are for data storage and data transfer between Business and Value Objects. Questions: I have the following questions: 1. Why I shouldn't choose it? 2. Should I be using the Apache Commons BeanUtils in my action? It has a method like BeanUtils.copyProperties(...). 3. If not BeanUtils, then what do you recommend? Thanks, Bob __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- thx, .V Your Roomity Broadband Community http://roomity.com/demo.jsp cell: 917 825 3035 in DFW email: netsql at roomity.com http://roomity.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logic:present and html:text tags problem
It doesn't work because person is not declared in Java. Maybe person is in session scope (or request scope). It's not a good solution using scriptlets but if you want, you have to put something like this: html:text property=name values='%=((Person) request.getSession ().getAttribute(person)).getName()%'/ logic:present name=person html:text property=name value='%= person.getName() %'/ /logic:present