design question

2003-12-24 Thread dirk
I have 3 FormObjects. I have a newuser.jsp page containing the form userForm, in this form i put a javascript button with an onclick event, window.open with a popup (adresuser.jsp), with the form adresUserForm. Finally i have on the userForm another javascript button with a popup to

Re: design question

2003-12-24 Thread Gurpreet Dhanoa
hi Drik once the user have filled up the other 2 forms in the pop window u can make object of those two forms into your final action and can get the values like Form1 form=new Form1(); Form2 form2=new Form2(); from1.getUserAddress(); from1.getCity(); Hope this works Regards Gurpreet Dhanoa

RE: PDF file in browser

2003-12-24 Thread shirishchandra.sakhare
Hi, Also do not forget to set the header so that the save as dialogue box is displayed in IE...For that you have to set the content-disposition header .. following is the code from our project.. Class FileOpenAction{ protected final void returnBinaryFile(

Re: design question

2003-12-24 Thread Mark Lowe
If the forms are in different windows then instantiating new forms I dont think will work. If you want a non javascript way of doing things then you'll want to scope the master form to the session, and then keep populating to from your subforms . However you do this I imagine that scoping the

Re: Synchronise Collection with ActionForm

2003-12-24 Thread François Richard
the solution : in the logic:iterate the id must be choosen carefully ... you have to use the same value as property I found the explanation here (/Indexed References/) : http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/package-summary.html#doc.Properties for me : html:form

Navigation Stack

2003-12-24 Thread Guillermo Meyer
Hi: I'm working with a Struts 1.0 application. I extended Action to create a base action that handles backwards navigation in a stack fashion. Each method calls a saveStep method to the stack. This step has form, mapping and dispatch name. Base action has a method called stepBack that can be

Problem with multibox check state

2003-12-24 Thread Rajesh, Harikrishnan (H.)
Hi, I have a jsp input form with dynamically generated multibox, I need to fill these boxes with checked and unchecked state once the user selects a previously saved record. I need to know how to resolve this problem. I have done the same with a single multibox, using the set('property name',

RE: Navigation Stack

2003-12-24 Thread shirishchandra.sakhare
Hi, I found the idea interesting.. But I have a couple of questions... the assumption you are making here is entire request parameters are captured in the form...How else can you call some action if it does not have access to all the request parameters.. Also it means that the action have

RE: Navigation Stack

2003-12-24 Thread Andrew Hill
Im working with struts1.1 myself. Our application has quite a few screens that correspond to records in the application, and these records are often related to other records in the application - ie you might need to pick one from a drop down or such like. We were able to give the user the ability

Re: Problem with multibox check state

2003-12-24 Thread Mark Lowe
The checkboxes are selected depending on whether the value and the property value match.. html:multibox property=myprop value=foo / if myprop is set to foo it will be ticked.. On 24 Dec 2003, at 11:11, Rajesh, Harikrishnan (H.) wrote: Hi, I have a jsp input form with dynamically generated

html:text value=? problem

2003-12-24 Thread Ciaran Hanley
I want to use an update user details page in my application which uses a form to display the current user details and updates any changes. Im having problems displaying the information of the user bean in the value property. What I want is html:text property=name value=current users name /

Re: html:text value=? problem

2003-12-24 Thread Mark Lowe
html:text property=name value=%= user.getName() % / or html-el:text property=name value=${user.name} / You can also populate in the refering action (assuming you've one), i think this is better and keeps your form cleaner and thus perhaps more reusable. theForm.setName(Brian); or

any tool which can generate formbeans from jsp or html

2003-12-24 Thread Kalra, Ashwani
hi, Is it possible to generate the formbeans from jsp or html. Is there any tool available ? Regds Ashwani This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is

security of html pages max file size property

2003-12-24 Thread ludovic . maurillon
Hi all, I have two questions: 1) I have a problem with the help menu of my application wich contains html pages. I would not like to access those pages without being log on, so I access them via a secure Action that just do a forward to the good page: action path=/help/helpAction

Re: PDF file in browser

2003-12-24 Thread hernux
You 're forgetting two things... 1- He wants to show a pdf file in a new browser to do that, you must set the apropiate target into de A tag... a href=xxx.pdf target=_blankxxx/a target=_blank will open the link in a new window. 2- This, will only work if the users uses Internet

RE: security of html pages max file size property

2003-12-24 Thread Mohan Radhakrishnan
This seem to be a authentication issue managed with Container Managed Authentication web-resource-collection web-resource-nameweb/web-resource-name descriptionRequire users to authenticate/description

RE: retrieving values from application.properties file

2003-12-24 Thread Mohan Radhakrishnan
This might be the wrapper you are looking for protected MessageResources getMessageResources(){ return MessageResources.getMessageResources(ApplicationResources); } //getMessageResources().getMessage( key ); The API has lot of other methods. Mohan

Re: PDF file in browser

2003-12-24 Thread Martin Gainty
If Struts is J2EE on Steroids Then FOP is PDF on Steroids check out Implementing Formatting Objects Processor at http://xml.apache.org/fop/ Saludos, -Martin - Original Message - From: hernux [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 24,

Select without selected value

2003-12-24 Thread AKostylev
I want to have select element without any selected values by default. I can do this by setting selectedIndex=-1 or value='not_existing_value' in JavaScript. Can I do this with Struts functionality? - To unsubscribe, e-mail:

[OT] Synchronized access to application-scoped object

2003-12-24 Thread Jerry Jalenak
Holiday Greetings to All! Quick design question - Is it possible to synchronize an application-scoped object between two servlets within the same web application? I have a servlet that I have written that maintains a List object that is stored in application scope. This servlet basically

RE: any tool which can generate formbeans from jsp or html

2003-12-24 Thread vasudevrao gupta
HI, WSAD(Websphere studio development) has a facility to generate actionform beans from JSP Regards Vasudevraogupta -Original Message- From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] Sent: 24 December 2003 18:40 To: Struts (E-mail) Subject: any tool which can generate formbeans from jsp

Re: Select without selected value

2003-12-24 Thread Mark Lowe
Just don't set the form value. On 24 Dec 2003, at 15:15, AKostylev wrote: I want to have select element without any selected values by default. I can do this by setting selectedIndex=-1 or value='not_existing_value' in JavaScript. Can I do this with Struts functionality?

parameters in a link

2003-12-24 Thread Otávio Augusto
Hi all I'm trying to add a parameter (yeah,i mean only one) to a link. actually, it is an logic:iterator tag which generates a table, and one of the columns is the link to an action which is going to get the parameter send throw the request, process it and go to a jsp. so, the code follows:

Re: parameters in a link

2003-12-24 Thread Mark Lowe
just need paramId to set the parameter name. On 24 Dec 2003, at 15:59, Otávio Augusto wrote: Hi all I'm trying to add a parameter (yeah,i mean only one) to a link. actually, it is an logic:iterator tag which generates a table, and one of the columns is the link to an action which is going to

Re: parameters in a link

2003-12-24 Thread Otávio Augusto
U mean i just need to add the paramId ? thanks Otávio Augusto On Wed, 24 Dec 2003 16:11:52 + Mark Lowe [EMAIL PROTECTED] wrote: just need paramId to set the parameter name. On 24 Dec 2003, at 15:59, Otávio Augusto wrote: Hi all I'm trying to add a parameter (yeah,i mean only

Re[2]: Select without selected value

2003-12-24 Thread AKostylev
Wednesday, December 24, 2003, 7:02:24 PM, you wrote: ML Just don't set the form value. ML On 24 Dec 2003, at 15:15, AKostylev wrote: I want to have select element without any selected values by default. I can do this by setting selectedIndex=-1 or value='not_existing_value' in JavaScript.

Re: parameters in a link

2003-12-24 Thread Brice Ruth
the paramId value of html:link will be the name of the parameter that gets passed in the query string, the paramName attribute will be the name of a bean that is used (toString) to generate the value of that parameter. So, something like this: c:set var=myTopic value=Struts/ html:link

Re: parameters in a link

2003-12-24 Thread Brice Ruth
Oh, and check here: http://jakarta.apache.org/struts/userGuide/struts-html.html#link All the info you should ever need :) Otávio Augusto wrote: U mean i just need to add the paramId ? thanks Otávio Augusto On Wed, 24 Dec 2003 16:11:52 + Mark Lowe [EMAIL PROTECTED] wrote: just need

Re: parameters in a link

2003-12-24 Thread Otávio Augusto
Thanks Brice. Works fine now, and it makes all sense. Otávio Augusto On Wed, 24 Dec 2003 10:27:46 -0600 Brice Ruth [EMAIL PROTECTED] wrote: the paramId value of html:link will be the name of the parameter that gets passed in the query string, the paramName attribute will be the name of a

logic:iterate problem (not loading complete jsp)

2003-12-24 Thread shahfazal
Hi all- I have a problem which i'm sure someone else must have gone thru. I have a collection of Value Objects that hve properties like firstName, lastName etc. I wrote a getter in the form bean that returns this collection of value objects [code] // This is my IncompleteFolderAction.java .

RE: Re[2]: Select without selected value

2003-12-24 Thread Wendy Smoak
-Original Message- I use select with multiple=false and I don't set the parameter's value. As result I get: form name=faqForm method=post action=/dp/showFaq.do select name=id onchange=submit() option value=1Test1/option option value=2Test2/option

Re: Select without selected value

2003-12-24 Thread Brice Ruth
You could also do something like: option/option Which should give you something resembling no option being selected. Beware, unless you have validation of this field, it is perfectly valid for the browser to submit this ... Wendy Smoak wrote: -Original Message- I use select with

Re: Select without selected value

2003-12-24 Thread Mark Lowe
an option will only be selected by default if the form property has been set to a value or there is a match in an available scope (like a parameter with the same name as the form property). Otherwise it will just do its thing. I'd use a simple action without a formbean for something like a

Easy question: iterate

2003-12-24 Thread e-denton Java Programmer
Sorry to bother you with an easy question, but I can't find the answer. I want to iterate over Category_VO[] which is stored in a session attribute. I read that it can be done, but I can't find an example for raw arrays. Here's what I have (which probably doesn't even make sense): logic:iterate

RE: Easy question: iterate

2003-12-24 Thread Nguyen, Hien
I think life would be easier if you store your Category_VO objects in a java.util.Collection, then use JSTL forEach tag. Something like this: % Collection v = new Vector(); v.add( new Category_VO(cat 1) ); //Assuming your constructor takes a String which is the shortTitle

From Suresh

2003-12-24 Thread Suresh Korvi
Hi Guys Can anybody help how to work with StrutsTestCase i am using Eclipse suresh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Easy question: iterate

2003-12-24 Thread Mark Lowe
//psuedo code. List categoryList = Category.getList(); request.setAttribute(categories, categoryList.toArray()); logic:iterate id=category name=categories /logic:iterate I made the first bit up. But should give you the idea. jsp:useBean id=categories

RE: From Suresh

2003-12-24 Thread Ramadoss Chinnakuzhandai
Just look at the existing mail archives which has similar thread -Original Message- From: Suresh Korvi Sent: Wednesday, December 24, 2003 1:32 PM To: [EMAIL PROTECTED] Subject: From Suresh Hi Guys Can anybody help how to work with StrutsTestCase i am using Eclipse suresh

RE: html:text value=? problem

2003-12-24 Thread Daniel Lipofsky
If I am understanding correctly you just want html:text property=name/ which will pull the value from the name property of the bean. If you specify a value in the tag it oiverrides what is in the bean. - Dan I want to use an update user details page in my application which uses a form to

Re: From Suresh

2003-12-24 Thread Martin Gainty
Suresh Post to StrutsTestCase Forum http://sourceforge.net/forum/forum.php?forum_id=121751 Keep me apprised, -Martin - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 24, 2003 1:33 PM Subject:

RE: Select without selected value

2003-12-24 Thread Daniel Lipofsky
Or you can override the form value like this html:select ... value=x If the value you set doesn't exist then nothing will be selected. Which means the first item will be selected, because something always is (if we are talking about a dropdown and not a multiselect). But you can always add a

Re: [OT] Synchronized access to application-scoped object

2003-12-24 Thread Craig R. McClanahan
Quoting Jerry Jalenak [EMAIL PROTECTED]: Holiday Greetings to All! Quick design question - Is it possible to synchronize an application-scoped object between two servlets within the same web application? I have a servlet that I have written that maintains a List object that is stored in

RE: Easy question: iterate

2003-12-24 Thread Daniel Lipofsky
% LabelValueBean[] lvArray = new LabelValueBean[] { new LabelValueBean(label1, value1), new LabelValueBean(label2, value2), new LabelValueBean(label3, value3), new LabelValueBean(label4, value4) }; request.setAttribute(lvArray, lvArray); % logic:iterate

Re: Easy question: iterate

2003-12-24 Thread e-denton Java Programmer
Hi Mark, I tried this: Category_VO[] pcatResults = null; Category_DAO dao= new Category_DAO(); pcatResults = dao.selectTopLevel(); request.getSession (true).setAttribute (PCAT, pcatResults); --- jsp:useBean id=PCAT class=com.cnw.portal.database.Category_VO scope=session /

Re: Easy question: iterate

2003-12-24 Thread Mark Lowe
Looks like you should copy what your view needs from your model rather than shoe-horning in your data objects into your jsps. Have a simple bean called Category in this example with a title property. Category_VO[] pcatResults = dao.selectTopLevel(); ArrayList categoryList = new ArrayList();

RE: [OT] Synchronized access to application-scoped object

2003-12-24 Thread Jerry Jalenak
Craig - Thanks for the response. One last question - during the time period where the getServletContext().setAttribute() is executing in Servlet_1, is there any concern about collision with an access from Servlet_2 (Struts)? I guess I'm unsure whether the setAttribute() method is synchronized

doubt

2003-12-24 Thread Otávio Augusto
hi all Maybe this is an inapropriate place to ask that, but i'm gonna take the risk anyway. I imagine there are users who work with Struts and Hibernate, just like i do (i haven't found any hibernate's discussion list, so i'm posting this question here). is someone has ever had the lazy

Re: doubt

2003-12-24 Thread David Erickson
What kind of problem are you referring to with lazy instantiation? You can disable or enable it.. but if you have big lists of items that you may or may not use its good to leave it on.. -David - Original Message - From: Otávio Augusto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: doubt

2003-12-24 Thread Mark Lowe
Hibernate throws that if it finds a null value on an indexed column. Of example if you've a load of users and groups and say 3 users with group_id of 999 and then someone removes group 999 you'd get this exception. On 24 Dec 2003, at 20:16, Otávio Augusto wrote: hi all Maybe this is an

Re: doubt

2003-12-24 Thread Otávio Augusto
hi the thing is: i have a bean called Setor, and this bean has an attribute called quadras, which is a collection. ok, i can retrieve the ben using hibernate, store it in a session (now talking about struts) and go to my jsp page. there, i have this piece of code: tr tdbean:write

RE: doubt

2003-12-24 Thread David Friedman
Otávio, Hibernate discussions are at http://http://forum.hibernate.org. A few of the discussion threads talk about Struts. Many cover lazy instantiation. Regards, David -Original Message- From: Otávio Augusto [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 24, 2003 3:17 PM To:

Re: Easy question: iterate

2003-12-24 Thread e-denton Java Programmer
I's iteratin'! Thanks for all the help. - Original Message - From: Daniel Lipofsky [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; e-denton Java Programmer [EMAIL PROTECTED] Sent: Wednesday, December 24, 2003 1:07 PM Subject: RE: Easy question: iterate %

Re: doubt

2003-12-24 Thread Otávio Augusto
Thanks a lot David. i've disabled lazy instantiation, and it is working now. but even for small tables and not many data, i feel the performance has decreased. Thanks to all who helped ;) Otávio Augusto On Wed, 24 Dec 2003 15:54:09 -0500 David Friedman [EMAIL PROTECTED] wrote: Otávio,

RE: [OT] Synchronized access to application-scoped object

2003-12-24 Thread Craig R. McClanahan
Quoting Jerry Jalenak [EMAIL PROTECTED]: Craig - Thanks for the response. One last question - during the time period where the getServletContext().setAttribute() is executing in Servlet_1, is there any concern about collision with an access from Servlet_2 (Struts)? I guess I'm unsure

Nighty Builds of Struts-Faces Integration Library

2003-12-24 Thread Craig R. McClanahan
Nightly binary builds of the Struts-Faces Integration Library, updated to work with the new beta release of JavaServer Faces, are now available: http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/ As always, the source code for this library is in the contrib/struts-faces

Happy Holydays

2003-12-24 Thread Otávio Augusto
Well, maybe that is not the place (again)...but, anyway, merry christmas to all of you. Let's build even better days ;) Otávio Augusto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

How Do I Handle Two Action Forms

2003-12-24 Thread Caroline Jen
I am stuck and need your knowledge and experience. When the button is my JSP is clicked, there are two action forms involved, threadForm and postForm. The threadForm is populated by hidden fields and text fields that are passed from the JSP. All the properties of the threadForm are to be

iterating

2003-12-24 Thread Otávio Augusto
Hi all Is this piece of code correct?? tr tdNome do setor: brbean:write name=setores property=nome //tdbrbr tdComentários: brbean:write name=setores property=comentario //tdbr /tr Quadras:br logic:iterate id=quad name=setores property=quadras tr tdbean:write name=quad